django-leaflet-geojson
django-leaflet-geojson copied to clipboard
How do I set the options on map creation?
More documentation is needed to help customize the map.
Yes, indeed, but more documentation is available on django-leaflet project page though.
The map object will be already initialized, but you could still do this :
// as stated in django-leaflet readme
window.addEventListener("map:init", function (e) {
var map = e.detail.map;
map.setOptions( {...} );
...
}, false);
Tell me if you encounter problems setting options after map initialization. Maybe it's too late for some options to be taken into account. In this case, please open an issue (with the name of the options) in django-leaflet directly :)
Thanks ! Good luck !