I am use leaflet-directive to create map using leaflet.
Is it possible to remove leaflet link and OSM copyright from the map.
I wish to put in leaflet image instead.
You can remove the entire attribution control when you create the map by setting attributionControl: false. If you just want to remove (or change) the default Leaflet attribution, you can do something like this: map. attributionControl. setPrefix("Developed by me").
The attribution control allows you to display attribution data in a small text box on a map. It is put on the map by default unless you set its attributionControl option to false , and it fetches attribution texts from layers with the getAttribution method automatically.
Used to load and display tile layers on the map, implements ILayer interface.
When creating the map object, try this:
var map = L.map('map', { attributionControl:false });
It worked for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With