Closed andresgnlez closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated |
---|---|---|---|---|
front-end-scaffold-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add your feedback | Jan 16, 2023 at 3:06PM (UTC) |
Updates zoom controls to use its own map reference according to the
mapId
passed. Also, it updates zoom logic to rely on the buttons' interactivity to zoom in/out.Removed logic that handled disabled styles in
ZoomControls
andFitBoundsControls
to rely on disabled button state. This way there is a single logic to rely on (the one telling the button when is disabled) and less risk of side effects with several logics.Moved
Controls
component and its descendant toLayerManager
level becoming descendant ofMap
component and granting access to map reference throughcurrent
's property inuseMap
hook. This way allows using map and controls without declaring anyid
in case there is only a single map on the page. In case there are several maps, passing an id is mandatory to map and controls.Removed
onFitBoundsChange
property fromFitBoundsControl
to followZoomControls
behaviour and let the internal map reference handle it.Note: I have renamed the property from
id
tomapId
to not be mistaken with the HTML attribute.Closes https://github.com/Vizzuality/front-end-scaffold/issues/92