@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
26 lines (24 loc) • 1.64 kB
TypeScript
import type Polyline from "../../geometry/Polyline.js";
import type { JSONSupport } from "../../core/JSONSupport.js";
import type { PolylineProperties } from "../../geometry/Polyline.js";
export interface MeasureLengthFromImageResultProperties extends Partial<Pick<MeasureLengthFromImageResult, "length">> {
/** Polyline geometry in a map space. */
geometry?: (PolylineProperties & { type: "polyline" });
}
/**
* The length result from a selected image's measurement in an image space when the [ImageryLayer.measureLengthFromImage()](https://developers.arcgis.com/javascript/latest/references/core/layers/ImageryLayer/#measureLengthFromImage)
* or [measureLengthFromImage()](https://developers.arcgis.com/javascript/latest/references/core/rest/imageService/#measureLengthFromImage) methods resolve successfully.
*
* @since 4.29
* @see [ImageryLayer.measureLengthFromImage()](https://developers.arcgis.com/javascript/latest/references/core/layers/ImageryLayer/#measureLengthFromImage)
* @see [measureLengthFromImage()](https://developers.arcgis.com/javascript/latest/references/core/rest/imageService/#measureLengthFromImage)
* @see [MeasureFromImageParameters](https://developers.arcgis.com/javascript/latest/references/core/rest/support/MeasureFromImageParameters/)
*/
export default class MeasureLengthFromImageResult extends JSONSupport {
constructor(properties?: MeasureLengthFromImageResultProperties);
/** Polyline geometry in a map space. */
get geometry(): Polyline;
set geometry(value: (PolylineProperties & { type: "polyline" }));
/** The length of a polyline in meters. */
accessor length: number;
}