Added Leaflet 0.8 compatibility