Преглед на файлове

Refactory vista edit map

Guillermo Espinoza преди 8 години
родител
ревизия
921654052d
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      Resources/public/js/leaflet-map.js

+ 2 - 0
Resources/public/js/leaflet-map.js

@@ -12,6 +12,8 @@ $(document).ready(function () {
     map = new L.Map('map', {zoom: getZoomLevel(), center: getDataCoords()});
     drawnItems = L.featureGroup().addTo(map);
 
+    drawMarker();
+
     L.control.layers(
             {
                 'openstreetmap': L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',