Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

Commit 6f47631

Browse files
committed
fix: Pass popup options in all calls to marker.bindPopup()
1 parent 2c29dfd commit 6f47631

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/leafletMarkersHelpers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ angular.module("leaflet-directive").factory('leafletMarkersHelpers', function ($
252252
marker.closePopup();
253253
marker.unbindPopup();
254254
if (isString(markerData.message)) {
255-
marker.bindPopup(markerData.message);
255+
marker.bindPopup(markerData.message, markerData.popupOptions);
256256
}
257257
}
258258
}
@@ -269,7 +269,7 @@ angular.module("leaflet-directive").factory('leafletMarkersHelpers', function ($
269269
marker.closePopup();
270270
marker.unbindPopup();
271271
if (isString(markerData.message)) {
272-
marker.bindPopup(markerData.message);
272+
marker.bindPopup(markerData.message, markerData.popupOptions);
273273
}
274274
}
275275

@@ -287,7 +287,7 @@ angular.module("leaflet-directive").factory('leafletMarkersHelpers', function ($
287287
// There is some text in the popup, so we must show the text or update existing
288288
if (isString(markerData.message) && !isString(oldMarkerData.message)) {
289289
// There was no message before so we create it
290-
marker.bindPopup(markerData.message);
290+
marker.bindPopup(markerData.message, markerData.popupOptions);
291291
if (markerData.focus === true) {
292292
// If the focus is set, we must open the popup, because we do not know if it was opened before
293293
marker.openPopup();

0 commit comments

Comments
 (0)