|
|
@@ -20,6 +20,16 @@ const ModelTypes = {
|
|
|
ani : {name:'动画模型'} //自定义的
|
|
|
}
|
|
|
|
|
|
+function preDealProps(props){
|
|
|
+ if(props.raw.type == 7){
|
|
|
+ props.fromType = (props.type == 'osgb' || props.type == 'b3dm') ? 4 : 0
|
|
|
+ }else if(props.raw.type == 8){//这新加的类型前端没处理,我自己处理
|
|
|
+ props.type = 'laser'
|
|
|
+ props.url = [props.raw.num] //sceneCode
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
let satellite = true
|
|
|
let defaultMapProps = satellite ? [
|
|
|
{url: `//wprd04.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=6&x={x}&y={y}&z={z}&layer=6&token=YOUR_API_KEY`, //style=6是卫星,7是标准
|
|
|
@@ -958,8 +968,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
|
}
|
|
|
return info
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
|
|
|
addModel(props) {
|
|
|
let model
|
|
|
@@ -970,12 +979,8 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
|
//if (props.type == 'obj') props.type = 'glb'
|
|
|
props.scale && (props.scale /= 100)
|
|
|
|
|
|
+ preDealProps(props)
|
|
|
|
|
|
- if(props.raw.type == 7){
|
|
|
- props.fromType = (props.type == 'osgb' || props.type == 'b3dm') ? 4 : 0
|
|
|
- }else if(props.raw.type == 8){//这新加的类型前端没处理,我自己处理
|
|
|
- props.type = 'laser'
|
|
|
- }
|
|
|
|
|
|
|
|
|
let getBaseRotation = () => {
|