[GIS] How to remove attribution in Leaflet

attributionjavascriptleaflet

I want to remove the "Leaflet.com" that appears on the right bottom of the screen
here. How can I do that?

example

Best Answer

The Leaflet way: L.map('map', {attributionControl: false, etc...})

A simple $('.leaflet-control-attribution').hide() or non jQuery document.getElementsByClassName( 'leaflet-control-attribution' )[0].style.display = 'none';.

Vladimir himself says it's OK to remove it: https://groups.google.com/d/msg/leaflet-js/fA6M7fbchOs/JTNVhqdc7JcJ, but it seems like you should leave it or acknowledge Leaflet in some way.