new ImageTileLayer(url, options)
Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
new L.supermap.ImageTileLayer(url, options);
// 弃用的写法
L.supermap.imageTileLayer(url, options);
</script>
// ES6 Import
import { ImageTileLayer } from '@supermapgis/iclient-leaflet';
new ImageTileLayer(url, options);
leaflet/mapping/ImageTileLayer.js, line 10
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
服务地址,例如: http://{ip}:{port}/iserver/{imageservice-imageserviceName}/restjsr/ |
||||||||||||||||||||||||||||||||||||||||||||||||
options |
Object |
参数。
|
- Version:
- 10.2.0
Example
new ImageTileLayer(url,{collectionId:'xxx'}).addTo(map);
Extends
Methods
-
getTileUrl(coords){string}
leaflet/mapping/ImageTileLayer.js, line 67 -
根据行列号获取瓦片地址。
Name Type Description coords
Object 行列号。
Returns:
Type Description string 瓦片地址。