O'Reilly logo

Leaflet.js Essentials by Paul Crickard III

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Geocoding addresses in Leaflet

Geocoding is the process by which you can enter an address and be taken to a point on the map. Geocoding functionality is not part of the Esri-leaflet core but is a separate plugin. You can find more information on the esri-leaflet-geocoder GitHub page at https://github.com/Esri/esri-leaflet-geocoder.

Geocoding – from an address to a point

The geocoding plugin places a search box below the zoom control. As you type an address, the search autocompletes and presents the possible options. You can either type the whole address or select from the list when the one you want is available. Clicking on an option or pressing enter will put a marker on the map at the location and zoom into it. To create a map with geocoding

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required