Viewpoint

class Viewpoint : JsonSerializable

A location on a view. An immutable object used to set a location on a view.

Constructors

Link copied to clipboard
fun Viewpoint(    latitude: Double,     longitude: Double,     scale: Double)

Create a viewpoint with latitude, longitude, and scale. The spatial reference for the defined point is WGS84.

Link copied to clipboard
fun Viewpoint(    latitude: Double,     longitude: Double,     scale: Double,     camera: Camera)

Create a viewpoint with latitude, longitude, scale, and Camera. The spatial reference for the defined point is WGS84.

Link copied to clipboard
fun Viewpoint(targetExtent: Geometry)

Create a viewpoint with a bounding extent.

Link copied to clipboard
fun Viewpoint(targetExtent: Geometry, camera: Camera)

Create a viewpoint with a bounding extent and a Camera.

Link copied to clipboard
fun Viewpoint(targetExtent: Geometry, rotation: Double)

Create a viewpoint with a bounding extent and rotation.

Link copied to clipboard
fun Viewpoint(    targetExtent: Geometry,     rotation: Double,     camera: Camera)

Create a viewpoint with a bounding extent, rotation, and Camera.

Link copied to clipboard
fun Viewpoint(center: Point, scale: Double)

Creates a viewpoint with center point and scale.

Link copied to clipboard
fun Viewpoint(    center: Point,     scale: Double,     camera: Camera)

Create a viewpoint with center point, scale, and Camera.

Link copied to clipboard
fun Viewpoint(    center: Point,     scale: Double,     rotation: Double)

Create a viewpoint with center point, scale, and rotation.

Link copied to clipboard
fun Viewpoint(    center: Point,     scale: Double,     rotation: Double,     camera: Camera)

Create a viewpoint with center point, scale, rotation, and Camera.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toJson(): String

Convert an object to JSON string.

Properties

Link copied to clipboard
val camera: Camera?
Link copied to clipboard
val rotation: Double

The viewpoint rotation angle in degrees between 0 and 360.

Link copied to clipboard
val targetGeometry: Geometry
Link copied to clipboard
val targetScale: Double

The viewpoint's target scale.

Link copied to clipboard
open override val unknownJson: Map<String, Any>

Unknown data from the source JSON. Unknown JSON is a dictionary of values that was in the source JSON but was unparsed by this API.

Link copied to clipboard
open override val unsupportedJson: Map<String, Any>

Unsupported data from the source JSON. Unsupported JSON is a dictionary of values that are supported by web maps, but not exposed through this API.

Link copied to clipboard
val viewpointType: ViewpointType

The viewpoint's type.