diff --git a/DOCS-TODO b/DOCS-TODO index fb0ea1df..3dce470d 100644 --- a/DOCS-TODO +++ b/DOCS-TODO @@ -1,66 +1,28 @@ - -Layers addTo(map) - Map panning inertia options remove locateAndSetView new locate options - getContainer - containerPointToLatLng - latLngToContainerPoint addHandler - autopanstart event - Icon Icon.Default -DivIcon -Control - position option - - setPosition - getPosition - -Control.Attribution prefix in options - -Scale control - -LatLngBounds pad +NEW DivIcon on/off(eventMap) on/off(space-separated types) off(type) to remove all listeners TileLayer - removed urlParams - - detectRetina option + detectRetina option redraw setUrl bringToFront bringToBack -TileLayer.WMS - setParams - -Marker - opacity option - - setOpacity - update - -ImageOverlay - opacity option - - setOpacity - -Popup - maxHeight - Path bringToFront bringToBack @@ -69,41 +31,30 @@ Path redraw - events - contextmenu +FeatureGroup - ? + setStyle -Circle - getBounds - getLatLng - getRadius - -MouseEvent - originalEvent - containerPoint - -Global switches +NEW Global switches L_NO_TOUCH L_PREFER_CANVAS L_DISABLE_3D - - -Transformation +NEW Transformation Transformation(a, b, c, d) transform(point, scale) untransform(point, scale) -LineUtil +NEW LineUtil simplify(points, tolerance) pointToSegmentDistance(p, p1, p2) closestPointOnSegment(p, p1, p2) clipSegment(a, b, bounds) -PolyUtil +NEW PolyUtil clipPolygon(points, bounds) -DomEvent +NEW DomEvent addListener(obj, type, fn, context) on removeListener(obj, type, fn) @@ -115,7 +66,7 @@ DomEvent getMousePosition(e, container) getWheelDelta(e) -Transition +NEW Transition Transition(el, options) run(props) @@ -131,9 +82,9 @@ Transition step end -Draggable +NEW Draggable Draggable(element, dragStartTarget) - + enable() disable() @@ -143,7 +94,7 @@ Draggable drag dragend -ILayer +NEW ILayer onAdd(map) onRemove(map) @@ -151,29 +102,15 @@ ILayer options.minZoom and options.maxZoom -IFeature - ? - getBounds() or getLatLng() - setStyle - bindPopup - events - -Control - Control(options) - - getPosition() - setPosition() - addTo(map) - removeFrom(map) - -IControl +NEW IControl onAdd(map) onRemove(map) -IProjection +NEW IProjection project(latlng) unproject(point) -ICRS +NEW ICRS latLngToPoint(latlng, zoom) pointToLatLng(point, zoom) project(latlng) diff --git a/docs/css/screen.css b/docs/css/screen.css index 0efca4c6..77dd55fd 100644 --- a/docs/css/screen.css +++ b/docs/css/screen.css @@ -122,24 +122,32 @@ pre code a:hover { text-decoration: underline; } +p code, td:last-child code { + color: #666; +} + table { border-collapse: collapse; box-shadow: 0 3px 15px #f0f0f0; } th { - background-color: #f3f3f3; - background-image: -webkit-gradient(linear, left top, left bottom, from(#f3f3f3), to(#e7e7e7)); /* Saf4+, Chrome */ - background-image: -webkit-linear-gradient(top, #f3f3f3, #e7e7e7); /* Chrome 10+, Saf5.1+, iOS 5+ */ - background-image: -moz-linear-gradient(top, #f3f3f3, #e7e7e7); /* FF3.6+ */ - background-image: -o-linear-gradient(top, #f3f3f3, #e7e7e7); /* Opera 11.10+ */ - background-image: linear-gradient(to bottom, #f3f3f3, #e7e7e7); + background-color: #eeeeee; + background-image: -webkit-gradient(linear, left top, left bottom, from(#eeeeee), to(#d7d7d7)); /* Saf4+, Chrome */ + background-image: -webkit-linear-gradient(top, #eeeeee, #d7d7d7); /* Chrome 10+, Saf5.1+, iOS 5+ */ + background-image: -moz-linear-gradient(top, #eeeeee, #d7d7d7); /* FF3.6+ */ + background-image: -o-linear-gradient(top, #eeeeee, #d7d7d7); /* Opera 11.10+ */ + background-image: linear-gradient(to bottom, #eeeeee, #d7d7d7); + + text-shadow: 1px 1px 0 white; + + padding: 5px 10px; } th, td { - padding: 8px 10px; vertical-align: top; /*line-height: 1.4;*/ } td { + padding: 8px 10px; /*border-right: 1px solid #eee;*/ } diff --git a/docs/highlight/styles/github.css b/docs/highlight/styles/github.css index 69622eed..ba1fabd9 100644 --- a/docs/highlight/styles/github.css +++ b/docs/highlight/styles/github.css @@ -36,7 +36,8 @@ pre .javascript .title { } code .number, -pre .hexcolor { +pre .hexcolor, +code .literal { color: #00A707 } @@ -66,9 +67,6 @@ pre .tex .command { color: #458; font-weight: bold } -code .literal { - color: #333; -} pre .tag, pre .tag .title, diff --git a/reference.html b/reference.html index 5e33d17c..973b1b42 100644 --- a/reference.html +++ b/reference.html @@ -67,13 +67,15 @@ bodyclass: api-page
closePopupOnClick
Boolean
true
false
if you don't want popups to close when user clicks the map.false
if you don't want popups to close when user clicks the map.worldCopyJump
contextmenu
MouseEvent
- preclick
Event
autopanstart
Event
+ layeradd
LayerEvent
@@ -429,72 +437,72 @@ var map = L.map('map', {
setView( <LatLng> center, <Number> zoom, <Boolean> forceReset? )
this
forceReset
is set to true
, the map is reloaded even if it's eligible for pan or zoom animation (false
by default).this
forceReset
is set to true
, the map is reloaded even if it's eligible for pan or zoom animation (false
by default).setZoom( <Number> zoom )
this
this
zoomIn()
this
this
zoomOut()
this
this
fitBounds( <LatLngBounds> bounds )
this
this
fitWorld()
this
this
panTo( <LatLng> latlng )
this
this
panInsideBounds( <LatLngBounds> bounds )
this
this
panBy( <Point> point )
this
this
invalidateSize()
this
this
setMaxBounds( <LatLngBounds> bounds )
this
this
locate( <Locate options> options? )
this
this
locationfound
event with location data on success or locationerror
event on failure. See Locate options for more details.locateAndSetView( <Number> maxZoom?, <Locate options> options? )
this
this
map.locate({setView: true, maxZoom: maxZoom});
.stopLocate()
this
this
map.locate({watch: true})
.getBoundsZoom( <LatLngBounds> bounds, <Boolean> inside? )
Number
inside
(optional) is set to true
, the method instead returns the minimum zoom level on which the map view fits into the given bounds in its entirety.inside
(optional) is set to true
, the method instead returns the minimum zoom level on which the map view fits into the given bounds in its entirety.getSize()
addLayer( <ILayer> layer, <Boolean> insertAtTheBottom? )
this
insertAtTheBottom
is set to true
, the layer is inserted under all others (useful when switching base tile layers).this
insertAtTheBottom
is set to true
, the layer is inserted under all others (useful when switching base tile layers).removeLayer( <ILayer> layer )
this
this
hasLayer( <ILayer> layer )
Boolean
true
if the given layer is currently added to the map.true
if the given layer is currently added to the map.openPopup( <Popup> popup )
this
this
closePopup()
this
this
addControl( <IControl> control )
this
this
removeControl( <IControl> control )
this
this
Point
latLngToContainerPoint( <LatLng> latlng )
Point
containerPointToLatLng( <Point> point )
LatLng
project( <LatLng> latlng, <Number> zoom? )
Point
watch
Boolean
false
true
, starts continous watching of location changes (instead of detecting it once) using W3C watchPosition
method. You can later stop watching using map.stopLocate()
method.true
, starts continous watching of location changes (instead of detecting it once) using W3C watchPosition
method. You can later stop watching using map.stopLocate()
method.setView
Boolean
false
true
, automatically sets the map view to the user location with respect to detection accuracy.true
, automatically sets the map view to the user location with respect to detection accuracy.maxZoom
clickable
Boolean
true
false
, the marker will not emit mouse events and will act as a part of the underlying map.false
, the marker will not emit mouse events and will act as a part of the underlying map.draggable
0
1000
(or high negative value, respectively).opacity
Number
1.0
addTo( <Map> map )
this
getLatLng()
LatLng
setLatLng( <LatLng> latlng )
this
this
setIcon( <Icon> icon )
this
this
setZIndexOffset( <Number> offset )
this
this
setOpacity( <Number> opacity )
this
update()
this
latLng
object were changed directly.bindPopup( <String> htmlContent, <Popup options> options? )
this
this
unbindPopup()
this
this
bindPopup
.openPopup()
this
this
closePopup()
this
this
50
maxHeight
Number
null
autoPan
Boolean
true
false
if you don't want the map to do panning animation to fit the opened popup.false
if you don't want the map to do panning animation to fit the opened popup.closeButton
addTo( |
+ this |
+ Adds the popup to the map. | +|
Method | Returns | @@ -1126,12 +1176,12 @@ var map = L.map('map', {||
---|---|---|---|
setLatLng( |
- this |
+ this |
Sets the geographical point where the popup will open. |
setContent( |
- this |
+ this |
Sets the HTML content of the popup. |
tms
Boolean
false
true
, inverses Y axis numbering for tiles (turn this on for TMS services).true
, inverses Y axis numbering for tiles (turn this on for TMS services).continuousWorld
Boolean
false
true
, the tile coordinates won't be wrapped by world width (-180 to 180 longitude) or clamped to lie within world height (-90 to 90). Use this if you use Leaflet for maps that don't reflect the real world (e.g. game, indoor or photo maps).true
, the tile coordinates won't be wrapped by world width (-180 to 180 longitude) or clamped to lie within world height (-90 to 90). Use this if you use Leaflet for maps that don't reflect the real world (e.g. game, indoor or photo maps).noWrap
Boolean
false
true
, the tiles just won't load outside the world width (-180 to 180 longitude) instead of repeating.true
, the tiles just won't load outside the world width (-180 to 180 longitude) instead of repeating.zoomOffset
zoomReverse
Boolean
false
true
, the zoom number used in tile URLs will be reversed (maxZoom - zoom
instead of zoom
)true
, the zoom number used in tile URLs will be reversed (maxZoom - zoom
instead of zoom
)opacity
unloadInvisibleTiles
Boolean
true
, all the tiles that are not visible after panning are removed (for better performance). true
by default on mobile WebKit, otherwise false
.true
, all the tiles that are not visible after panning are removed (for better performance). true
by default on mobile WebKit, otherwise false
.updateWhenIdle
Boolean
false
, new tiles are loaded during panning, otherwise only after it (for better performance). true
by default on mobile WebKit, otherwise false
.false
, new tiles are loaded during panning, otherwise only after it (for better performance). true
by default on mobile WebKit, otherwise false
.reuseTiles
Boolean
false
true
, all the tiles that are not visible after panning are placed in a reuse queue from which they will be fetched when new tiles become visible (as opposed to dynamically creating new ones). This will in theory keep memory usage low and eliminate the need for reserving new memory whenever a new tile is needed.true
, all the tiles that are not visible after panning are placed in a reuse queue from which they will be fetched when new tiles become visible (as opposed to dynamically creating new ones). This will in theory keep memory usage low and eliminate the need for reserving new memory whenever a new tile is needed.addTo( <Map> map )
this
setOpacity( <Number> opacity )
this
this
Used to display WMS services as tile layers on the map. Extends TileLayer, implements ILayer interface.
+Used to display WMS services as tile layers on the map. Extends TileLayer.
transparent
Boolean
false
true
, the WMS service will return images with transparency.true
, the WMS service will return images with transparency.version
Method | +Returns | +Description | +
---|---|---|
setParams( |
+ this |
+ Merges an object with the new parameters and re-requests tiles on the current screen (unless noRedraw was set to true ). |
+
Used to create Canvas-based tile layers where tiles get drawn on the browser side. Extends TileLayer, implements ILayer interface.
+Used to create Canvas-based tile layers where tiles get drawn on the browser side. Extends TileLayer.
drawTile( <HTMLCanvasElement> canvas , <Point> tilePoint , <Number> zoom )
this
this
canvas
is the actual canvas tile on which you can draw, tilePoint
represents the tile numbers, and zoom
is the current zoom.L.ImageOverlay( <String> imageUrl , <LatLngBounds> bounds )
L.ImageOverlay( <String> imageUrl , <LatLngBounds> bounds , <ImageOverlay options> options? )
new L.ImageOverlay(…)
L.imageOverlay(…)
@@ -1459,7 +1528,40 @@ L.imageOverlay(imageUrl, imageBounds).addTo(map);
Option | +Type | +Default | +Description | +
---|---|---|---|
opacity |
+ Number |
+ 1.0 |
+ The opacity of the image overlay. | +
Method | +Returns | +Description | +
---|---|---|
addTo( |
+ this |
+ Adds the overlay to the map. | +
setOpacity( |
+ this |
+ Sets the opacity of the overlay. | +
stroke
Boolean
true
false
to disable borders on polygons or circles.false
to disable borders on polygons or circles.color
fill
Boolean
false
to disable filling on polygons or circles.false
to disable filling on polygons or circles.fillColor
clickable
Boolean
true
false
, the vector will not emit mouse events and will act as a part of the underlying map.false
, the vector will not emit mouse events and will act as a part of the underlying map.MouseEvent
contextmenu
MouseEvent
+ CANVAS
Boolean
L_PREFER_CANVAS
to true
before the Leaflet include on your page — sometimes it can increase performance dramatically when rendering thousands of circle markers, but currently suffers from a bug that causes removing such layers to be extremely slow.L_PREFER_CANVAS
to true
before the Leaflet include on your page — sometimes it can increase performance dramatically when rendering thousands of circle markers, but currently suffers from a bug that causes removing such layers to be extremely slow.CLIP_PADDING
addTo( <Map> map )
this
bindPopup( <String> htmlContent , <Popup options> options? )
this
this
openPopup( <LatLng> latlng? )
this
setStyle( <Path options> object )
this
this
addLatLng( <LatLng> latlng )
this
this
setLatLngs( <LatLng[]> latlngs )
this
this
LatLng[]
getBounds()
LatLngBounds
setBounds( <LatLngBounds> bounds )
this
this
setLatLng( <LatLng> latlng )
this
this
setRadius( <Number> radius )
this
this
setLatLng( <LatLng> latlng )
this
this
setRadius( <Number> radius )
this
this
addTo( <Map> map )
this
addLayer( <ILayer> layer )
this
this
removeLayer( <ILayer> layer )
this
this
clearLayers()
this
this
bindPopup( <String> htmlContent , <Popup options> options? )
this
this
bindPopup
method.getBounds()
LatLngBounds
coordsToLatlng( <Array> coords , <Boolean> reverse? )
LatLng
reverse
is set to true
, the numbers will be interpreted as (longitude, latitude).reverse
is set to true
, the numbers will be interpreted as (longitude, latitude).coordsToLatlngs( <Array> coords , <Number> levelsDeep? , <Boolean> reverse? )
Array
levelsDeep
specifies the nesting level (0 is for an array of points, 1 for an array of arrays of points, etc., 0 by default). If reverse
is set to true
, the numbers will be interpreted as (longitude, latitude).levelsDeep
specifies the nesting level (0 is for an array of points, 1 for an array of arrays of points, etc., 0 by default). If reverse
is set to true
, the numbers will be interpreted as (longitude, latitude).equals( <LatLng> otherLatlng )
Boolean
true
if the given LatLng point is at the same position (within a small margin of error).true
if the given LatLng point is at the same position (within a small margin of error).toString()
extend( <LatLng|LatLngBounds> latlng )
this
this
contains( <LatLngBounds> otherBounds )
Boolean
true
if the rectangle contains the given one.true
if the rectangle contains the given one.contains( <LatLng> latlng )
Boolean
true
if the rectangle contains the given point.true
if the rectangle contains the given point.intersects( <LatLngBounds> otherBounds )
Boolean
true
if the rectangle intersects the given bounds.true
if the rectangle intersects the given bounds.equals( <LatLngBounds> otherBounds )
Boolean
true
if the rectangle is equivalent (within a small margin of error) to the given bounds.true
if the rectangle is equivalent (within a small margin of error) to the given bounds.toBBoxString()
String
'southwest_lng,southwest_lat,northeast_lng,northeast_lat'
format. Useful for sending requests to web services that return geo data.pad( <Number> bufferRatio )
LatLngBounds
L.point(…)
L.point([…])
- x
and y
coordinates. If optional round
is set to true
, rounds the x
and y
values.x
and y
coordinates. If optional round
is set to true
, rounds the x
and y
values.divideBy( <Number> number , <Boolean> round? )
Point
round
is set to true
, returns a rounded result.round
is set to true
, returns a rounded result.distanceTo( <Point> otherPoint )
contains( <Bounds> otherBounds )
Boolean
true
if the rectangle contains the given one.true
if the rectangle contains the given one.contains( <Point> point )
Boolean
true
if the rectangle contains the given point.true
if the rectangle contains the given point.intersects( <Bounds> otherBounds )
Boolean
true
if the rectangle intersects the given bounds.true
if the rectangle intersects the given bounds.shadowUrl
String
- shadowUrl
is null
then no shadow image will be created.shadowUrl
is null
then no shadow image will be created.shadowSize
A basic zoom control with two buttons (zoom in and zoom out). It is put on the map by default unless you set its zoomControl
option to false
. Implements IControl interface.
The base class for all Leaflet controls. Implements IControl interface. You can add controls to the map like this:
+ +control.addTo(map);
+// the same as
+map.addControl(control);
Constructor | +Constructor | +Usage | Description |
---|---|---|---|
L.Control.Zoom() |
+ L.Control( |
+
+ new L.Control(…) + L.control(…)
+ |
+ Creates a control with the given options. | +
Option | +Type | +Default | +Description | +
---|---|---|---|
position |
+ String |
+ 'topright' |
+ The initial position of the control (one of the map corners). See control positions. | +
Method | +Returns | +Description | +
---|---|---|
setPosition( |
+ this |
+ Sets the position of the control. See control positions. | +
getPosition() |
+ String |
+ Returns the current position of the control. | +
addTo( |
+ this |
+ Adds the control to the map. | +
removeFrom( |
+ this |
+ Removes the control from the map. | +
Control positions (map corner to put a control to) are set using strings. Margins between controls and the map border are set with CSS, so that you can easily override them.
+ +Position | +Description | +
---|---|
'topleft' |
+ Top left of the map. | +
'topright' |
+ Top right of the map. | +
'bottomleft' |
+ Bottom left of the map. | +
'bottomright' |
+ Bottom right of the map. | +
A basic zoom control with two buttons (zoom in and zoom out). It is put on the map by default unless you set its zoomControl
option to false
. Extends Control.
Constructor | +Usage | +Description | +
---|---|---|
L.Control.Zoom( |
+
+ new L.Control.Zoom(…) + L.control.zoom(…)
+ |
Creates a zoom control. |
Option | +Type | +Default | +Description | +
---|---|---|---|
position |
+ String |
+ 'topleft' |
+ The position of the control (one of the map corners). See control positions. | +
The attribution control allows you to display attribution data in a small text box on a map. It is put on the map by default unless you set its attributionControl
option to false
, and it fetches attribution texts from layers with getAttribution
method automatically. Implements IControl interface.
The attribution control allows you to display attribution data in a small text box on a map. It is put on the map by default unless you set its attributionControl
option to false
, and it fetches attribution texts from layers with getAttribution
method automatically. Extends Control.
Constructor | +Usage | Description | |
---|---|---|---|
L.Control.Attribution() |
+ L.Control.Attribution( |
+
+ new L.Control.Attribution(…) + L.control.attribution(…)
+ |
Creates an attribution control. |
Option | +Type | +Default | +Description | +
---|---|---|---|
position |
+ String |
+ 'bottomright' |
+ The position of the control (one of the map corners). See control positions. | +
prefix |
+ String |
+ 'Powered by Leaflet' |
+ The HTML text shown before the attributions. Pass false to disable. |
+
setPrefix( |
- - | -Sets the string before the attributions ("Powered by Leaflet" by default). | +this |
+ Sets the text before the attributions. |
addAttribution( |
- - | -Adds an attribution text (e.g. "Vector data © CloudMade"). | +this |
+ Adds an attribution text (e.g. 'Vector data © CloudMade' ). |
removeAttribution( |
- - | +this |
Removes an attribution text. |
The layers control gives users the ability to switch between different base layers and switch overlays on/off (check out the detailed example). It should be created and added explicitly to the map using Map#addControl method. Implements IControl interface.
+The layers control gives users the ability to switch between different base layers and switch overlays on/off (check out the detailed example). Extends Control.
var baseLayers = {
"CloudMade": cloudmade,
@@ -2737,18 +3010,21 @@ var overlays = {
"Roads": roadsLayer
};
-layersControl = new L.Control.Layers(baseLayers, overlays);
-
-map.addControl(layersControl);
+L.control.layers(baseLayers, overlays).addTo(map);
Constructor | +Usage | Description |
---|---|---|
L.Control.Layers( |
+
+ new L.Control.Layers(…) + L.control.layers(…)
+ |
Creates an attribution control with the given layers. Base layers will be switched with radio buttons, while overlays will be switched with checkboxes. |
addBaseLayer( <ILayer> layer , <String> name )
this
this
addOverlay( <ILayer> layer , <String> name )
this
this
removeLayer( <ILayer> layer )
this
this
position
String
'topright'
collapsed
Boolean
true
true
, the control will be collapsed into an icon and expanded on mouse hover or touch.true
, the control will be collapsed into an icon and expanded on mouse hover or touch.A simple scale control that shows the scale of the current center of screen in metric (m/km) and imerial (mi/ft) systems. Implements IControl interface.
+ +L.control.scale().addTo(map);
+
+Constructor | +Usage | +Description | +
---|---|---|
L.Control.Scale( |
+
+ new L.Control.Attribution(…) + L.control.attribution(…)
+ |
+ Creates an scale control with the given options. | +
Option | +Type | +Default | +Description | +
---|---|---|---|
position |
+ String |
+ 'bottomleft' |
+ The position of the control (one of the map corners). See control positions. | +
maxWidth |
+ Number |
+ 100 |
+ Maximum width of the control in pixels. The width is set dynamically to show round values (e.g. 100, 200, 500). | +
metric |
+ Boolean |
+ true |
+ Whether to show the metric scale line (m/km). | +
imerial |
+ Boolean |
+ true |
+ Whether to show the imerial scale line (mi/ft). | +
updateWhenIdle |
+ Boolean |
+ false |
+ If true , the control is updated on moveend , otherwise it's always up-to-date (updated on move ). |
+
A set of methods shared between event-powered classes (like Map). Generally, events allow you to execute some function when something happens with an object (e.g. the user clicks on the map, causing the map 'fire'
event).
addEventListener( <String> type , <Function> fn , <Object> context? )
this
fn
) to a particular event type of the object. You can optionally specify the context of the listener (object the this
keyword will point to).this
fn
) to a particular event type of the object. You can optionally specify the context of the listener (object the this
keyword will point to).removeEventListener( <String> type , <Function> fn , <Object> context? )
this
this
on( … )
this
this
addEventListener
.off( … )
this
this
removeEventListener
.hasEventListeners( <String> type )
Boolean
true
if a particular event type has some listeners attached to it.true
if a particular event type has some listeners attached to it.fireEvent( <String> type , <Object> data? )
this
this
fire( … )
this
this
fireEvent
.Point
containerPoint
Point
originalEvent
DOMMouseEvent
ie
Boolean
true
for all Internet Explorer versions.true
for all Internet Explorer versions.ie6
Boolean
true
for Internet Explorer 6.true
for Internet Explorer 6.webkit
Boolean
true
for webkit-based browsers like Chrome and Safari (including mobile versions).true
for webkit-based browsers like Chrome and Safari (including mobile versions).webkit3d
Boolean
true
for webkit-based browsers that support CSS 3D transformations.true
for webkit-based browsers that support CSS 3D transformations.gecko
Boolean
true
for Gecko-based browsers like Firefox and Mozilla.true
for Gecko-based browsers like Firefox and Mozilla.opera
Boolean
true
for Opera.true
for Opera.android
Boolean
true
for Android mobile browser.true
for Android mobile browser.mobile
Boolean
true
for modern mobile browsers (including iOS Safari and different Android browsers).true
for modern mobile browsers (including iOS Safari and different Android browsers).mobileWebkit
Boolean
true
for mobile webkit-based browsers.true
for mobile webkit-based browsers.mobileOpera
Boolean
true
for mobile Opera.true
for mobile Opera.touch
Boolean
true
for all browsers on touch devices.true
for all browsers on touch devices.bind( <Function> fn , <Object> obj )
Function
fn
with the given scope obj
(so that this
keyword refers to obj
inside the function code).fn
with the given scope obj
(so that this
keyword refers to obj
inside the function code).stamp( <Object> obj )
falseFn()
Function
false
.false
.formatNum( <Number> num , <Number> digits )
hasClass( <HTMLElement> el , <String> name )
Boolean
true
if the element class attribute contains name
.true
if the element class attribute contains name
.addClass( <HTMLElement> el , <String> name )
testProp( <String[]> props )
String
or false
false
. Useful for vendor-prefixed styles like transform
.false
. Useful for vendor-prefixed styles like transform
.getTranslateString( <Point> point )
setPosition( <HTMLElement> el , <Point> point , <Boolean> disable3D? )
point
, using CSS translate or top/left positioning depending on the browser (used by Leaflet internally to position its layers). Forces top/left positioning if disable3D
is true
.point
, using CSS translate or top/left positioning depending on the browser (used by Leaflet internally to position its layers). Forces top/left positioning if disable3D
is true
.getPosition( <HTMLElement> el )
enabled()
Boolean
true
if the handler is enabled.true
if the handler is enabled.