Commits

Yohan Boniface  committed e497b02

Rename default_icon_url in default_iconUrl to be consistent

Plus add the leaflet.storage.forms.js file in js.html

  • Participants
  • Parent commits 21626c6

Comments (0)

Files changed (3)

File leaflet_storage/templates/leaflet_storage/js.html

 <script src="{{ STATIC_URL }}hash/leaflet-hash.js"></script>
 <script src="{{ STATIC_URL }}storage/src/js/leaflet.storage.core.js"></script>
 <script src="{{ STATIC_URL }}storage/src/js/leaflet.storage.xhr.js"></script>
+<script src="{{ STATIC_URL }}storage/src/js/leaflet.storage.forms.js"></script>
 <script src="{{ STATIC_URL }}storage/src/js/leaflet.lazygeojson.js"></script>
 <script src="{{ STATIC_URL }}storage/src/js/leaflet.storage.icon.js"></script>
 <script src="{{ STATIC_URL }}storage/src/js/leaflet.storage.features.js"></script>

File leaflet_storage/templates/leaflet_storage/map_fragment.html

             "tilelayers": [{{ tilelayer|safe }}],
             "categories": {{ categories|safe }},
             "urls": {{ urls|safe }},
-            "default_icon_url": "{{ STATIC_URL }}storage/src/img/marker.png",
+            "default_iconUrl": "{{ STATIC_URL }}storage/src/img/marker.png",
             "allowEdit": false,
             'hash': false,
             'attributionControl': false,

File leaflet_storage/templates/leaflet_storage/map_init.html

             "center": {{ map.center.geojson|safe }},
             "categories": {{ categories|safe }},
             "urls": {{ urls|safe }},
-            "default_icon_url": "{{ STATIC_URL }}storage/src/img/marker.png",
+            "default_iconUrl": "{{ STATIC_URL }}storage/src/img/marker.png",
             "zoom": {{ map.zoom }},
             "tilelayers": {{ tilelayers|safe }},
             "allowEdit": {{ allowEdit }},