You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a notion of "attached layer" in iTowns and by default all layers added to a GlobeView or a PlanarView with the view.addLayer() method are attached to the tileLayer of the Globe or the Plane.
Moreover, the API for adding layers is not very clear in my opinion since to add layers that are not attached we need to use the ViewaddLayer() method with itowns.View.prototype.addLayer.call(view, layer) : which seems to always be the case for C3DTilesLayer and PointCloudLayer by the way. I think we should always use view.addLayer(layer) and think of some parameter or conditions to attach layers that:
is hidden to users that use itowns and don't want to go into such details
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
There is a notion of "attached layer" in iTowns and by default all layers added to a GlobeView or a PlanarView with the
view.addLayer()
method are attached to thetileLayer
of the Globe or the Plane.Moreover, the API for adding layers is not very clear in my opinion since to add layers that are not attached we need to use the
View
addLayer()
method withitowns.View.prototype.addLayer.call(view, layer)
: which seems to always be the case forC3DTilesLayer
andPointCloudLayer
by the way. I think we should always useview.addLayer(layer)
and think of some parameter or conditions to attach layers that:Two questions: (ping @gchoqueux @mgermerie )
Beta Was this translation helpful? Give feedback.
All reactions