Leaflet utility function on geometries