|
@@ -1312,7 +1312,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes }) => {
|
|
|
position: new THREE.Vector3().copy(props.position), //局部坐标
|
|
|
normal: new THREE.Vector3().copy(props.normal),
|
|
|
root, lineLength: props.altitudeAboveGround,
|
|
|
- title: props.title
|
|
|
+ title: props.title, fontsize: props.fontSize
|
|
|
}
|
|
|
let tag = viewer.tagTool.createTagFromData(info)
|
|
|
|
|
@@ -1360,13 +1360,19 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes }) => {
|
|
|
tag.setFaceAngle(rotation)
|
|
|
tag.changeSpotScale(scale)
|
|
|
},
|
|
|
- changeFontSize(fontSize){
|
|
|
-
|
|
|
+ changeFontSize(fontsize){
|
|
|
+ tag.titleLabel.fontsize = fontsize
|
|
|
+ tag.titleLabel.updateTexture();
|
|
|
+ viewer.dispatchEvent('content_changed')
|
|
|
},
|
|
|
// 更改离地高度
|
|
|
changeLineHeight(height){//线长
|
|
|
tag.changeLineLen(height)
|
|
|
},
|
|
|
+ changeAltitudeAboveGround(height){//线长
|
|
|
+ console.warn('changeAltitudeAboveGround 删除了')
|
|
|
+ tag.changeLineLen(height || 1)
|
|
|
+ },
|
|
|
changeCanMove(canMove){
|
|
|
tag.dragEnable = canMove
|
|
|
},
|