gltf
This commit is contained in:
parent
f5ba7cc503
commit
bced6c5461
|
@ -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);
|
||||
})
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue