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.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

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 1 year ago

Package Health Score

63 / 100
Full package analysis

Similar packages