Summary
Methods:
Constructor
new VectorTileCustomizedLayer(name, url, options)
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
name |
String | 自定义矢量瓦片图层的名称。 |
||||||
url |
String | 自定义矢量瓦片的服务地址。 |
||||||
options |
Object |
|
Example
//自定义矢量瓦片服务地址
const serviceUrl="https://hmap.hikvision.com.cn/hmappublish/service/rs/v1/vector_tile/geojson_tile/hmapdemo_xihu_geojsontile/";
//自定义矢量瓦片的样式地址,style.json为入口文件,其同级需包含字体样式和图标样式
const styleUrl="../public/style/hvj/style.json";
let layer = new hmap.layer.VectorTileCustomizedLayer('geojsonTile', serviceUrl, {
styleUrl: styleUrl
});
Members
-
clampToGround
-
设置贴地状态
-
depthTest
-
获取图层的深度测试属性
return {Boolean} 深度测试属性- Overrides: