> map.addOverlay(new GPolygon([new GLatLng(42.396998,-71.020695),new ....

Don't do that.
Do
  var mypolygon;   in global namespace
then
  mypolygon = new GPolygon([new GLatLng(42.396998 ....
wherever you need to do it, so you create a reference to your poly.
Then
  map.addOverlay(mypolygon);
Later on, when you want to the point-in-poly do
  test = mypolygon.Contains(somelatlng) ;

cheers, Ross K

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to