Closed dirodriguezm closed 6 years ago
Looks like you're missing the style sheet. Did you include it?
@smeijer I installed it with npm and the leaflet.css file is located in node_modules/leaflet-geosearch/assets/css/
Do I need to include it in some way ?
Edit: Yes, I added https://unpkg.com/leaflet-geosearch@2.6.0/assets/css/leaflet.css in the html page and now it works. Thanks. Just have one issue with the search bar, whenever I click on it, a map onClick function is called so I can't add markers onClick. Is there a workaround for this ?
whenever I click on it, a map onClick function is called so I can't add markers onClick. Is there a workaround for this
autoClose: true,
keepResult: true
autoClose
closes the result list if a result is selected by click/enter.
keepResult
is used to keep the selected result in the search field. This prevents markers to disappear while using the autoClose feature.
Hi
I'm having trouble with the GeoSearchControl style. If I leave it default or "button" it looks like this:
If I set it to "bar" it renders but behind the map tile.
I am using react with react-leaflet. This is my MapControl class:
And the
Any help would be appreciated