How to use the esri-leaflet-geocoder.reverseGeocode function in esri-leaflet-geocoder

To help you get started, we’ve selected a few esri-leaflet-geocoder examples, based on popular ways it is used in public projects.

github tooleks / photo-blog / app / resources / js / components / map / locationPopupProvider.js View on Github external
return new Promise((resolve) => {
        reverseGeocode()
            .latlng(location)
            .run((error, result) => {
                let address;
                if (!error) {
                    address = result.address.LongLabel;
                }
                const propsData = {lat: location.lat, lng: location.lng, address};
                const popup = new LocationPopupComponent({propsData});
                const html = popup.$mount().$el.outerHTML;
                resolve(html);
            });
    });
}

esri-leaflet-geocoder

Esri Geocoding utility and search plugin for Leaflet.

Apache-2.0
Latest version published 6 months ago

Package Health Score

76 / 100
Full package analysis

Similar packages