updated to newest leaflet code