JS API
Map Object
QueryEngine Object
Layer Object
Feature Object
Query Object
GeoJson Function Library (Experimental)

snapTo

Snaps a point onto another geometry.

Parameters

Name Required Description
point Yes Any GeoJSON Point object.
geometry Yes Any GeoJSON geometry object.

Currently Implemented

At present this function is only implemented for the geometry types in the table below.

geometry
Point MultiPoint LineString MultiLineString Polygon MultiPolygon BoundingBox
Point - - YES YES - - -