SplitControl With Heatmap Layers
See original GitHub issueThe following code will not produce proper results:
mymap = Map(center=(lat, lon), zoom=4)
right_layer = Heatmap(locations=right_locations, max_zoom=max_zoom, radius=radius, max=max_value)
left_layer = Heatmap(locations=left_locations, max_zoom=max_zoom, radius=radius, max=max_value)
split_map_control = SplitMapControl(left_layer=left_layer , right_layer=right_layer )
mymap.add_control(split_map_control )
mymap
Both layers are shown on one side (right_side).
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:10 (5 by maintainers)
Top Results From Across the Web
49 split control - leafmap
The split-panel map requires two layers: left_layer and right_layer . The layer instance can be a string representing a basemap, or an HTTP...
Read more >103 split control - Geospatial Notebooks
The split-panel map requires two layers: left_layer and right_layer . The layer instance can be a string representing a basemap, ...
Read more >Qiusheng Wu on Twitter: "Check out the 3D map https://t.co ...
Unfortunately, #ipyleaflet SplitControl only support TileLayer. Heatmap and choropleth layers are not supported. See.
Read more >plotlymap module - geemap
A Python package for interactive mapping with Google Earth Engine.
Read more >geemap 0.19.1 documentation
Defaults to “Heat map”. radius (int, optional) – Radius of each “point” of the ... Creates a SplitControl that takes two Layers and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, unfortunately, the Spitmap control does not work properly. This is actually an issue with the SplitMapControl plugin for LeafletJS that we use https://github.com/QuantStack/leaflet-splitmap#readme. We improved it a bit recently. It needs a bit more testing. Anyone with JavaScript knowledge is very welcome to fix this!
Yes, unfortunately it doesn’t have much activity. If someone wants to pick that up I would be happy to review a PR.