question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SplitControl With Heatmap Layers

See original GitHub issue

The 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:open
  • Created 3 years ago
  • Reactions:2
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
martinRenoucommented, Apr 7, 2020

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!

0reactions
martinRenoucommented, Dec 17, 2021

Yes, unfortunately it doesn’t have much activity. If someone wants to pick that up I would be happy to review a PR.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found