Ported all functionality to Leaflet maps.