Interactive interface for browsing global, full-resolution satellite imagery
fix event name and bad conflict resolution
Jason Kent4b8c234d92da
diff --git a/web/js/components/geosearch/ol-coordinates-marker.js b/web/js/components/geosearch/ol-coordinates-marker.jsindex 4e46d0ee9..333b9c4d4 100644--- a/web/js/components/geosearch/ol-coordinates-marker.js+++ b/web/js/components/geosearch/ol-coordinates-marker.js@@ -14,6 +14,9 @@ import {import { areCoordinatesWithinExtent } from '../../modules/geosearch/util';import { reverseGeocode } from '../../modules/geosearch/util-api';import { getCoordinateFixedPrecision } from './util';+import util from '../../util/util';++const { events } = util;export class CoordinatesMarker extends Component {constructor(props) {@@ -28,17 +31,15 @@ export class CoordinatesMarker extends Component {}componentWillUnmount() {- const { mouseEvents } = this.props;- mouseEvents.off('mousemove', this.mouseMove);- mouseEvents.off('singleclick', this.singleClick);- mouseEvents.off('contextmenu', this.rightClick);+ events.off('mousemove', this.mouseMove);+ events.off('singleclick', this.singleClick);+ events.off('contextmenu', this.rightClick);}registerMouseListeners() {- const { mouseEvents } = this.props;- mouseEvents.on('mousemove', this.mouseMove);- mouseEvents.on('singleclick', this.singleClick);- mouseEvents.on('contextmenu', this.rightClick);+ events.on('mousemove', this.mouseMove);+ events.on('singleclick', this.singleClick);+ events.on('contextmenu', this.rightClick);}mouseMove(event, map, crs) {@@ -197,7 +198,6 @@ CoordinatesMarker.propTypes = {isMobile: PropTypes.bool.isRequired,isShowingClick: PropTypes.bool.isRequired,measureIsActive: PropTypes.bool.isRequired,- mouseEvents: PropTypes.object.isRequired,setPlaceMarker: PropTypes.func.isRequired,toggleDialogVisible: PropTypes.func.isRequired,toggleReverseGeocodeActive: PropTypes.func.isRequired,diff --git a/web/js/map/ui.js b/web/js/map/ui.jsindex da42ba643..19090f140 100644--- a/web/js/map/ui.js+++ b/web/js/map/ui.js@@ -1132,7 +1132,7 @@ export default function mapui(models, config, store, ui) {};map.getView().on('change:resolution', () => {onZoomChange();- events.trigger('movestart');+ events.trigger('map:movestart');});onZoomChange();}