Skip to content

Package

esri-leaflet-geocoder

Current version: 3.1.6

This plugin provides access to the ArcGIS Geocoding service for address and place search, reverse geocoding, and autocomplete suggestions. It includes a control for adding a search input to the map.

Install

Below are instructions to install Esri Leaflet Geocoder and its dependencies. You can install it via NPM for use in CommonJS environments or include it directly in your HTML using CDN links.

NPM

You can install the plugin as a Common JS module via NPM:

Use dark colors for code blocksCopy
1
2
3
npm install leaflet --save
npm install esri-leaflet --save
npm install esri-leaflet-geocoder --save

CDN

You can also include esri-leaflet-geocoder using script tags in your HTML.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
<!-- Leaflet -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"/>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>

<!-- Esri Leaflet -->
<script src="https://unpkg.com/esri-leaflet@3.0.19/dist/esri-leaflet.js"></script>

<!-- Esri Leaflet Geocoder -->
<link rel="stylesheet" href="https://unpkg.com/esri-leaflet-geocoder@3.1.6/dist/esri-leaflet-geocoder.css"/>
<script src="https://unpkg.com/esri-leaflet-geocoder@3.1.6/dist/esri-leaflet-geocoder.js"></script>

Classes

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.