esriGeometryHitPartType Constants

Describes the parts of a geometry that can be located by their proximity to a query point. Specified as a parameter to the HitTest method.

Constant Value Description
esriGeometryPartNone 0 Not used.
esriGeometryPartVertex 1 Locates a vertex of the geometry closest to the query point.
esriGeometryPartBoundary 4 Locates a point anywhere on the boundary of a polygon, or anywhere on a polyline, that is closest to the query point.
esriGeometryPartMidpoint 8 Locates a midpoint of a segment belonging to a polygon or polyline that is closest to the query point.
esriGeometryPartCentroid 32 Locates the geometric centroid of a polygon or the center of an envelope closest to the query point.
esriGeometryPartEndpoint 16 Locates an endpoint of the polyline closest to the query point.
esriGeometryPartSurface 64 Locates a point anywhere on the surface of a polygon or multipatch that is closest to the query ray.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close