Here are some details about my problem with IE 11, which were lacking from my 
previous post.

I am setting up a vector layer with an OpenLayers.Filter, refresh the layer and 
on IE 11 the featureadded event is not firing.
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

Does my code look ok?
Is anyone who is doing something similar, confirm that there is or is not a 
problem with IE 11?
Does the problem exist on OpenLayers 3? (I cannot move to 3 yet and have not 
tested it)

Here is my filter, the pin value come from a non geographic source.

filter = new OpenLayers.Filter.Comparison({                                     
  // filter is global
                type: OpenLayers.Filter.Comparison.EQUAL_TO,
                property: "pin",
                value: pinc
});

my protocol

var protocol = new OpenLayers.Protocol.WFS(
                version: "1.1.0",
                srsName: "EPSG:900913",
                url: myurl,
                featurePrefix: "catawba",
                featureNS: mynamespace,
                geometryName: "geom"
);

the vector layer

vector = new OpenLayers.Layer.Vector("parcel_vector", {
                strategies: [new OpenLayers.Strategy.Fixed()],
                styleMap: not shown,
                filter: filter,
                 protocol: protocol
  });

register the event

vector.events.on({
                featureadded: function() {
                                console.log('feature added');
                                // do something useful
                }
});

and later in the code I set the filter and refresh the layer

filter.value = '1234'
vector.refresh();                              //nothing happens in IE 11








_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to