diff --git a/www/js/map.js b/www/js/map.js index 8bc0601..545f309 100644 --- a/www/js/map.js +++ b/www/js/map.js @@ -57,7 +57,7 @@ var leafletpeoplelayer = L.geoJson( } }, pointToLayer: function (feature, latlng) { - return L.marker(latlng, { + var marker = L.marker(latlng, { icon: L.icon({ iconUrl: "img/mapmarker.svg", iconSize: [25, 41], @@ -65,6 +65,7 @@ var leafletpeoplelayer = L.geoJson( popupAnchor: [0, -28] }) }); + return marker; } } ); @@ -82,10 +83,11 @@ function updateMap() { if (data.type == "FeatureCollection") { leafletpeoplelayer.clearLayers(); data.features.forEach(function (item) { - item.properties.popupContent = " " + item.properties.name + "

Send Money"; + item.properties.popupContent = " " + item.properties.name + "

Send Money"; leafletpeoplelayer.addData(item); }); leafletmap.addLayer(leafletpeoplelayer); + $(".leaflet-marker-icon").addClass("card-prevent-open"); } }); } diff --git a/www/pages/home.html b/www/pages/home.html index c4c812a..8157790 100644 --- a/www/pages/home.html +++ b/www/pages/home.html @@ -120,7 +120,7 @@ {{/if}} {{#if giver}}
-
+