L.supermap.control.changeTileVersion(options)
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
The optional parameters of changeTileVersion control.
|
Example
L.supermap.control.changeTileVersion({
layer: baseLayer,
position: "topleft",
orientation: "horizontal"
}).addTo(map);
Extends
Methods
-
getTileSetsInfo()
ChangeTileVersion.js, line 151 -
Get the tile set information.
-
getValue()
ChangeTileVersion.js, line 222 -
Get the value of the progress bar. Note: (the value of the progress bar is not the version number).
-
getVersion()
ChangeTileVersion.js, line 230 -
Get the version number corresponding to the current progress bar.
-
lastTilesVersion()
ChangeTileVersion.js, line 191 -
Get the last tile version.
-
nextTilesVersion(){this}
ChangeTileVersion.js, line 172 -
Get the next tile version. No addition and subtraction in the first acquisition, it is a non version state.
Returns:
Type Description this this. -
removeLayer()
ChangeTileVersion.js, line 164 -
Remove the target layer associated with the control.
-
setContent(version)
ChangeTileVersion.js, line 69 -
Set up version related information.
Name Type Description versionObject the version information.
-
setLayer(layer)
ChangeTileVersion.js, line 119 -
Associate the control with the target layer.
Name Type Description layerL.supermap.tiledMapLayer The layer to be associated with.
-
setToolTip(tooltip){this}
ChangeTileVersion.js, line 94 -
Set up the tool tip information.
Name Type Description tooltipHTMLElement | String The tool tip information to be set up.
Returns:
Type Description this this -
setVersionName(content){this}
ChangeTileVersion.js, line 79 -
Set the version name.
Name Type Description contentstring The version information.
Returns:
Type Description this this -
tilesVersion(version)
ChangeTileVersion.js, line 204 -
Request the version according to the specified version number.
Name Type Description versionstring The version number parameters.
-
update(tileVersions)
ChangeTileVersion.js, line 141 -
Update the cache tile set and the length of the progress bar.
Name Type Description tileVersionsnumber The tile version number to be updated.
-
updateLength(length)
ChangeTileVersion.js, line 105 -
Update the length of the progress bar.
Name Type Description lengthnumber The length of the progress bar.