Class: cloudTileLayer

L.supermap.cloudTileLayer

The cloud tile layer class. It sends request to the SuperMap cloud server to get layers published by SuperMap cloud service.

L.supermap.cloudTileLayer(url, options)

CloudTileLayer.js, line 5
Name Type Default Description
url string 'http://t2.dituhui.com/FileService/image?map={mapName}&type={type}&x={x}&y={y}&z={z}' optional

The url of the service.

options Object

The optional parameters.

Name Type Default Description
type string 'web' optional

type.

minZoom number 3 optional

The minimum zoom level.

maxZoom number 18 optional

The maximum zoom level.

mapName string 'quanguo' optional

The map name.

attribution string 'Map Data ©2014 SuperMap - GS(2014)6070号-data©Navinfo' optional

The copyright information.

Extends

Members

optionsstring

The map name. It defaults to be: quanguo。

Default Value:
'quanguo'

typestring

The map projection

Methods

getTileUrl(coords){string}

CloudTileLayer.js, line 45

Get URL of the tile.

Name Type Description
coords Object

Ranks number.

Returns:
Type Description
string The URL of the tile.