<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal"><span style="color:#1F497D">Here are some details about my problem with IE 11, which were lacking from my previous post.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I am setting up a vector layer with an OpenLayers.Filter, refresh the layer and on IE 11 the featureadded event is not firing.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I have not had a problem with other browsers and have been using the code for quite a while. I have included my code following my questions<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Does my code look ok?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Is anyone who is doing something similar, confirm that there is or is not a problem with IE 11?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Does the problem exist on OpenLayers 3? (I cannot move to 3 yet and have not tested it)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Here is my filter, the pin value come from a non geographic source.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">filter = new OpenLayers.Filter.Comparison({ // filter is global<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> type: OpenLayers.Filter.Comparison.EQUAL_TO,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> property: "pin",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> value: pinc<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">});<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">my protocol<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">var protocol = new OpenLayers.Protocol.WFS(<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> version: "1.1.0",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> srsName: "EPSG:900913",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> url: myurl,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> featurePrefix: "catawba",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> featureNS: mynamespace,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> geometryName: "geom"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">the vector layer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">vector = new OpenLayers.Layer.Vector("parcel_vector", {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> strategies: [new OpenLayers.Strategy.Fixed()],
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> styleMap: not shown,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> filter: filter,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> protocol: protocol<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> });<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">register the event<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">vector.events.on({<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> featureadded: function() {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> console.log('feature added');<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> // do something useful<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">});<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">and later in the code I set the filter and refresh the layer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">filter.value = '1234'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">vector.refresh(); //nothing happens in IE 11<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
</div>
</body>
</html>