L.PtvLayer.Background Class
Provides the PTV Background TileLayer class.
Constructor
L.PtvLayer.Background
-
client
-
options
Parameters:
-
client
XMapClientXMapClient object
-
options
ObjectThe options object
-
[format]
String optionalThe image format used in tile requests.
-
[beforeSend]
String optionalFunction to be called before sending the request with the request object given as first parameter. The (modified) request object must be returned.
-
[errorTileUrl]
String optionalThe image to display when requests fail.
-
Item Index
Methods
_loadTile
-
tile
-
tilePoint
Loads a specific tile and shows the result when finished.
Parameters:
-
tile
DOMElementThe tile dom img element
-
tilePoint
PointThe tile point
_requestTile
-
tile
-
tilePoint
Requests a specific tile from the server.
Parameters:
-
tile
DOMElementThe tile dom img element
-
tilePoint
PointThe tile point
L.PtvLayer.Background
-
client
-
options
Constructor
Parameters:
-
client
XMapClientoptional XMapClient object
-
options
Objectoptional options object
Properties
options
Object
Default options used in this class.
options.beforeSend
Function
Function to be called before sending the request with the request object given as first parameter. The (modified) request object must be returned.
Default: null
options.bounds
L.LatLngBounds
The world bounds for PTV Maps.
Default: [[85.0, -178.965000], [-66.5, 178.965000]]
options.errorTileUrl
String
The image to display when requests fail.
Default: "tile-error.png"
options.format
String
The image format used in tile requests.
Default: "PNG"
options.minZoom
Boolean
Minimum zoom number.
Default: true
options.noWrap
Boolean
If set to true, the tiles just won't load outside the world width (-180 to 180 longitude) instead of repeating.
Default: true