Browse Source

Fix missing marker popup

pull/16/head
Nafies Luthfi 5 years ago
parent
commit
1042f884af
  1. 9
      resources/views/outlets/map.blade.php

9
resources/views/outlets/map.blade.php

@ -38,19 +38,18 @@
console.log(response.data);
var marker = L.geoJSON(response.data, {
pointToLayer: function(geoJsonPoint, latlng) {
return L.marker(latlng);
}
})
.bindPopup(function (layer) {
return L.marker(latlng).bindPopup(function (layer) {
return layer.feature.properties.map_popup_content;
});
}
});
markers.addLayer(marker);
})
.catch(function (error) {
console.log(error);
});
map.addLayer(markers);
@can('create', new App\Outlet)
var theMarker;

Loading…
Cancel
Save