new MapBrowserEvent
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
type |
string | Event type. |
|
map |
ol.Map | Map. |
|
browserEvent |
goog.events.BrowserEvent | Browser event. |
|
frameState |
ol.FrameState |
<optional> <nullable> |
(Optional) Frame state. |
- Source:
- mapbrowserevent.js, line 27
Methods
-
getCoordinate
-
- Source:
- mapbrowserevent.js, line 55
Returns:
Coordinate.
- Type
- ol.Coordinate
-
getPixel
-
Get pixel offset of the event from the top-left corner of the map viewport.
- Source:
- mapbrowserevent.js, line 67
Returns:
Pixel offset.
- Type
- ol.Pixel