Skip to content

Factorize zoomToLayer,LookAtCoordinates #2703

@gchoqueux

Description

@gchoqueux

https://github.com/iTowns/itowns/blob/bbdd27d9eab2c32876162b22e065c666b1674c55/examples/jsm/PointCloudHelper.js#L47C1-L68C1

This feature was already started in CameraUtils.animateCameraToLookAtTarget ,

This feature allows you to position the camera on coordinates or an extend. It works in both planar and globe viewers. It takes into account the loading of the DTM, which can cause the terrain to pass over the camera. There are several parameters: tilt, heading, distance, animated. It is used in GlobeControls and could also be used in PlanarControls. This is a possibility for factorization. For this, the layer must have a footprint property. I had asked @ftoromanoff to keep it in Clouds Layer. Unfortunately, I don't have time to start this factorization at the moment.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions