This commit is contained in:
wangjiao 2023-08-26 12:46:44 +08:00
parent f5ba7cc503
commit bced6c5461
2 changed files with 6 additions and 2 deletions

View File

@ -88,7 +88,11 @@ Geowin3DAPP.prototype.loadGLTF = function (options) {
var that = this;
model.readyPromise.then(function(model){
that._viewer.flyTo(model);
boundingSphere = model.boundingSphere;
that._viewer.camera.viewBoundingSphere(boundingSphere);
that._viewer.camera.lookAtTransform(Geowin3D.Matrix4.IDENTITY);
// that._viewer.flyTo(model);
}).otherwise(function(error){
console.log("模型加载失败:"+error);
})

View File

@ -276,7 +276,7 @@ export default {
removeLayer(treeNode) {
var id = treeNode.id;
if (this.layerManager[id] == null) return;
if (treeNode.type == "tileset" || treeNode.type == "geowintms" || treeNode.type == "tms" || treeNode.type == "knowntms") {
if (treeNode.type == "tileset" || treeNode.type == "geowintms" || treeNode.type == "tms" || treeNode.type == "knowntms" || treeNode.type == "gltf") {
geoapp.hide(this.layerManager[id].layer);
return;
}