Please read through the docs and changes list carefully. There has been a major refactoring.
** Breaking Changes **
- Namespacing has changed. All methods and classes are now under
L.esri.Geocoding.L.esri.Geocodingorganizes everything intoControls,Services, andTasks. GeocodeServicehas been rewritten from scratch to mirror the Esri Leaflet service style that returns tasks.GeocodeService.suggest,GeocodeService.geocodeandGeocodeService.reverseall return their respective tasks.
** Changes **
- New tasks for
Suggest,GeocodeandReverseGeocodethat mirror the Esri Leaflet task structure. L.esri.Geocoding.Controls.Geosearchcan now search multiple providers.- Available on NPM and Bower
- Wrapped as a CommonJS module
- Wrapped as an AMD module
- Basic unit tests
- TravisCI support
- Source maps for compressed builds
Changes
- Improve experience for users when they hit enter with no suggestion selected. The current test in the input will be geocoded and the map centered on the extent of all results. This behavior can be disabled by setting
allowMultipleResultstofalse. - Fix behavior of
useMapBoundswhich was incorrect. - Don't pass
bboxwith suggest. The suggest API doesn't use it. - Increase
useMapBoundsdefault to12.
Breaking Changes
- Esri Leaflet Geocoder now relies on the Esri Leaflet Core build, find out more on the Esri Leaflet downloads page.
- The callback signatures on
L.esri.Services.Geocoding. The raw response is now the 3rd parameter and the second parameter is now a processed array of Geocode Results or aReverse Geocode Results depending on the call. L.esri.Services.Geocodingno longer accepts theoutFieldsparameter.
Changes
- Fix a display issues where the form would close but would not expand again. Esri#33
- Now that
L.esri.Services.Geocoderextends onL.esri.Services.Serviceyou can pass tehforStorageflag with any call and authenticate. Listen for theauthenticationrequiredevent and provide a token or pass atokenoption.
- Fix style to accomodate
toprightposition - Fix some leaflet-touch style issues
- Fix bug in IE 10 and 11 on Windows 8 touch devices
This is now ready for beta! This release helps finalize the API and includes lots of cross browser support.
Breaking Changes
resultandresultsevents have been refactored into a singleresultsevent with and array of results.
Changes
- When the user hits enter without a suggestion selected their current text is geocoded within the current map bounds.
- Esri attribution added
errorevent added
- Add the
allowMultipleResultsoption. Esri#6
- Inital alpha release