Skip to content

Commit

Permalink
DBC22-1056: Fixed the precision accurate issue in different zoom level (
Browse files Browse the repository at this point in the history
#176)

DBC22-1056: Fixed the precision accurate issue in different zoom level
  • Loading branch information
bcgov-brwang authored Nov 10, 2023
1 parent 0ea1cf5 commit 67e147a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/src/Components/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default function MapWrapper({
// Create an overlay for the marker
locationPinRef.current = new Overlay({
position: fromLonLat(coordinates),
positioning: 'bottom-center',
positioning: 'center-center',
element: svgImage,
stopEvent: false, // Allow interactions with the overlay content
});
Expand Down Expand Up @@ -179,7 +179,7 @@ export default function MapWrapper({
// Create an overlay for the marker
const markerOverlay = new Overlay({
position: fromLonLat(coordinates),
positioning: 'bottom-center',
positioning: 'center-center',
element: svgImage,
stopEvent: false, // Allow interactions with the overlay content
});
Expand Down

0 comments on commit 67e147a

Please sign in to comment.