new MapBrowserEvent
Parameters:
| Name | Type | Description |
|---|---|---|
type |
string | Event type. |
map |
ol.Map | Map. |
browserEvent |
goog.events.BrowserEvent | Browser event. |
- Source:
- mapbrowserevent.js, line 24
Extends
Members
-
<static> EventType :string
-
Constants for event names.
- Source:
- mapbrowserevent.js, line 300
Properties:
Name Type Default Description CLICKstring goog.events.EventType.CLICK DBLCLICKstring goog.events.EventType.DBLCLICK DRAGSTARTstring dragstart DRAGstring drag DRAGENDstring dragend -
browserEvent :goog.events.BrowserEvent
-
- Source:
- mapbrowserevent.js, line 31
-
defaultPrevented :boolean
-
- Inherited From:
- Source:
- mapevent.js, line 25
-
map :ol.Map
-
- Inherited From:
- Source:
- mapevent.js, line 20
Methods
-
getCoordinate
-
- Source:
- mapbrowserevent.js, line 52
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 64
Returns:
Pixel offset.- Type
- ol.Pixel
-
isMouseActionButton
-
- Source:
- mapbrowserevent.js, line 77
Returns:
Do we have a left click?- Type
- boolean
-
preventDefault
-
Prevents the default action.
- Inherited From:
- Source:
- mapevent.js, line 34