geomoose / gm3

GeoMoose 3.0 Development. Please submit pull requests to the 'main' branch.
https://www.geomoose.org
MIT License
58 stars 59 forks source link

URL Tracker - Bbox format doesn't exactly track the location anymore #823

Closed chughes-lincoln closed 1 year ago

chughes-lincoln commented 1 year ago

If you change the location format to bbox in app.js, refreshing the browser or sharing the url with the bookmark tool results in a map that's slightly zoomed out. (i.e. on the demo, change the tracker format to bbox. If you zoom to parcel boundaries via the zoom to extent tool, you can then continually refresh the browser to see it's slightly zooming out each time).

theduckylittle commented 1 year ago

Found the bug! It was because we pad the call to zoomToExtent this now lets the tracker not pad that bounding box.

chughes-lincoln commented 1 year ago

Fixed by https://github.com/geomoose/gm3/pull/825