developmentseed / developmentseed/lonboard

Swipe and sync between two maps

Open
#404 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
964
Forks
54
Avg merge
5m
Merged PRs (30d)
1

Description

It would be cool to have a way to do "map comparisons" from Python. This would be along the lines of [mapbox-gl-compare](https://github.com/mapbox/mapbox-gl-compare):

![](https://camo.githubusercontent.com/afd9fe73f76ec5952ab79d9900c2bdd09542384ec024ec293c9e62bb2b57ce38/687474703a2f2f692e696d6775722e636f6d2f4d766a77564c752e676966)

On the JS side, this would take a bit of work. Primarily, I have to figure out how to:

- render two map views, either side by side or possibly above and below
- sync the view state between them
- render a basemap in both

I did a little test:
```jsx

It's nice that the deck.gl part is working, but not sure how to get the basemap to render in both.

On the Python side, the easiest way to do this would probably be to have a new `SplitMap` class that manages two sets of layers.

See also:

- https://github.com/visgl/deck.gl/discussions/7627

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.