adjust to newer leaflet API