Esri / esri-leaflet-geocoder

helpers for using the ArcGIS World Geocoding Service in Leaflet
http://esri.github.io/esri-leaflet/examples/geocoding-control.html
Apache License 2.0
244 stars 101 forks source link

two search fields in the input form? #267

Closed mkden closed 3 years ago

mkden commented 3 years ago

how to do like this? please, help. 123

pmacMaps commented 3 years ago

Are you asking how to change where the search form is located on the webpage? Or are you asking something different?

mkden commented 3 years ago

yes and add one more search field instead of one there should be two! two fields input autocomplete

mkden commented 3 years ago

???????????????????????????????

pmacMaps commented 3 years ago

I'm still trying to understand your goal. From the graphic, it appears you want the search control UI to not be located on the map? And that you want to be able to search multiple fields within a feature service?

Here is a sample map that does both: https://gis.ccpa.net/sld/activity/.

I'm just trying to better understand your goals to help identify a solution.

jwasilgeo commented 3 years ago

@pmacMaps thanks for jumping in and helping!

@mkden hope this info helps you out.

tomickigrzegorz commented 3 years ago

But from what I can see you need the autocomplete library with geocoding capability :) Take a look at my example

select-two-city

You can adapt it to your own needs.

jwasilgeo commented 3 years ago

Hej dziekuje @tomik23 for sharing your own leaflet examples site. Nice community resource for folks using LeafletJS in different ways.

@mkden, as @pmacMaps noted you can use the esri-leaflet-geocoder to accommodate your goals by putting multiple instances of it in another container element outside of the map.

mkden commented 3 years ago

But from what I can see you need the autocomplete library with geocoding capability :) Take a look at my example

select-two-city

You can adapt it to your own needs.

you showed me an example on https://nominatim.openstreetmap.org and I asked https://geocode.arcgis.com