|
@@ -1762,12 +1762,12 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
|
|
|
|
let info = {
|
|
|
position: new THREE.Vector3().copy(props.position), //局部坐标
|
|
|
- normal: new THREE.Vector3().copy(props.normal),
|
|
|
+ normal: props.normal ? new THREE.Vector3().copy(props.normal) : new THREE.Vector3(0,0,1),
|
|
|
root, lineLength: props.altitudeAboveGround,
|
|
|
title: props.title, fontsize: props.fontSize
|
|
|
}
|
|
|
let tag = viewer.tagTool.createTagFromData(info)
|
|
|
- props.image = ossRoot + '/' +props.image
|
|
|
+
|
|
|
|
|
|
tag.addEventListener('mouseover',()=>{
|
|
|
bus.emit('enter')
|
|
@@ -1810,7 +1810,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
|
tag.changePos({root,position,normal})
|
|
|
},
|
|
|
changeImage(url){
|
|
|
- tag.changeMap(url)
|
|
|
+ tag.changeMap(ossRoot + '/' +url)
|
|
|
},
|
|
|
changeTitle(title){
|
|
|
tag.setTitle(title)
|