吉奥三维地名
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
参数选项:
|
Example:
var wtfs = new Cesium.GeoWTFS({
proxy: new Cesium.DefaultProxy(Cfg.proxyHostUrl),
viewer : viewer,
url : 'http://172.15.110.3:9010/xz_swdm/wtfs',
depthTestOptimization: true,
dTOElevation: 15000,
dTOPitch: Cesium.Math.toRadians(-70),
aotuCollide : true,
collisionPadding: [3,5,3,5], //开启避让时,标注碰撞增加内边距,上、右、下、左
labelGraphics: {
font:"10px sans-serif",
bold:false,
fillColor:Cesium.Color.YELLOW,
scale:1,
outlineColor:Cesium.Color.YELLOW,
outlineWidth:0.1,
//style:Cesium.LabelStyle.FILL_AND_OUTLINE,
style:Cesium.LabelStyle.FILL,
showBackground:false,
backgroundColor:Cesium.Color.RED,
backgroundPadding:new Cesium.Cartesian2(10, 10),
horizontalOrigin:Cesium.HorizontalOrigin.LEFT,
verticalOrigin:Cesium.VerticalOrigin.TOP,
eyeOffset:Cesium.Cartesian3.ZERO,
//pixelOffset:Cesium.Cartesian2.ZERO,
pixelOffset:new Cesium.Cartesian2(8, 8),
disableDepthTestDistance:undefined,
heightReference: Cesium.HeightReference.NONE,
scaleByDistance: new Cesium.NearFarScalar(200,1,10000,0.0)
},
billboardGraphics: {
horizontalOrigin:Cesium.HorizontalOrigin.CENTER,
verticalOrigin:Cesium.VerticalOrigin.CENTER,
eyeOffset:Cesium.Cartesian3.ZERO,
pixelOffset:Cesium.Cartesian2.ZERO,
alignedAxis:Cesium.Cartesian3.ZERO,
color:Cesium.Color.WHITE,
rotation:0,
scale:1,
width:15,
height:15,
disableDepthTestDistance:undefined,
heightReference: Cesium.HeightReference.NONE,
scaleByDistance: new Cesium.NearFarScalar(200,1,10000,0.0)
}
});
Methods
强制激活
将地图中的地名清空
销毁。
从缓存中获取标注
Name | Type | Description |
---|---|---|
oid |
String | OID |
Returns:
label - 标注对象
从缓存中获取地名瓦片
Name | Type | Description |
---|---|---|
x |
Number | X |
y |
Number | Y |
z |
Number | Z |
t |
Number | T |
Returns:
tile - 地名瓦片
获取3.0.0版本的标注图标的图片
Name | Type | Description |
---|---|---|
id |
String | 雪碧图的id |
Returns:
图
获取图标URL完整模板串
Returns:
url
获取道路瓦片URL完整模板串
Returns:
url
获取3.0.0版本的雪碧图URL完整模板串
Name | Type | Description |
---|---|---|
format |
String | 格式,'@2x'或'' |
extension |
String | 扩展名,'.json'或'.png' |
Returns:
url
获取3.0.0版本的样式URL完整模板串
Returns:
url
获取瓦片URL完整模板串
Returns:
url
隐藏地名
天地图地名手动加载,限初始的加速显示
Example:
geoWTFS.initTDT([{"x":6,"y":1,"level":2,"boundBox":{"minX":90,"minY":0,"maxX":135,"maxY":45}},{"x":7,"y":1,"level":2,"boundBox":{"minX":135,"minY":0,"maxX":180,"maxY":45}},{"x":6,"y":0,"level":2,"boundBox":{"minX":90,"minY":45,"maxX":135,"maxY":90}},{"x":7,"y":0,"level":2,"boundBox":{"minX":135,"minY":45,"maxX":180,"maxY":90}},{"x":5,"y":1,"level":2,"boundBox":{"minX":45,"minY":0,"maxX":90,"maxY":45}},{"x":4,"y":1,"level":2,"boundBox":{"minX":0,"minY":0,"maxX":45,"maxY":45}},{"x":5,"y":0,"level":2,"boundBox":{"minX":45,"minY":45,"maxX":90,"maxY":90}},{"x":4,"y":0,"level":2,"boundBox":{"minX":0,"minY":45,"maxX":45,"maxY":90}},{"x":6,"y":2,"level":2,"boundBox":{"minX":90,"minY":-45,"maxX":135,"maxY":0}},{"x":6,"y":3,"level":2,"boundBox":{"minX":90,"minY":-90,"maxX":135,"maxY":-45}},{"x":7,"y":2,"level":2,"boundBox":{"minX":135,"minY":-45,"maxX":180,"maxY":0}},{"x":5,"y":2,"level":2,"boundBox":{"minX":45,"minY":-45,"maxX":90,"maxY":0}},{"x":4,"y":2,"level":2,"boundBox":{"minX":0,"minY":-45,"maxX":45,"maxY":0}},{"x":3,"y":1,"level":2,"boundBox":{"minX":-45,"minY":0,"maxX":0,"maxY":45}},{"x":3,"y":0,"level":2,"boundBox":{"minX":-45,"minY":45,"maxX":0,"maxY":90}},{"x":2,"y":0,"level":2,"boundBox":{"minX":-90,"minY":45,"maxX":-45,"maxY":90}},{"x":0,"y":1,"level":2,"boundBox":{"minX":-180,"minY":0,"maxX":-135,"maxY":45}},{"x":1,"y":0,"level":2,"boundBox":{"minX":-135,"minY":45,"maxX":-90,"maxY":90}},{"x":0,"y":0,"level":2,"boundBox":{"minX":-180,"minY":45,"maxX":-135,"maxY":90}}])
显示地名