stefanocudini / leaflet-search

Search stuff in a Leaflet map
https://opengeo.tech/maps/leaflet-search/
MIT License
780 stars 335 forks source link

latlng.layer.getBounds() is undefined #330

Closed Michael-Wohlstadter closed 8 months ago

Michael-Wohlstadter commented 8 months ago

I am attempting to implement a search using a GeoJSON source. My spatial data is stored to "geometry" and I have also created properties for "latitude" and "longitude".

I have tried setting propertyLoc to "geometry" and to ['latitude', 'longitude'] and in both cases I get the same error.

I suspect that I am not initializing the object correctly. What is the correct syntax to reference my LatLon?

Thanks, Michael

Michael-Wohlstadter commented 8 months ago

I have been able to identify my mistake in my code. The library itself is functioning correctly.