helpers for using the ArcGIS World Geocoding Service in Leaflet
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. #274
esri-leaflet
now set to ^3
(#272)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.
position
property is 'bottomleft'
or 'bottomright'
. #228
this._lastValue
when clearing and collapsing the control after a result to make it easier to search again for the same input text value. #228
providers
passed in. #225