On Wednesday, November 4, 2009, Brad Spencer <[email protected]> wrote: > > > > > > > > > > > > > > Guys, I have created a vector polygon as follows: > > > > var parcel01 = new > OpenLayers.Geometry.LinearRing(pointList); > > polygonFeature = new OpenLayers.Feature.Vector( new > OpenLayers.Geometry.Polygon([parcel01])); > > vectorLayer.addFeatures([polygonFeature]); > > > > I then am parsing a list of external points to include only > those that are inside the polygon on the map as vector markers. > > > > I have tried the following with no success: > > > > If (polygonFeature.intersects(new > OpenLayers.Geometry.Point(p[0], p[1]))) {// include codeā¦}
and polygonFeature.geometry.intersects()? Cheers, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : [email protected] http://www.camptocamp.com _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
