KmlViewpoint QML Type

  • Esri.ArcGISRuntime
  • KmlViewpoint
  • Contains all information about the KML camera and look at point. More...

    Import Statement: import Esri.ArcGISRuntime
    Since: Esri.ArcGISRuntime 100.4
    Inherits:

    Object

    Properties

    Signals

    Methods

    • KmlViewpoint createCameraViewpoint(Point cameraLocation, double heading, double pitch, double roll, Enums.KmlAltitudeMode altitudeMode)
    • KmlViewpoint createLookAtViewpoint(Point lookAtLocation, double heading, double pitch, double range, Enums.KmlAltitudeMode altitudeMode)
    • KmlViewpoint createWithViewpoint(Viewpoint viewpoint)

    Detailed Description

    This QML type supports the following default properties. A default property may be declared inside another declared object without being assigned explicitly to a property.

    TypeDefault Property
    ViewpointinitViewpoint

    Property Documentation

    altitudeMode : Enums.KmlAltitudeMode

    The KML viewpoint's altitude mode.

    Alititude mode indicates how to altitude values relate to the ground or sea level.

    See also Enums.KmlAltitudeMode.


    heading : double

    The KML viewpoint's heading.

    Heading is defined in terms of degrees from 0 (North) to 360, with 90 being East.


    [since Esri.ArcGISRuntime 100.6] initViewpoint : Viewpoint

    The initial KML viewpoint.

    This property can be set only during instantiation.

    This property was introduced in Esri.ArcGISRuntime 100.6.


    location : Point

    The KML viewpoint's location.

    The location can be an observed point (LookAt in KML) or the position of the Camera.


    pitch : double

    The KML viewpoint's pitch.

    Pitch is the angle (in degrees) between the camera and the target location, the angle of the observer's view. Values can range from 0 (straight down) through 90 (looking horizontally) to 180 (straight up toward the sky).

    Pitch corresponds to tilt in the KML specification.

    Value ranges from 0 and 90 for LookAt viewpoints, 0 and 180 for Camera viewpoints.


    range : double

    The KML viewpoint's range.

    Range indicates the distance between the camera and the LookAt viewpoint's target location.


    roll : double

    The KML viewpoint's roll.

    Roll indicates rotation in degrees around the camera's Z axis.


    type : Enums.KmlViewpointType

    The KML viewpoint's type.

    See also Enums.KmlViewpointType.


    Signal Documentation

    [since Esri.ArcGISRuntime 100.7] altitudeModeChanged()

    Emitted when the altitudeMode property changes.

    Note: The corresponding handler is onAltitudeModeChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.7.


    [since Esri.ArcGISRuntime 100.7] headingChanged()

    Emitted when the heading property changes.

    Note: The corresponding handler is onHeadingChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.7.


    [since Esri.ArcGISRuntime 100.6] initViewpointChanged()

    Emitted when the initViewpoint property changes.

    Note: The corresponding handler is onInitViewpointChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.6.


    [since Esri.ArcGISRuntime 100.7] locationChanged()

    Emitted when the location property changes.

    Note: The corresponding handler is onLocationChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.7.


    [since Esri.ArcGISRuntime 100.7] pitchChanged()

    Emitted when the pitch property changes.

    Note: The corresponding handler is onPitchChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.7.


    [since Esri.ArcGISRuntime 100.7] rangeChanged()

    Emitted when the range property changes.

    Note: The corresponding handler is onRangeChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.7.


    [since Esri.ArcGISRuntime 100.7] rollChanged()

    Emitted when the roll property changes.

    Note: The corresponding handler is onRollChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.7.


    [since Esri.ArcGISRuntime 100.7] typeChanged()

    Emitted when the type property changes.

    Note: The corresponding handler is onTypeChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.7.


    Method Documentation

    [since Esri.ArcGISRuntime 100.6] KmlViewpoint createCameraViewpoint(Point cameraLocation, double heading, double pitch, double roll, Enums.KmlAltitudeMode altitudeMode)

    A static method that creates a KML viewpoint from the provided camera location.

    This method can only be accessed via the Factory object now since the 100.9 release.

    //KmlViewpoint.createCameraViewpoint(...); // old code
    Factory.KmlViewpoint.createCameraViewpoint(...); // replacement code

    This method was introduced in Esri.ArcGISRuntime 100.6.


    [since Esri.ArcGISRuntime 100.6] KmlViewpoint createLookAtViewpoint(Point lookAtLocation, double heading, double pitch, double range, Enums.KmlAltitudeMode altitudeMode)

    A static method that creates a KML viewpoint from the provided look at location.

    • lookAtLocation The observed location.
    • heading The heading value.
    • pitch The pitch value.
    • range The range value.
    • altitudeMode Enums.KmlAltitudeMode enumeration of the KML altitude modes.

    This method can only be accessed via the Factory object now since the 100.9 release.

    //KmlViewpoint.createLookAtViewpoint(...); // old code
    Factory.KmlViewpoint.createLookAtViewpoint(...); // replacement code

    This method was introduced in Esri.ArcGISRuntime 100.6.


    [since Esri.ArcGISRuntime 100.6] KmlViewpoint createWithViewpoint(Viewpoint viewpoint)

    A static method that creates a KML viewpoint from the provided viewpoint.

    The viewpoint must have a look at point, and optionally a camera.

    This method can only be accessed via the Factory object now since the 100.9 release.

    //KmlViewpoint.createWithViewpoint(...); // old code
    Factory.KmlViewpoint.createWithViewpoint(...); // replacement code

    This method was introduced in Esri.ArcGISRuntime 100.6.


    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.