Skip to content

Commit

Permalink
Fix Marker collision mode (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikischin authored May 20, 2024
1 parent 6676471 commit 9083961
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Marker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ export default function Marker({
if (!marker) return;

if (collisionMode === 'Circle') {
marker.collisionMode = mapkit.MarkerAnnotation.CollisionMode.Circle;
marker.collisionMode = mapkit.Annotation.CollisionMode.Circle;
} else if (collisionMode === 'Rectangle') {
marker.collisionMode = mapkit.MarkerAnnotation.CollisionMode.Rectangle;
marker.collisionMode = mapkit.Annotation.CollisionMode.Rectangle;
} else {
// @ts-ignore
delete marker.collisionMode;
Expand Down

0 comments on commit 9083961

Please sign in to comment.