diff --git a/reference.html b/reference.html index b2db9f7f..da7f8150 100644 --- a/reference.html +++ b/reference.html @@ -65,6 +65,7 @@
LocationEvent
locate
or locateAndSetView
method) went successfully.locationerror
ErrorEvent
+ locate
or locateAndSetView
method) failed.fitBounds( <LatLngBounds> bounds )
fitBounds( <LatLngBounds> bounds )
this
panTo( <LatLng> latlng )
panTo( <LatLng> latlng )
this
panBy( <Point> point )
panBy( <Point> point )
this
locate( <Boolean> noAutoFitBounds? )
locate()
this
locationfound
(with location data) or locationerror
event. Set noAutoFitBounds
to true
if you don't want the map view to be set automatically (false
by default).locationfound
event with location data on success or locationerror
event on failure.locateAndSetView( <Number> maxZoom )
this
locate
method, but it automatically sets the map view to the user location with respect to detection accuracy (or to the world view if geolocation failed). You can optionally specify the maximum zoom of the view.false
, new tiles are loaded during panning, otherwise only after it (for better performance). true
by default on mobile WebKit, otherwise false
.Used to display WMS services as tile layers on the map. Extends TileLayer, implements ILayer interface.
+ +var nexrad = new L.TileLayer.WMS("http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi", {
+ layers: 'nexrad-n0r-900913',
+ format: 'image/png',
+ transparent: true,
+ attribution: "Weather data © 2011 IEM Nexrad"
+});
+
+ Constructor | +Description | +
---|---|
L.TileLayer.WMS( <String> baseUrl, <TileLayer.WMS options> options ) |
+ Instantiates a WMS tile layer object given a base URL of the WMS service and a WMS parameters/options object. | +
Includes all TileLayer options and additionally:
+ +Option | +Type | +Default value | +Description | +
---|---|---|---|
layers |
+ String |
+ - | +(required) Comma-separated list of WMS layers to show. | +
styles |
+ String |
+ + | Comma-separated list of WMS styles. | +
format |
+ String |
+ image/jpeg |
+ WMS image format (use 'image/png' for layers with transparency). | +
transparent |
+ Boolean |
+ false |
+ If true, the WMS service will return images with transparency. | +
version |
+ String |
+ 1.1.1 |
+ Version of the WMS service to use. | +
A class for drawing circle overlays on a map. Extends Path. Use Map#addLayer to add it to the map.
+A class for drawing circle overlays on a map. Extends Path. Use Map#addLayer to add it to the map.
L.Circle( <LatLng> latlng, <Number> radius, <Path options> options? )
A circle of a fixed size with radius specified in pixels. Extends Circe. Use Map#addLayer to add it to the map.
+ +Constructor | +Description | +
---|---|
L.CircleMarker( <LatLng> latlng, <Number> radius, <Path options> options? ) |
+ Instantiates a circle marker given a geographical point, a radius in pixels and optionally an options object. | +
property | +type | +description | +
---|---|---|
message |
+ String |
+ Error message. | +
code |
+ Number |
+ Error code (if applicable). | +