Possible to remove leaflet link with image

Alvin picture Alvin · Oct 12, 2015 · Viewed 8.7k times · Source

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.

Answer

Stef Verdonk picture Stef Verdonk · Apr 9, 2016

When creating the map object, try this:

var map = L.map('map', { attributionControl:false });

It worked for me