[OpenLayers-Dev] Format.GeoJSON doesn't load features in IE
Felipe Alcacibar
falcacibar at gmail.com
Wed Sep 8 16:51:58 EDT 2010
I got the same problem without response... and post it so much time before.
On 8 September 2010 15:25, Alexandre Dube <adube at mapgears.com> wrote:
> Hi,
>
> I guess everyone is busy at FOSS4G and I understand that. Since I'm unable
> to log on the trac system, here's a patch to fix the following issue :
>
> With current trunk version, when using OpenLayers.Format.GeoJSON with a
> geojson string containing "FeatureCollection", in IE it can't load any
> features. See a live example showing the issue [1]. The json string
> contains 1 feature. In Firefox, when alerting obj.features.length we get
> "1" but in IE we get "2", thus resulting in an error and "null" is returned
> instead of the features.
>
> The attached patch resolves the issue. but it's more kinda of a "plaster"
> instead of a "remedy" (it's still bleeding, but we don't see it). Any
> better solution would be welcomed. See the same example as before with the
> fix [2].
>
> Please, let me know when the trac issue is fixed and I'll open a ticket for
> this bug.
>
> [1]
> http://dev4.mapgears.com/tests/openlayers-testsgeojson/examples/vector-features.html
> [2]
> http://dev4.mapgears.com/tests/openlayers-testsgeojson-withfix/examples/vector-features.html
>
> --
> Alexandre Dubé
> Mapgears
> www.mapgears.com
>
>
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>
>
More information about the Dev
mailing list