Esri Geocoding utility and search plugin for Leaflet.
npm install esri-leaflet-geocoderhtml
Esri Leaflet Geocoder
name="viewport"
content="initial-scale=1,maximum-scale=1,user-scalable=no"
/>
rel="stylesheet"
href="https://unpkg.com/esri-leaflet-geocoder/dist/esri-leaflet-geocoder.css"
/>
`
API Reference
Controls
$3
a control for auto-complete enabled search
Services
$3
A basic wrapper for ArcGIS Online geocoding services. Used internally by L.esri.Geocoding.geosearch.
Tasks
$3
An abstraction for submitting requests to turn addresses into locations.
$3
An abstraction for submitting requests for geocoding suggestions.
$3
An abstraction for submitting requests for address candidates associated with a particular location.
Development Instructions
1. Fork and clone Esri Leaflet Geocoder
2. cd into the esri-leaflet-geocoder folder and install the dependencies with npm install
3. Run npm start from the command line. This will compile minified source in a brand new dist directory, launch a tiny webserver and begin watching the raw source for changes.
4. The example at debug/sample.html _should_ 'just work'
5. Make your changes and create a pull request
Resources
- Geocoding Service Documentation
- ArcGIS Developer
- ArcGIS REST services
- twitter@EsriGeoDev
Issues
Find a bug or want to request a new feature? Please let us know by submitting an issue.
Contributing
Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.
Terms and Conditions
In order use the ArcGIS geocoding service you need the following:
1. An ArcGIS Developer account or ArcGIS Online account.
2. If your application uses an basemap layer service or other Esri data, you must displayPowered byEsri in the map attribution. See Basemap attribution for more details.
Not-stored vs stored geocodes
To determine if there is a cost associated with using the Esri Leaflet Geocoder and the ArcGIS geocoding service, if you have an ArcGIS Developer account, go to Pricing, or, if you have an ArcGIS Online account, go to Credits by Capability.
Note: To store geocoding results, pass forStorage: true` and a valid access token (see Esri Leaflet Get Started).