[OpenLayers-Users] Node has no parent exception when trying to
draw Polygon
Pierre GIRAUD
bluecarto at gmail.com
Thu Jan 17 05:47:46 EST 2008
I think you are missing one last step :
4.) Creating a Feature.Vector given the created polygon.
I may be wrong though.
Regards,
Pierre
On Jan 17, 2008 6:19 AM, samd <sdoyle_2 at yahoo.com> wrote:
>
> I'm trying to reconstitute a polygon from points I previously saved from a
> polygon to the backend. The points are correct and I'm reconstructing by:
>
> 1.) Creating an array of Points based on retrieved points.
> 2.) Creating a LinearRing with the Array of Points
> 3.) Creating a Polygon with the LinearRing.
>
> When I call the DrawFeatures drawFeature method with this Polygon it
> complains about a node not having parent properties. This is using the same
> DrawFeature that was used to create the polygon in the first place. Looking
> at the drawFeature function it creates the Vector based on the passed in
> geometry then adds the feature to the layer and draws the feature.
>
> Any ideas?
>
> Thanks, S.D.
> --
> View this message in context: http://www.nabble.com/Node-has-no-parent-exception-when-trying-to-draw-Polygon-tp14910427p14910427.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
More information about the Users
mailing list