[OpenLayers-Users] OpenLayers.Control.Split not working the same asthe example

Max Demars burton449geo at gmail.com
Tue Sep 2 07:45:54 PDT 2014


Ok you are right. Split is not working with polygon, but that information
can't be found anywhere in the API documentation... see:
http://dev.openlayers.org/apidocs/files/OpenLayers/Control/Split-js.html


On Sun, Aug 31, 2014 at 11:47 AM, Arnd Wippermann <arnd.wippermann at web.de>
wrote:

>  Hi,
>
> it seems, that the Split Control only works for lines?
>
> Your fiddle example works for lines.
>
> Arnd
>
>  ------------------------------
> *Von:* openlayers-users-bounces at lists.osgeo.org [mailto:
> openlayers-users-bounces at lists.osgeo.org] *Im Auftrag von *Max Demars
> *Gesendet:* Freitag, 29. August 2014 19:01
> *An:* openlayers-users
> *Betreff:* [OpenLayers-Users] OpenLayers.Control.Split not working the
> same asthe example
>
>   Hi list,
>
> I am following the split-feature example
> <http://dev.openlayers.org/examples/split-feature.html>, but cannot make
> it works the same in my application.
>
> [I have create a JsFiddle <http://jsfiddle.net/6tzu580u/1/> to show my
> code.][2]
>
> In the fiddle you'll see a vectorLayer with one feature and a split
> control. However, the aftersplit event (that would tell how many features
> is in the layer after the split) is never called.
>
> What is wrong with my code?
>
> Thank you!
>
> -Max Demars
>
>
> --
>   Stack Overflow: http://stackoverflow.com/users/1914034/burton449
> GIS Overflow: http://gis.stackexchange.com/users/14426/burton449
> LastFm: http://www.lastfm.fr/user/burton449
>
>
> ------------------------------
>    <http://www.avast.com/>
>
> Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus
> <http://www.avast.com/> Schutz ist aktiv.
>
>


-- 
Stack Overflow: http://stackoverflow.com/users/1914034/burton449
GIS Overflow: http://gis.stackexchange.com/users/14426/burton449
LastFm: http://www.lastfm.fr/user/burton449
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20140902/b6b96128/attachment.html>


More information about the Users mailing list