Represents the view location of AGSMapView or AGSSceneView.
Instances of this class represent a view location of AGSMapView or AGSSceneView
- 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.
The spatial reference of the center point cannot be nil.
- 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 |
|
|
| |
Create a viewpoint with center point, scale, and AGSCamera.
The spatial reference of the center point cannot be nil. Center and scale will be used when working with a map, 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 |
|
|
| |
Create a viewpoint with center point, scale, and rotation.
The spatial reference of the center point cannot be nil.
- 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 |
|
|
| |
Create a viewpoint with center point, scale, rotation, and AGSCamera.
The spatial reference of the center point cannot be nil. Center, scale, and rotation will be used when working with a map, 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 |
|
|
| |
Create a viewpoint with latitude, longitude, and scale.
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 |
|
|
| |
Create a viewpoint with latitude, longitude, scale, and AGSCamera
The spatial reference for the defined point is WGS84. Latitude, longitude, and scale will be used when working with a map, 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 |
|
Create a viewpoint with a bounding extent. The final extent may be different depending upon the difference in aspect ratio of the targetExtent and the map/scene.
The spatial reference of the target geometry cannot be nil.
- Parameters
-
| targetExtent | The geometry to use as the visible area. |
- See also
AGSViewpoint
- Since
- 100.0
§ initWithTargetExtent:camera:()
Create a viewpoint with a bounding extent and an AGSCamera.
The spatial reference of the target geometry cannot be nil. Target extent & rotation will be used when working with a map, 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:()
Create a viewpoint with a bounding extent and rotation.
The spatial reference of the target geometry cannot be nil.
- 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:()
Create a viewpoint with a bounding extent, rotation, and AGSCamera.
The spatial reference of the target geometry cannot be nil. Target extent & rotation will be used when working with a map, 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 | 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 center point and scale.
The spatial reference of the center point cannot be nil.
- 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
§ viewpointWithCenter:scale:camera:()
| + (instancetype) viewpointWithCenter: |
|
(AGSPoint *) |
center |
| scale: |
|
(double) |
scale |
| camera: |
|
(AGSCamera *) |
camera |
|
|
| |
Create a viewpoint with center point, scale, and AGSCamera.
The spatial reference of the center point cannot be nil. Center and scale will be used when working with a map, 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
§ viewpointWithCenter:scale:rotation:()
| + (instancetype) viewpointWithCenter: |
|
(AGSPoint *) |
center |
| scale: |
|
(double) |
scale |
| rotation: |
|
(double) |
rotation |
|
|
| |
Create a viewpoint with center point, scale, and rotation.
The spatial reference of the center point cannot be nil.
- 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
§ viewpointWithCenter:scale:rotation:camera:()
| + (instancetype) viewpointWithCenter: |
|
(AGSPoint *) |
center |
| scale: |
|
(double) |
scale |
| rotation: |
|
(double) |
rotation |
| camera: |
|
(AGSCamera *) |
camera |
|
|
| |
Create a viewpoint with center point, scale, rotation, and AGSCamera.
The spatial reference of the center point cannot be nil. Center, scale, and rotation will be used when working with a map, 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. |
- See also
AGSViewpoint
- Since
- 100.0
§ viewpointWithLatitude:longitude:scale:()
| + (instancetype) viewpointWithLatitude: |
|
(double) |
latitude |
| longitude: |
|
(double) |
longitude |
| scale: |
|
(double) |
scale |
|
|
| |
Create a viewpoint with latitude, longitude, and scale.
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
§ viewpointWithLatitude:longitude:scale:camera:()
| + (instancetype) viewpointWithLatitude: |
|
(double) |
latitude |
| longitude: |
|
(double) |
longitude |
| scale: |
|
(double) |
scale |
| camera: |
|
(AGSCamera *) |
camera |
|
|
| |
Create a viewpoint with latitude, longitude, scale, and AGSCamera
The spatial reference for the defined point is WGS84. Latitude, longitude, and scale will be used when working with a map, 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
§ viewpointWithTargetExtent:()
| + (instancetype) viewpointWithTargetExtent: |
|
(AGSEnvelope *) |
targetExtent |
|
Create a viewpoint with a bounding extent.
The spatial reference of the target geometry cannot be nil. 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. |
- See also
AGSViewpoint
- Since
- 100.0
§ viewpointWithTargetExtent:camera:()
Create a viewpoint with a bounding extent and an AGSCamera.
The spatial reference of the target geometry cannot be nil. Target extent will be used when working with a map, 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
§ viewpointWithTargetExtent:rotation:()
Initialize the viewpoint with an extent and rotation
- Parameters
-
| targetExtent | 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 | angle by which the map/scene should be rotated (in counter-clockwise direction) |
- Returns
- Initialized viewpoint
- Since
- 100
§ viewpointWithTargetExtent:rotation:camera:()
Create a viewpoint with a bounding extent, rotation, and AGSCamera.
The spatial reference of the target geometry cannot be nil. Target extent & rotation will be used when working with a map, 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
§ 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
- Since
- 100