Skip to content

Commit

Permalink
Update markers while zooming
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciabad committed Mar 22, 2024
1 parent f7b249b commit fdd7a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/map/map-elements/map-marker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const MapMarker: FC<MapMarker> = memo(
PlaceMarkerLeafletIconProps['size']
>(calcSize(size, map.getZoom()))

useMapEvent('zoomend', () => {
useMapEvent('zoom', () => {
const zoom = map.getZoom()
const newSize = calcSize(size, zoom)
if (newSize !== actualSize) {
Expand Down

0 comments on commit fdd7a8b

Please sign in to comment.