[OpenLayers-Trac] Re: [OpenLayers] #3065: Donuts do not work with
multipolygons
OpenLayers
trac-20090302 at openlayers.org
Sun Feb 20 15:12:21 EST 2011
#3065: Donuts do not work with multipolygons
-----------------------------+----------------------------------------------
Reporter: arneke | Owner: tschaub
Type: bug | Status: new
Priority: minor | Milestone: 2.11 Release
Component: Handler.Polygon | Version: SVN
Keywords: | State:
-----------------------------+----------------------------------------------
Changes (by arneke):
* cc: arneke (added)
Comment:
For the simple case where the multipolygon consists of a single polygon,
it works to just replace
polygon.geometry.addComponent(this.line.geometry);
with
polygon.geometry.components[0].addComponent(this.line.geometry);
So I went half a step further and added a loop over the components to find
which one intersects.
Hope you're doing well, have fun in Lausanne :)
--
Ticket URL: <http://trac.openlayers.org/ticket/3065#comment:1>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list