[OpenLayers-Users] Does Control.ModifyFeature not work with Geometry.MultiPolygon?

Jeff Dege jeff.dege at korterra.com
Thu Apr 8 18:53:31 EDT 2010


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/20100408/db69349f/attachment.html


More information about the Users mailing list