mouseposition listens to mousemove and mouseout on map viewport
This commit is contained in:
@@ -59,10 +59,10 @@ ol.control.MousePosition =
|
|||||||
ol.Object.getChangedEventType(ol.MapProperty.PROJECTION),
|
ol.Object.getChangedEventType(ol.MapProperty.PROJECTION),
|
||||||
this.handleMapProjectionChanged, false, this);
|
this.handleMapProjectionChanged, false, this);
|
||||||
|
|
||||||
goog.events.listen(map.getTarget(), goog.events.EventType.MOUSEMOVE,
|
goog.events.listen(map.getViewport(), goog.events.EventType.MOUSEMOVE,
|
||||||
this.handleMouseMove, false, this);
|
this.handleMouseMove, false, this);
|
||||||
|
|
||||||
goog.events.listen(map.getTarget(), goog.events.EventType.MOUSEOUT,
|
goog.events.listen(map.getViewport(), goog.events.EventType.MOUSEOUT,
|
||||||
this.handleMouseOut, false, this);
|
this.handleMouseOut, false, this);
|
||||||
|
|
||||||
this.handleMapProjectionChanged();
|
this.handleMapProjectionChanged();
|
||||||
|
|||||||
Reference in New Issue
Block a user