Skip to content

Commit

Permalink
fix bug in showing events popup ref Small bugs #200
Browse files Browse the repository at this point in the history
  • Loading branch information
Xileny committed May 17, 2024
1 parent 7be3c32 commit 94e4320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/protected/events/map/map-click-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const mapClickHandler = (evt, mapRef, leftClickState, setLeftClickState,
const feature = (features[0] as unknown) as GeoJSON.Feature<GeoJSON.Point>
const properties = feature.properties
const centroid = JSON.parse(properties?.center)
const coordinates = JSON.parse(properties?.polygon)
const coordinates = (JSON.parse(properties?.polygon))[0]
drawPolyToMap(
map,
{ longitude: centroid[0], latitude: centroid[1] },
Expand Down

0 comments on commit 94e4320

Please sign in to comment.