That's not yet implemented, but would be possible. PR would be most welcome.
@smeijer Thank you for quick answer!
Hi guys! I need your help with leaflet-geosearch ._.
I'm creating a platform using leaflet and OSM for our map. Now, i'd like to use leaflet-geosearch to add a searchbar for locations and places. But as I'm writing "Import L from 'leaflet'; into my code, i get a report in my console on google, that there is a "Unexpected identifier" at "Import L from 'leaflet';" do you guys maybe know the answere?
Leaflet and leaflet geosearch is installed on my server aswell.
if you're writing Import with capital I, than that can be the issue.
Other option is that you're not transpiling with someting like babel, importstatements are not yet native in node, you could use babel, or change it to require statements.
Ha everyone, Quick questions
What would be the best option to use for an app that needs to get the geolocation (and preferably as much auto-input as possible) ? The app needs to work (as a start) in the netherlands but would we used more within a few months in other countries like the USA.
We, for example, considered the Google places API but it would show us enough results in the dropdown (only 5) and we could not intersect these results with, for example, the city that is already known in an other form-field..
@WillemTax did you figure this out? The Google api does allow a parameter to limit the area of interest. Not sure if it can be limited to a specific city though.
What are you exactly looking for? It sounds like you're trying to build adres completion, something with the Dutch BAG data?
Also there are some nice address lookup services available. I'm not sure if leaflet geosearch is the best library for your purpose.
Hi @mossplix , sorry.. late response.
Hello, I would like to add more providers, can some of you explain/guide me, but also I would like to current fix the issue related to the LocationIQprovider.
@Heni-ghodbane Hi! I'm developing a provider for Algolia Places API for now. You can check src/providers for examples. This is the easiest way for now, due to the lack of some documentation. But it's really simple :)
@yzinets Hi, thanks for the answer, I will check it out :) Algolia looks interesting too, while I am looking for a geocoding and map tile/routing provider.
where can i found an example of leaflet-geosearch?
how to add leaflet-geosearch in reactive form in angular?