[OpenLayers-Users] Does Control.ModifyFeature not work with
Geometry.MultiPolygon?
Jeff Dege
jeff.dege at korterra.com
Fri Apr 9 15:28:26 EDT 2010
A heads up for anyone who saw my earlier post.
I don't know what the problem is, but it's not MultiPolygons. I changed my server to return GML containing multiple features, each of which was a single polygon, and ModifyFeature still doesn't work.
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On Behalf Of Jeff Dege
Sent: Thursday, April 08, 2010 5:54 PM
To: users at openlayers.org
Subject: [OpenLayers-Users] Does Control.ModifyFeature not work with Geometry.MultiPolygon?
I've been putting together a site around a Layer.Vector, and in the early versions Control.ModifyFeature worked just fine. But in those versions, I was working with polygons I created with Control.DrawFeature. In my latest versions, I'm rendering GML into the layer with Format.GML, and now ModifyFeature is no longer working.
The feature selects just fine, but the drag points, both real and virtual, do not appear.
I've been trying to figure out what might be different, and so far all I've been able to discern is that the GML I'm sending wraps its polygons in a <gml:MultiPolygon>. That is, rather than sending a number of polygons, I'm sending a single MultiPolygon. Which Format.GML renders, of course, as an OpenLayers.Geometry.MultiPolygon.
Could this be why ModifyFeature is not working? That it doesn't properly handle MultiPolygons? I can't think of any other difference between the older working versions and the new non-working versions that would be relevant.
Does anyone have any other ideas as to why ModifyFeature would successfully select a feature, but fail to draw its drag points?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100409/8910ad8e/attachment.html
More information about the Users
mailing list