leaflet_map Short code - simple usage

leaflet_map

leaflet_map - m-framework.com

Loads Leaflet (OSM) map to container by given latitude and longitude in attributes. Needs an unique `id` for map container and access token for map.





  • You need obtain an access token as it described in this guide: https://leafletjs.com/examples/quick-start/

    <div id="unique-map-id"
    style="height: 300px;"
    data-m-action="leaflet_map"
    data-m-lat="50.416841"
    data-m-lon="30.5447293"
    data-m-access_token="your-access-token"></div>

Users comments


Sorry you cant to leave a comment. Try to authorize yourself via login and password or use a one of social networks below: