Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
map.on('click', e => {
store.dispatch(unfocusMenu());
if (self.drawingPoints) {
store.dispatch(removeGeometry());
store.dispatch(addGeometry(e.latlng, 'point'));
// temporary - setting results for identify here since
// i can't find a good way of getting it in to the identify
// tool while using leaflet for mapping
const latlng = [e.latlng.lng, e.latlng.lat];
const results = geoblaze.identify(self.raster.georaster, latlng);
store.dispatch(setResults(results));
}
});