require(["esri/rest/support/ImageToMapParameters"], (ImageToMapParameters) => { /* code goes here */ });
import ImageToMapParameters from "@arcgis/core/rest/support/ImageToMapParameters.js";
esri/rest/support/ImageToMapParameters
Input parameters for the ImageryLayer.imageToMap() or imageService.imageToMap() methods.
Constructors
-
Parameterproperties Objectoptional
See the properties for a list of all the properties that may be passed into the constructor.
Property Overview
Name | Type | Summary | Class |
---|---|---|---|
When | ImageToMapParameters | ||
The depth offset. | ImageToMapParameters | ||
The geometry in an image space. | ImageToMapParameters | ||
The spatial reference for the output geometry. | ImageToMapParameters | ||
The corresponding raster id for the input geometry. | ImageToMapParameters |
Property Details
-
adjust
adjust Boolean
-
When
true
, it will adjust the background vertices to be in the foreground.- Default Value:false
-
depthOffset
depthOffset Number
-
The depth offset.
- Default Value:0
-
geometry
geometry Multipoint |Point |Polygon |Polylineautocast
-
The geometry in an image space.
-
inSpatialReference
inSpatialReference SpatialReferenceautocast
-
The spatial reference for the output geometry. If not specified, the spatial reference of the image service is used.
Method Overview
Name | Return Type | Summary | Class |
---|---|---|---|
* | Creates a new instance of this class and initializes it with values from a JSON object generated from an ArcGIS product. | ImageToMapParameters | |
Converts an instance of this class to its ArcGIS portal JSON representation. | ImageToMapParameters |
Method Details
-
Creates a new instance of this class and initializes it with values from a JSON object generated from an ArcGIS product. The object passed into the input
json
parameter often comes from a response to a query operation in the REST API or a toJSON() method from another ArcGIS product. See the Using fromJSON() topic in the Guide for details and examples of when and how to use this function.Parameterjson ObjectA JSON representation of the instance in the ArcGIS format. See the ArcGIS REST API documentation for examples of the structure of various input JSON objects.
ReturnsType Description * Returns a new instance of this class.
-
toJSON
toJSON(){Object}
-
Converts an instance of this class to its ArcGIS portal JSON representation. See the Using fromJSON() guide topic for more information.
ReturnsType Description Object The ArcGIS portal JSON representation of an instance of this class.