mitmedialab / Vida_Modeling

User Interface and Simulation Platform for a System Dynamics Model
MIT License
6 stars 2 forks source link

Fix coordinate and zoom issue so that, regardless of level of zoom, coordinates define center of map #30

Closed jackreid closed 3 years ago

jackreid commented 3 years ago

Right now the coordinates and zoom are coupled, such that changing the zoom also changes where the map is centered. Higher zooms typically cause the center of the map to move towards the northwest (and thus the contents of the map move to the bottom right). Ideally these shouldn't be coupled and the coordinates should precisely define the center of the map, regardless of the level of zoom.

Note: Once fixed, we will likely need to update the coordinates for all of the existing contexts, since they were defined with this coupling in mind.