UPDATE simplified with JSFiddle example: here is the most simplistic JSFiddle showing what I mean: http://jsfiddle.net/eflowbeach/75eq1mqe/
You can see in Chrome and IE that the feature appears, in Firefox nothing displays. The KML is valid.
Original Question: Has anyone else had a KML vector layer display perfectly fine in Chrome (v35) and IE10+, but fails to add the features to the layer in Firefox (v30)? I'm using OpenLayers 2.12 and have also tested in 2.13.1 without success.
var test = new OpenLayers.Layer.Vector("test",
{
projection : new OpenLayers.Projection("EPSG:4326"),
strategies : [new OpenLayers.Strategy.Fixed()],
protocol : new OpenLayers.Protocol.HTTP(
{
url : "myFile.kml",
format : new OpenLayers.Format.KML(
{
extractStyles : true,
extractAttributes : true
})
})
});
me.map.addLayer(test);
When you look at the features of this layer in the console:
console.log(test[0].features);
Chrome and IE have 11 features in Firefox the feature array is empty.
Here's the link to the KML file in question: https://drive.google.com/file/d/0B_iQDBiLH9cfQWIzS3A4anZqcVk/edit?usp=sharing
I've had this happen to other files too, so I was wondering if it was something wrong with my format statement.