Skip to content

Commit f33598c

Browse files
committed
changed marker icon - reopen popup if marker has been already focused
1 parent 19dd3d7 commit f33598c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/services/leafletMarkersHelpers.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,10 @@ angular.module("leaflet-directive").service('leafletMarkersHelpers', function ($
329329
marker.unbindPopup();
330330
if (isString(markerData.message)) {
331331
marker.bindPopup(markerData.message, markerData.popupOptions);
332+
// if marker has been already focused, reopen popup
333+
if (map.hasLayer(marker) && markerData.focus === true) {
334+
marker.openPopup();
335+
}
332336
}
333337
}
334338

0 commit comments

Comments
 (0)