<div dir="ltr">Ok you are right. Split is not working with polygon, but that information can't be found anywhere in the API documentation... see: <a href="http://dev.openlayers.org/apidocs/files/OpenLayers/Control/Split-js.html">http://dev.openlayers.org/apidocs/files/OpenLayers/Control/Split-js.html</a><br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 31, 2014 at 11:47 AM, Arnd Wippermann <span dir="ltr"><<a href="mailto:arnd.wippermann@web.de" target="_blank">arnd.wippermann@web.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>



<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial">Hi,</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial">it seems, that the Split Control only works for 
lines?</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span></span><font face="Arial"><font color="#0000ff"><font><span>Your 
fiddle example works for lines</span><span>.</span></font></font></font></div>
<div dir="ltr" align="left"><font face="Arial"><font color="#0000ff"><font><span></span></font></font></font> </div>
<div dir="ltr" align="left"><font face="Arial"><font color="#0000ff"><font><span>Arnd</span></font></font></font></div>
<div dir="ltr" align="left"><font face="Arial"><font color="#0000ff"><font><span></span></font></font></font> </div>
<div dir="ltr" align="left" lang="de">
<hr>
<font face="Tahoma"><b>Von:</b> <a href="mailto:openlayers-users-bounces@lists.osgeo.org" target="_blank">openlayers-users-bounces@lists.osgeo.org</a> 
[mailto:<a href="mailto:openlayers-users-bounces@lists.osgeo.org" target="_blank">openlayers-users-bounces@lists.osgeo.org</a>] <b>Im Auftrag von </b>Max 
Demars<br><b>Gesendet:</b> Freitag, 29. August 2014 19:01<br><b>An:</b> 
openlayers-users<br><b>Betreff:</b> [OpenLayers-Users] OpenLayers.Control.Split 
not working the same asthe example<br></font><br></div><div><div class="h5">
<div></div>
<div dir="ltr">
<div>
<div>Hi list,<br><br>I am following the <span></span><span></span><a href="http://dev.openlayers.org/examples/split-feature.html" target="_blank">split-feature 
example</a>, but cannot make it works the same in my application.<br><br>[I have 
create a <a href="http://jsfiddle.net/6tzu580u/1/" target="_blank">JsFiddle</a> to show my 
code.][2]<br><br>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.<br><br>What is wrong with my 
code?<br><br></div>Thank you!<br><br></div>-Max Demars<br>
<div>
<div><br><br>
<div>-- <br>
<div dir="ltr">
<div>
<div>
<div>Stack Overflow: <a href="http://stackoverflow.com/users/1914034/burton449" target="_blank">http://stackoverflow.com/users/1914034/burton449</a><br></div></div>GIS 
Overflow: <a href="http://gis.stackexchange.com/users/14426/burton449" target="_blank">http://gis.stackexchange.com/users/14426/burton449</a><br></div>LastFm: 
<a href="http://www.lastfm.fr/user/burton449" target="_blank">http://www.lastfm.fr/user/burton449</a><br></div></div></div></div></div>
<br><br>
</div></div><hr style="border:none;color:#909090;background-color:#b0b0b0;min-height:1px;width:99%">
<table style="border-collapse:collapse;border:none">
        <tbody><tr>
                <td style="border:none;padding:0px 15px 0px 8px">
                        <a href="http://www.avast.com/" target="_blank">
                                <img src="http://static.avast.com/emails/avast-mail-stamp.png" border="0">
                        </a>
                </td>
                <td>
                        <p style="color:#3d4d5a;font-family:"Calibri","Verdana","Arial","Helvetica";font-size:12pt">
                                Diese E-Mail ist frei von Viren und Malware, denn der <a href="http://www.avast.com/" target="_blank">avast! Antivirus</a> Schutz ist aktiv.
                        </p>
                </td>
        </tr>
</tbody></table>
<br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div><div><div>Stack Overflow: <a href="http://stackoverflow.com/users/1914034/burton449" target="_blank">http://stackoverflow.com/users/1914034/burton449</a><br>
</div></div>GIS Overflow: <a href="http://gis.stackexchange.com/users/14426/burton449" target="_blank">http://gis.stackexchange.com/users/14426/burton449</a><br></div>LastFm: <a href="http://www.lastfm.fr/user/burton449" target="_blank">http://www.lastfm.fr/user/burton449</a><br>
</div>
</div>