Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@sigma/layer-leaflet] Adding leaflet map in graph background #1447

Closed
wants to merge 1 commit into from

Conversation

sim51
Copy link
Collaborator

@sim51 sim51 commented Jul 19, 2024

Adding leaflet map in graph background

  • Update the sigma's graph with the projected lat/lng coordinates
  • Sync the sigma & leaflet view box
  • Add limits on sigma zoom ratio to not be outside the leaflet capabilities

What can be enhance :

  • adding animation on flyToBound to have smooth transition. But it's not so simple. I'm assuming there is some bounds attraction at the end of the animation. Moreover, it's not easy to know when the animation has finished. This is needed in some cases (like the recomputation of ratio bounds on a resize).
  • be able to center the map/graph on a longitude (and if we can do that, it can be cool to test it when panning)

* Update the sigma's graph with the projected lat/lng coordinates
* Sync the sigma & leaflet view box
* Add limits on sigma zoom ratio to not be outside the leaflet
  capabilities
@jacomyal
Copy link
Owner

Manually reviewed, rebased and merged 👍.

@jacomyal jacomyal closed this Jul 19, 2024
@jacomyal jacomyal deleted the bsi/map-sync branch July 25, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants