|
@@ -34,7 +34,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes }) => {
|
|
|
const mapBus = mitt(), sceneBus = mitt()
|
|
|
|
|
|
|
|
|
- const tagLimitDis = 8;
|
|
|
+
|
|
|
|
|
|
Potree.settings.showCompass = true
|
|
|
Potree.settings.compassDom = dom.querySelector('#direction')
|
|
@@ -443,9 +443,9 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes }) => {
|
|
|
var viewport = viewer.mainViewport
|
|
|
var camera = viewport.camera
|
|
|
var dom = viewer.renderArea
|
|
|
- if (tagLimitDis != void 0) {
|
|
|
+ /* if (tagLimitDis != void 0) {
|
|
|
if (camera.position.distanceToSquared(worldPos) > Math.pow(tagLimitDis, 2)) return false
|
|
|
- }
|
|
|
+ } */
|
|
|
|
|
|
|
|
|
|
|
@@ -1326,7 +1326,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes }) => {
|
|
|
bus.emit('click')
|
|
|
})
|
|
|
tag.addEventListener('posChanged',(e)=>{
|
|
|
- bus.emit(changePosition, {
|
|
|
+ bus.emit('changePosition', {
|
|
|
modelId: tag.root.dataset_id
|
|
|
})
|
|
|
})
|