Source

django-leaflet-storage / leaflet_storage / templates / leaflet_storage / map_fragment.html

Full commit
    <div id="map_{{ map.pk }}" class="map_fragment"></div>
    <script type="text/javascript">
        map_fragment_settings = {
            "storage_id": {{ map.pk }},
            "center": {{ map.center.geojson|safe }},
            "zoom": {{ map.zoom }},
            "tilelayers": [{{ tilelayer|safe }}],
            "categories": {{ categories|safe }},
            "urls": {{ urls|safe }},
            "default_iconUrl": "{{ STATIC_URL }}storage/src/img/marker.png",
            "allowEdit": false,
            'hash': false,
            'attributionControl': false,
            'scrollWheelZoom': false,
            'embedControl': false,
            'layersControl': false,
            'storageZoomControl': false,
            'storageAttributionControl': false,
            'homeControl': false,
            'locateControl': false,
            'jumpToLocationControl': false,
            'editInOSMControl': false,
            'scaleControl': false
        }
        new L.Storage.Map("map_{{ map.pk }}", map_fragment_settings);
    </script>