[OpenLayers-Users] trouble with IE 11 and more

Ralph Dell RDell at CatawbaCountyNC.gov
Mon Nov 18 05:58:21 PST 2013


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








-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20131118/3e991192/attachment.html>


More information about the Users mailing list