Skip to content

Commit

Permalink
EditDialog: Fix not showing newly created relations on the map (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvaclavik authored Jan 29, 2025
1 parent 403fda0 commit f490feb
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ const useUpdateFeatureMarkers = createMapEffectHook<
markerRefs.current = [];

items.forEach((item) => {
if (!isGpsValid(item.nodeLonLat) || item.shortId === current) return;
if (
!isGpsValid(item.nodeLonLat) ||
item.shortId === current ||
item.shortId[0] !== 'n'
)
return;
const [lng, lat] = item.nodeLonLat;

const marker = new maplibregl.Marker({
Expand Down

0 comments on commit f490feb

Please sign in to comment.