{% load i18n static mapentity_tags leaflet_tags geojson_tags %}

<div id="{{ mapname }}"
     data-fitmaxzoom="{{ MAP_FIT_MAX_ZOOM }}"
     data-mapextent="{{ object|latlngbounds }}"
     data-readonly="{% if readonly %}readonly{% endif %}">
    <script type="application/json" class="geojsonfeature">
        {{ object|geojsonfeature|safe }}
    </script>
</div>
{% leaflet_map mapname fitextent=False creatediv=False %}
