I need some help with containsPoint().  I have a variable (myLoc) that
represents a given point on the map on one layer.  Tthe features I'm trying
to monitor are polygons, so I think I could just use the containsPoint
function mixed with a for loop for each feature.  Does that make sense?
Also, would it matter that my starting point and the other polygons are on
different layers?

Something like:


var isHere;
for (var i = 0; i < layer.features; i++) {
   isHere = layer.feature[i].containsPoint(myLoc);
   if (isHere = TRUE) {
          alert('true');
   }
}

am I way off?
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to