new ViewerClickEvent(type, pixel, coordinate [, opt_dragging], opt_originalEvent)
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
type |
string | Event type. |
|
pixel |
ol.Pixel | The viewer pixel relative to the viewport corresponding to the original browser event. |
|
coordinate |
Mapspace.Coordinate | The coordinate in viewer projection corresponding to the original browser event. |
|
opt_dragging |
boolean |
<optional> |
Is the viewer currently being dragged? Default
is |
opt_originalEvent |
MouseEvent | PointerEvent |
<nullable> |
Original event. |
- Source:
- mapspace/events.js
Extends
Members
-
coordinate :Mapspace.Coordinate
-
The coordinate in viewer projection corresponding to the original browser event.
- Source:
- mapspace/events.js
-
dragging :boolean
-
Is the viewer currently being dragged? Default is
false
.- Source:
- mapspace/events.js
-
<nullable> originalEvent :MouseEvent|PointerEvent
-
The original event.
- Source:
- mapspace/events.js
-
pixel :ol.Pixel
-
The viewer pixel relative to the viewport corresponding to the original browser event.
- Source:
- mapspace/events.js