How rotate map using the leaflet? I was trying here, but nothing worked. I followed this tutorial, even though it was from the mapbox, I assumed it was useful:
The error is:
Uncaught TypeError: t.addTo is not a function at e.addControl (leaflet.js:5) at HTMLDocument.<anonymous> (index.html:85)
And in my code, I just add
I trying too http://labs.easyblog.it/maps/leaflet-compass, but it cant be use for rotate map. How do I rotate the map?