v3.0.0
Added
MapServiceProvider- new propertyapikeyFeatureLayerProvider- new propertyapikeyArcgisOnlineProvider- new propertyapikeyL.esri.Geocoding.geocodeService- new propertyapikey
Changed
- Default WorldGeocodingServiceUrl changed to new endpoint that requires an API key. (
https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer/)
Notes
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.