Leafdoc generated API reference

Map

Methods

Method Returns Description
panTo(<LatLng> latlng) this
getCenter() LatLng
setZoom(<Number> zoom) this
getZoom() Number
Methods inherited from Evented
Method Returns Description
on(<String> evtype, <Function> handler) this
off(<String> evtype, <Function> handler) this
Methods inherited from Class
Method Returns Description
extend(Object) Class
include(Object) Class
initialize(Object) Class

Properties

Properties inherited from Class
Property Type Description
options Object

Evented

Methods

Method Returns Description
on(<String> evtype, <Function> handler) this
off(<String> evtype, <Function> handler) this
Methods inherited from Class
Method Returns Description
extend(Object) Class
include(Object) Class
initialize(Object) Class

Properties

Properties inherited from Class
Property Type Description
options Object

Class

Methods

Method Returns Description
extend(Object) Class
include(Object) Class
initialize(Object) Class

Properties

Property Type Description
options Object

Layer

Methods

Method Returns Description
addTo(<Map> map) this
remove(<Map> map?) this
onAdd() this
onRemove() this
getAttribution() String
Methods inherited from Evented
Method Returns Description
on(<String> evtype, <Function> handler) this
off(<String> evtype, <Function> handler) this
Methods inherited from Class
Method Returns Description
extend(Object) Class
include(Object) Class
initialize(Object) Class

Properties

Properties inherited from Class
Property Type Description
options Object

Marker

Methods

Methods inherited from Layer
Method Returns Description
addTo(<Map> map) this
remove(<Map> map?) this
onAdd() this
onRemove() this
getAttribution() String
Methods inherited from Evented
Method Returns Description
on(<String> evtype, <Function> handler) this
off(<String> evtype, <Function> handler) this
Methods inherited from Class
Method Returns Description
extend(Object) Class
include(Object) Class
initialize(Object) Class

Properties

Properties inherited from Class
Property Type Description
options Object

TileLayer

Options

Option Type Default Description
minZoom Number 0
maxZoom Number 18
zoomOffset Number 0
zoomReverse Boolean false
Options inherited from GridLayer
Option Type Default Description
tileSize Number|Point 256
opacity Number 1.0
noWrap Boolean false

Methods

Method Returns Description
getTileUrl(<Object> coords)
Methods inherited from GridLayer
Method Returns Description
createTile(<Object> coords)
Methods inherited from Layer
Method Returns Description
addTo(<Map> map) this
remove(<Map> map?) this
onAdd() this
onRemove() this
getAttribution() String
Methods inherited from Evented
Method Returns Description
on(<String> evtype, <Function> handler) this
off(<String> evtype, <Function> handler) this
Methods inherited from Class
Method Returns Description
extend(Object) Class
include(Object) Class
initialize(Object) Class

Properties

Properties inherited from Class
Property Type Description
options Object

GridLayer

Options

Option Type Default Description
tileSize Number|Point 256
opacity Number 1.0
minZoom Number 0
maxZoom Number undefined
noWrap Boolean false

Methods

Method Returns Description
createTile(<Object> coords)
Methods inherited from Layer
Method Returns Description
addTo(<Map> map) this
remove(<Map> map?) this
onAdd() this
onRemove() this
getAttribution() String
Methods inherited from Evented
Method Returns Description
on(<String> evtype, <Function> handler) this
off(<String> evtype, <Function> handler) this
Methods inherited from Class
Method Returns Description
extend(Object) Class
include(Object) Class
initialize(Object) Class

Properties

Properties inherited from Class
Property Type Description
options Object