fix: map reset
This commit is contained in:
parent
45d0d287e0
commit
85cce89229
@ -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} />;
|
||||
|
Loading…
Reference in New Issue
Block a user