performant-software / react-components

A library of shared React components
https://performant-software.github.io/react-components/
MIT License
1 stars 1 forks source link

Enhancement: Update PlaceMarker component to allow custom zoom/buffer #259

Open ajolipa opened 6 months ago

ajolipa commented 6 months ago

Currently there is no way to pass a user-specified default zoom level to the PlaceMarker component, which would be useful for some use cases (e.g. Ground Beneath our Feet embedded maps in posts). This could be accomplished via a buffer prop perhaps, and/or through a default zoom level which is then passed to the map.flyTo or map.jumpTo method when the map is loaded or the place URL updated. (Relevant documentation for the latter here: https://docs.maptiler.com/sdk-js/api/map/)