esri-leaflet-geocoder
Advanced tools
Changelog
[3.1.4] - 2023-02-23
Changelog
[3.1.0] - 2021-07-20
suggest
and findAddressCandidates
operations should now be more consistent with each other when using a searchBounds
option. We removed an automatically applied bounds padding that was only present in the suggest
's within
method. #274esri-leaflet
now set to ^3
(#272)Changelog
[3.0.0] - 2021-01-25
MapServiceProvider
- new property apikey
FeatureLayerProvider
- new property apikey
ArcgisOnlineProvider
- new property apikey
L.esri.Geocoding.geocodeService
- new property apikey
https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer/
)Previously, the default useage example was:
var searchControl = L.esri.Geocoding.geosearch().addTo(map);
Now that the default geocoding URL requires an API key (an API key can be obtained at https://developers.arcgis.com), that key must be provided if using the ArcGIS Online World Geocoding Service. Thus the new default usage example is:
var searchControl = L.esri.Geocoding.geosearch({
providers: [
L.esri.Geocoding.arcgisOnlineProvider({
// API Key to be passed to the ArcGIS Online Geocoding Service
apikey: 'YOUR_API_KEY'
})
]
}).addTo(map);
Other providers may be used with or without an api key.