[OpenLayers-Users] unable to add geometries to geometry collection
Imran Rajjad
rajjad at gmail.com
Wed Jul 14 03:35:21 EDT 2010
Hi list,
I`m tying to add a Geometry Collection which consists of a line
feautre and a point, the point is a arrow head to be place at the end
of line, however It seems the constructor is not taking a geometry
object, which seems to be adding to a simple vector layer, I tried the
code in FireBug, but it shows undefined. this is how I`m trying to do.
pointList is an array of OpenLayer points and works if the line string
is added to a feature.vector object,
pointList.toString() returns "POINT(73.13187817700006
33.59365778950007),POINT(73.12991075150003 33.59738348500005)"
var gc = new OpenLayers.Geometry.Collection([new
OpenLayers.Geometry.LineString(pointList)]);
what am i doing wrong here.
regards,
Imran
--
I.R
More information about the Users
mailing list