mirror of
https://github.com/jlengrand/leaflet-geosearch.git
synced 2026-03-10 08:31:26 +00:00
32 lines
620 B
Plaintext
32 lines
620 B
Plaintext
---
|
|
name: Esri
|
|
menu: Providers
|
|
route: /providers/esri
|
|
---
|
|
|
|
import Playground from '../components/Playground';
|
|
import Map from '../components/Map';
|
|
|
|
# Esri Provider
|
|
For more options and configurations, see the [ArcGIS developer docs][1].
|
|
|
|
<Playground>
|
|
<Map provider="Esri" />
|
|
</Playground>
|
|
|
|
|
|
```js
|
|
import { EsriProvider } from 'leaflet-geosearch';
|
|
|
|
const provider = new EsriProvider();
|
|
|
|
// add to leaflet
|
|
import { GeoSearchControl } from 'leaflet-geosearch';
|
|
|
|
map.addControl(new GeoSearchControl({
|
|
provider,
|
|
}));
|
|
```
|
|
|
|
[1]: https://developers.arcgis.com/rest/geocode/api-reference/overview-world-geocoding-service.htm
|