From 26d065306e4270dc1737eef80d5f752cb956cc03 Mon Sep 17 00:00:00 2001 From: Ilja Date: Thu, 6 Feb 2014 11:25:17 +0300 Subject: [PATCH] Added ability to pass options to marker popup Example usage: markers: museumMarker: lat: 60 lng: 30 message: 'Hi there!' draggable: true popupOptions: closeButton: false closeOnClick: false --- src/directives/markers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/directives/markers.js b/src/directives/markers.js index cca89eed..31bf841b 100644 --- a/src/directives/markers.js +++ b/src/directives/markers.js @@ -62,7 +62,7 @@ angular.module("leaflet-directive").directive('markers', function ($log, $rootSc // Bind message if (isDefined(markerData.message)) { - marker.bindPopup(markerData.message); + marker.bindPopup(markerData.message, markerData.popupOptions); } // Add the marker to a cluster group if needed