Updated code to match Leaflet 0.7.1 standards