import { executeMany, supportsCurves } from "@arcgis/core/geometry/operators/locateBetweenOperator.js";const { executeMany, supportsCurves } = await $arcgis.import("@arcgis/core/geometry/operators/locateBetweenOperator.js");- Since
- ArcGIS Maps SDK for JavaScript 4.31
Performs an OGC locate between operation on M values for the given 2D geometries. Calculates the geometry between given M values. This can also be used for locate along operations, which is a variation of locate between when the start and end M values are equal. This is a linear referencing operation. Polygons and extents are not supported.

Functions
| Name | Return Type | Object |
|---|---|---|
(GeometryWithoutMeshUnion | null | undefined)[] | | |
| |
executeMany
Performs the locate between or locate along operation on the geometry. For locate along, the start and end M values are equal.
- Signature
-
executeMany (geometries: GeometryUnion[], startM: number, endM: number): (GeometryWithoutMeshUnion | null | undefined)[]
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| geometries | The set of input geometries. All the geometries must have the same spatial reference. | | |
| startM | The M value to start the operation. | | |
| endM | The M value to end the operation. | |
- Returns
- (GeometryWithoutMeshUnion | null | undefined)[]
Returns the result of geometries. For 1-dimensional geometries, the result could be either point, multipoint, or polyline. For polylines, the result can be both polyline and multipoint.
Example
// Perform the locate between operationconst geometries = locateBetweenOperator.executeMany([polyline1, polyline2], 100, 200);Variables
supportsCurves
Indicates if the operator supports input geometries that contain curves.
The value will always be true.
- Type
- boolean