Event objects
Event objects are passed as arguments to event listeners when events are fired. For more information about Leaflet events, see Events methods.
map.indoors.on("indoormapenter", function(e) {
var indoorMapName = e.indoorMap.getIndoorMapName();
alert("Entered " + indoorMapName);
});
Event
Leaflet’s base event object. All other event objects have these properties. For more information, see Event objects.
Property | Type | Description |
---|---|---|
type | string | The event type. e.g. “indoormapenter” |
target | object | The object that fired the event. |
IndoorMapEvent
Property | Type | Description |
---|---|---|
indoorMap | IndoorMap |
The indoor map that was entered or exited. |
IndoorFloorEvent
Property | Type | Description |
---|---|---|
floor | IndoorMapFloor |
The floor that was switched to. |
IndoorEntranceEvent
Property | Type | Description |
---|---|---|
entrance | IndoorMapEntrance |
The entrance that was added or removed. |
IndoorEntityEvent
Property | Type | Description |
---|---|---|
ids | string[] | The ids of the indoor entities. |
v0.1.1335
- L.Wrld.themes
- Event objects
- WrldPoiApi
- L.Map
- L.Marker
- L.Popup
- L.TileLayer
- L.TileLayer.WMS
- L.TileLayer.Canvas
- L.ImageOverlay
- L.Path
- L.Polyline
- L.MultiPolyline
- L.Polygon
- L.MultiPolygon
- L.Rectangle
- L.Circle
- L.CircleMarker
- L.LayerGroup
- L.FeatureGroup
- L.GeoJson
- L.LatLng
- L.LatLngBounds
- L.Point
- L.Bounds
- L.Icon
- L.DivIcon
- L.Control
- L.Control.zoom
- L.Control.Attribution
- L.Control.Layers
- L.Control.Scale
- Events methods
- Event objects
- L.Class
- L.Browser
- L.Util
- L.Transformation
- L.LineUtil
- L.PolyUtil
- L.DomEvent
- L.DomUtil
- L.PosAnimation
- L.Draggable
- L.IHandler
- L.ILayer
- L.IControl
- L.IProjection
- L.ICRS
- Global Switches
- L.noConflict
- L.version
Themes
Events
Services (Optional)
Leaflet
Themes
L.Wrld.themes
Events
Event objects
Services (Optional)
WrldPoiApi
Leaflet
L.Map
L.Marker
L.Popup
L.TileLayer
L.TileLayer.WMS
L.TileLayer.Canvas
L.ImageOverlay
L.Path
L.Polyline
L.MultiPolyline
L.Polygon
L.MultiPolygon
L.Rectangle
L.Circle
L.CircleMarker
L.LayerGroup
L.FeatureGroup
L.GeoJson
L.LatLng
L.LatLngBounds
L.Point
L.Bounds
L.Icon
L.DivIcon
L.Control
L.Control.zoom
L.Control.Attribution
L.Control.Layers
L.Control.Scale
Events methods
Event objects
L.Class
L.Browser
L.Util
L.Transformation
L.LineUtil
L.PolyUtil
L.DomEvent
L.DomUtil
L.PosAnimation
L.Draggable
L.IHandler
L.ILayer
L.IControl
L.IProjection
L.ICRS
Global Switches
L.noConflict
L.version