javascript point in polygon

1256
2
08-30-2016 02:50 AM
liuyu1
by
New Contributor

javascript point  in polygon .can not understand esri API about "contains",i think this had an issue, if someone knows, please give me code to have a look. Thankyou!

0 Kudos
2 Replies
liuyu1
by
New Contributor

waiting  online

0 Kudos
FC_Basson
MVP Regular Contributor

Hi Liu, can you please explain what you don't understand about the contains function? (Polygon | API Reference | ArcGIS API for JavaScript 3.17 )

The point parameter you pass to the function must be a valid point object with a spatial reference defined (https://developers.arcgis.com/javascript/3/jsapi/point-amd.html#point1).