ImageGroundLayer
ImageGroundLayer用于创建自定义图片图层,图片会随着地图缩放而缩放。
构造函数
构造函数 |
---|
new TMap.ImageGroundLayer(options);
|
参数说明
参数名 | 类型 | 说明 |
---|---|---|
options
|
ImageGroundLayerOptions
|
自定义图片图层参数 |
方法
方法 | 返回值 | 说明 |
---|---|---|
setMap(map:Map)
|
this
|
设置展示图层的地图对象。 |
setBounds(bounds: LatLngBounds)
|
this
|
设置展示图层的地理范围 |
setVisible(visible: Boolean)
|
this
|
设置图层是否可见 |
setZIndex(zIndex: Number)
|
this
|
设置图层绘制顺序 |
setOpacity(opacity: Number)
|
this
|
设置图层透明度。 |
setSrc(src:String)
|
this
|
更新图层资源路径,相同的url不会被更新 |
getMap()
|
Map
|
获取地图对象,若无返回null。 |
getBounds()
|
LatLngBounds
|
获取展示图层的地理范围。 |