working on spatial stuff for leaflet