fix: map reset

This commit is contained in:
Kieran 2024-01-02 11:17:57 +00:00
parent 45d0d287e0
commit 85cce89229
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -50,7 +50,7 @@ export function HereMap(props: { zoom?: number, markers?: Array<{ lat: number, l
map.current.addObject(m);
}
}
}, [map, props])
}, [map, props.center, props.zoom, props.markers])
// Return a div element to hold the map
return <div style={{ width: "100%", height: "300px" }} className="rounded-xl overflow-hidden" ref={mapRef} />;