Represents the view location of an AGSMapView
or AGSSceneView
object.
- Since
- 100
◆ fromJSON:error:
Initializes and returns an object from its JSON representation.
- Parameters
-
JSONObject | NSDictionary or NSArray containing the JSON. |
error | encountered during the operation, if any. |
- Since
- 100
◆ initWithCenter:scale:
- (instancetype) initWithCenter: |
|
(AGSPoint *) |
center |
scale: |
|
(double) |
scale |
|
|
| |
Creates a viewpoint with center point and scale.
- Parameters
-
center | The center of the visible area. |
scale | The ratio between a distance on the map and the corresponding distance on the ground. |
- See also
AGSViewpoint
- Since
- 100.0
◆ initWithCenter:scale:camera:
- (instancetype) initWithCenter: |
|
(AGSPoint *) |
center |
scale: |
|
(double) |
scale |
camera: |
|
(AGSCamera *) |
camera |
|
|
| |
Creates a viewpoint with the center
, scale
, and camera
parameters.
Center and scale will be used when working with a map. The camera will be used when working with a scene.
- Parameters
-
center | The center of the visible area. |
scale | The ratio between a distance on the map and the corresponding distance on the ground. |
camera | An AGSCamera object that defines the observer for the scene. |
- See also
AGSViewpoint
- Since
- 100.0
◆ initWithCenter:scale:rotation:
- (instancetype) initWithCenter: |
|
(AGSPoint *) |
center |
scale: |
|
(double) |
scale |
rotation: |
|
(double) |
rotation |
|
|
| |
Creates a viewpoint with the center
, scale
, and rotation
parameters.
- Parameters
-
center | The center of the visible area. |
scale | The ratio between a distance on the map and the corresponding distance on the ground. |
rotation | The rotation angle in degrees between 0 and 360 (in counter-clockwise direction). |
- See also
AGSViewpoint
- Since
- 100.0
◆ initWithCenter:scale:rotation:camera:
- (instancetype) initWithCenter: |
|
(AGSPoint *) |
center |
scale: |
|
(double) |
scale |
rotation: |
|
(double) |
rotation |
camera: |
|
(AGSCamera *) |
camera |
|
|
| |
Creates a viewpoint with the center
, scale
, rotation
, and camera
parameters.
Center, scale, and rotation will be used when working with a map. The camera will be used when working with a scene.
- Parameters
-
center | The center of the visible area. |
scale | The ratio between a distance on the map and the corresponding distance on the ground. |
rotation | The rotation angle in degrees between 0 and 360 (in counter-clockwise direction). |
camera | An AGSCamera object that defines the observer for the scene. |
- See also
AGSViewpoint
- Since
- 100.0
◆ initWithLatitude:longitude:scale:
- (instancetype) initWithLatitude: |
|
(double) |
latitude |
longitude: |
|
(double) |
longitude |
scale: |
|
(double) |
scale |
|
|
| |
Creates a viewpoint with the latitude
, longitude
, and scale
parameters.
The spatial reference for the defined point is WGS84.
- Parameters
-
latitude | The latitude coordinate for the viewpoint. Negative values are south of the equator. |
longitude | The longitude coordinate for the viewpoint. Negative values are west of the prime meridian. |
scale | The ratio between a distance on the map and the corresponding distance on the ground. |
- See also
AGSViewpoint
- Since
- 100.0
◆ initWithLatitude:longitude:scale:camera:
- (instancetype) initWithLatitude: |
|
(double) |
latitude |
longitude: |
|
(double) |
longitude |
scale: |
|
(double) |
scale |
camera: |
|
(AGSCamera *) |
camera |
|
|
| |
Creates a viewpoint with the latitude
, longitude
, scale
, and camera
parameters.
The spatial reference for the defined point is WGS84. Latitude, longitude, and scale will be used when working with a map. The camera will be used when working with a scene.
- Parameters
-
latitude | The latitude coordinate for the viewpoint. Negative values are south of the equator. |
longitude | The longitude coordinate for the viewpoint. Negative values are west of the prime meridian. |
scale | The ratio between a distance on the map and the corresponding distance on the ground. |
camera | An AGSCamera object that defines the observer for the scene. |
- See also
AGSViewpoint
- Since
- 100.0
◆ initWithTargetExtent:
- (instancetype) initWithTargetExtent: |
|
(AGSEnvelope *) |
targetExtent |
|
Creates a viewpoint with the targetExtent
parameter. The final extent may be different depending upon the difference in aspect ratio of the targetExtent
parameter and the map/scene.
- Parameters
-
targetExtent | The geometry to use as the visible area. |
- See also
AGSViewpoint
- Since
- 100.0
◆ initWithTargetExtent:camera:
Creates a viewpoint with the targetExtent
and camera
paramters.
Target extent & rotation will be used when working with a map. The camera will be used when working with a scene.
- Parameters
-
targetExtent | The geometry to use as the visible area. |
camera | An AGSCamera object that defines the observer for the scene. |
- See also
AGSViewpoint
- Since
- 100.4
◆ initWithTargetExtent:rotation:
Creates a viewpoint with the targetExtent
and rotation
parameters.
- Parameters
-
targetExtent | The geometry to use as the visible area. |
rotation | The rotation angle in degrees between 0 and 360 (in counter-clockwise direction). |
- See also
AGSViewpoint
- Since
- 100.0
◆ initWithTargetExtent:rotation:camera:
Creates a viewpoint with the targetExtent
, rotation
, and camera
parameters.
Target extent & rotation will be used when working with a map. The camera will be used when working with a scene.
- Parameters
-
targetExtent | The geometry to use as the visible area. |
rotation | The rotation angle in degrees between 0 and 360 (in counter-clockwise direction). |
camera | An AGSCamera object that defines the observer for the scene. |
- See also
AGSViewpoint
- Since
- 100.0
◆ isEqualToViewpoint:
Compares whether this viewpoint is equal to another.
- Parameters
-
other | The viewpoint to compare this one to. |
- Returns
- Whether the two viewpoints are equal.
- Since
- 100
◆ toJSON:
- (nullable id) toJSON: |
|
(NSError **) |
error |
|
|
requiredinherited |
Returns JSON representation for this object.
- Parameters
-
error | encountered during the operation, if any. |
- Returns
NSDictionary
or NSArray
containing the JSON.
- Since
- 100
Reimplemented in AGSPortalItem.
◆ viewpointWithCenter:scale:
+ (instancetype) viewpointWithCenter: |
|
(AGSPoint *) |
center |
scale: |
|
(double) |
scale |
|
|
| |
Creates a viewpoint with the center
and scale
parameters.
- Parameters
-
center | The center of the visible area. |
scale | The ratio between a distance on the map and the corresponding distance on the ground. |
- Returns
- A new viewpoint object.
- See also
AGSViewpoint
- Since
- 100.0
◆ viewpointWithCenter:scale:camera:
+ (instancetype) viewpointWithCenter: |
|
(AGSPoint *) |
center |
scale: |
|
(double) |
scale |
camera: |
|
(AGSCamera *) |
camera |
|
|
| |
Creates a viewpoint with the center
, scale
, and camera
parameters.
Center and scale will be used when working with a map. The camera will be used when working with a scene.
- Parameters
-
center | The center of the visible area. |
scale | The ratio between a distance on the map and the corresponding distance on the ground. |
camera | An AGSCamera object that defines the observer for the scene. |
- Returns
- A new viewpoint object.
- See also
AGSViewpoint
- Since
- 100.0
◆ viewpointWithCenter:scale:rotation:
+ (instancetype) viewpointWithCenter: |
|
(AGSPoint *) |
center |
scale: |
|
(double) |
scale |
rotation: |
|
(double) |
rotation |
|
|
| |
Creates a viewpoint with the center
, scale
, and rotation
parameters.
- Parameters
-
center | The center of the visible area. |
scale | The ratio between a distance on the map and the corresponding distance on the ground. |
rotation | The rotation angle in degrees between 0 and 360 (in counter-clockwise direction). |
- Returns
- A new viewpoint object.
- See also
AGSViewpoint
- Since
- 100.0
◆ viewpointWithCenter:scale:rotation:camera:
+ (instancetype) viewpointWithCenter: |
|
(AGSPoint *) |
center |
scale: |
|
(double) |
scale |
rotation: |
|
(double) |
rotation |
camera: |
|
(AGSCamera *) |
camera |
|
|
| |
Creates a viewpoint with the center
, scale
, rotation
, and camera
parameters.
Center, scale, and rotation will be used when working with a map. The camera will be used when working with a scene.
- Parameters
-
center | The center of the visible area. |
scale | The ratio between a distance on the map and the corresponding distance on the ground. |
rotation | The rotation angle in degrees between 0 and 360 . |
camera | An AGSCamera object that defines the observer for the scene. |
- Returns
- A new viewpoint object.
- See also
AGSViewpoint
- Since
- 100.0
◆ viewpointWithLatitude:longitude:scale:
+ (instancetype) viewpointWithLatitude: |
|
(double) |
latitude |
longitude: |
|
(double) |
longitude |
scale: |
|
(double) |
scale |
|
|
| |
Creates a viewpoint with the latitude
, longitude
, and scale
parameters.
The spatial reference for the defined point is WGS84.
- Parameters
-
latitude | The latitude coordinate for the viewpoint. Negative values are south of the equator. |
longitude | The longitude coordinate for the viewpoint. Negative values are west of the prime meridian. |
scale | The ratio between a distance on the map and the corresponding distance on the ground. |
- Returns
- A new viewpoint object.
- See also
AGSViewpoint
- Since
- 100.0
◆ viewpointWithLatitude:longitude:scale:camera:
+ (instancetype) viewpointWithLatitude: |
|
(double) |
latitude |
longitude: |
|
(double) |
longitude |
scale: |
|
(double) |
scale |
camera: |
|
(AGSCamera *) |
camera |
|
|
| |
Creates a viewpoint with the latitude
, longitude
, scale
, and camera
parameters.
The spatial reference for the defined point is WGS84. Latitude, longitude, and scale will be used when working with a map. The camera will be used when working with a scene.
- Parameters
-
latitude | The latitude coordinate for the viewpoint. Negative values are south of the equator. |
longitude | The longitude coordinate for the viewpoint. Negative values are west of the prime meridian. |
scale | The ratio between a distance on the map and the corresponding distance on the ground. |
camera | An AGSCamera object that defines the observer for the scene. |
- Returns
- A new viewpoint object.
- See also
AGSViewpoint
- Since
- 100.0
◆ viewpointWithTargetExtent:
+ (instancetype) viewpointWithTargetExtent: |
|
(AGSEnvelope *) |
targetExtent |
|
Creates a viewpoint with the targetExtent
parameter.
The final extent may be different depending upon the difference in aspect ratio of the targetExtent
and the map/scene.
- Parameters
-
targetExtent | The geometry to use as the visible area. |
- Returns
- A new viewpoint object.
- See also
AGSViewpoint
- Since
- 100.0
◆ viewpointWithTargetExtent:camera:
Creates a viewpoint with the targetExtent
and camera
parameters.
Target extent will be used when working with a map. The camera will be used when working with a scene.
- Parameters
-
targetExtent | The geometry to use as the visible area. |
camera | An AGSCamera object that defines the observer for the scene. |
- Returns
- A new viewpoint object.
- See also
AGSViewpoint
- Since
- 100.4
◆ viewpointWithTargetExtent:rotation:
Creates a viewpoint with the targetExtent
and rotation
parameters.
- Parameters
-
targetExtent | The extent at which the map/scene should be displayed. The final extent may be different depending upon the difference in aspect ratio of the targetExtent and the map/scene. |
rotation | The rotation by which the map/scene should be rotated (in counter-clockwise direction). |
- Returns
- A new viewpoint object.
- Since
- 100
◆ viewpointWithTargetExtent:rotation:camera:
Creates a viewpoint with the targetExtent
, rotation
, and camera
parameters.
Target extent & rotation will be used when working with a map. The camera will be used when working with a scene.
- Parameters
-
targetExtent | The geometry to use as the visible area. |
rotation | The rotation angle in degrees between 0 and 360 (in counter-clockwise direction). |
camera | An AGSCamera object that defines the observer for the scene. |
- Returns
- A new viewpoint object.
- See also
AGSViewpoint
- Since
- 100.0
◆ camera
◆ rotation
The viewpoint rotation angle in degrees between 0
and 360
(in counter-clockwise direction).
- See also
AGSViewpoint
- Since
- 100.0
◆ targetGeometry
The geometry represented by this viewpoint. If viewpointType
is AGSViewpointTypeCenterAndScale
, this contains a point geometry. If viewpointType
is AGSViewpointTypeBoundingGeometry
, this contains an envelope geometry.
- Since
- 100
◆ targetScale
The map scale represented by this viewpoint. Only applicable if viewpointType
is AGSViewpointTypeCenterAndScale
.
- Since
- 100
◆ unknownJSON
- (NSDictionary<NSString*,id>*) unknownJSON |
|
readrequirednonatomiccopyinherited |
A dictionary of values that was in the source JSON but was unparsed by API.
- Returns
NSDictionary
containing the unknown JSON.
- Since
- 100
◆ unsupportedJSON
- (NSDictionary<NSString*,id>*) unsupportedJSON |
|
readnonatomiccopyinherited |
A dictionary of values that are supported by the REST API, but not exposed through the SDK API.
- Returns
NSDictionary
containing the unsupported JSON.
- Since
- 100
◆ viewpointType
The type of information contained in this viewpoint object.
- Since
- 100