<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.23588"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=218033615-31082014><FONT color=#0000ff 
size=2 face=Arial>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=218033615-31082014><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=218033615-31082014><FONT color=#0000ff 
size=2 face=Arial>it seems, that the Split Control only works for 
lines?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=218033615-31082014><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=218033615-31082014></SPAN><FONT 
face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=218033615-31082014>Your 
fiddle example works for lines</SPAN><SPAN 
class=218033615-31082014>.</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=218033615-31082014></SPAN></FONT></FONT></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=218033615-31082014>Arnd</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=218033615-31082014></SPAN></FONT></FONT></FONT> </DIV>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> openlayers-users-bounces@lists.osgeo.org 
[mailto:openlayers-users-bounces@lists.osgeo.org] <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>
<DIV dir=ltr>
<DIV>
<DIV>Hi list,<BR><BR>I am following the <SPAN id=goog_197100306></SPAN><SPAN 
id=goog_197100307></SPAN><A 
href="http://dev.openlayers.org/examples/split-feature.html">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/">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 />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
        <tr>
                <td style='border:none;padding:0px 15px 0px 8px'>
                        <a href="http://www.avast.com/">
                                <img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" />
                        </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/">avast! Antivirus</a> Schutz ist aktiv.
                        </p>
                </td>
        </tr>
</table>
<br />
</BODY></HTML>