[OpenLayers-Dev] Format.GeoJSON doesn't load features in IE
Alexandre Dube
adube at mapgears.com
Thu Sep 9 09:19:56 EDT 2010
Ticket created with patch attached :
http://trac.osgeo.org/openlayers/ticket/2826
Regards,
Alexandre
On 10-09-08 03:25 PM, Alexandre Dube 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
>
>
>
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>
--
Alexandre Dubé
Mapgears
www.mapgears.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20100909/56a0e1dc/attachment-0001.html
More information about the Dev
mailing list