Layer_3DGSLayer
#3DGS model layer (3DGSLayer)
method
flyToSelf
When adding a 3DGS model, it can automatically locate the perspective of the model to avoid the situation where the model cannot be seen or found after loading.
Parameters
| Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| options | Object | Requiredparameter
|
Case
map.addLayer({
id:'gs-3d-layer',
type: '3DGS',
url: '../models/3dgsModel.splat',
callback: function (group, layer) {
layer.flyToSelf({
pitch: 60, // tilt angle
duration: 3000, // flight time
});
},
});