Browser
A namespace with properties for browser/feature detection used by Leaflet internally.
if (L.Browser.ie6) {
alert('Upgrade your browser, dude!');
}
property | type | description |
---|---|---|
ie |
Boolean |
true for all Internet Explorer versions. |
ie6 |
Boolean |
true for Internet Explorer 6. |
ie7 |
Boolean |
true for Internet Explorer 7. |
ielt9 |
Boolean |
true for Internet Explorer versions less than 9. |
webkit |
Boolean |
true for webkit-based browsers like Chrome and Safari (including mobile versions). |
webkit3d |
Boolean |
true for webkit-based browsers that support CSS 3D transformations. |
android |
Boolean |
true for Android mobile browser. |
android23 |
Boolean |
true for old Android stock browsers (2 and 3). |
mobile |
Boolean |
true for modern mobile browsers (including iOS Safari and different Android browsers). |
mobileWebkit |
Boolean |
true for mobile webkit-based browsers. |
mobileOpera |
Boolean |
true for mobile Opera. |
touch |
Boolean |
true for all browsers on touch devices. |
msTouch |
Boolean |
true for browsers with Microsoft touch model (e.g. IE10). |
retina |
Boolean |
true for devices with Retina screens. |
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