is point in polygan

Sep 28, 2011 at 10:06 AM

hi 

 

how i find that is a point in my polygan in gmap .net ?

 

thanks

Dec 4, 2012 at 8:59 AM

Use the name space "google.maps.geometry.poly" in Javascript, use the method "containsLocation".

 

Sample code to implement:

var polyObject= new google.maps.geometry.poly;

polyObject.containsLocation(Point object, Polygon object) returns true or false.

Refer below API documentation.

https://developers.google.com/maps/documentation/javascript/reference#poly