<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ticket created with patch attached :
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/openlayers/ticket/2826">http://trac.osgeo.org/openlayers/ticket/2826</a><br>
<br>
Regards,<br>
<br>
Alexandre<br>
<br>
<br>
On 10-09-08 03:25 PM, Alexandre Dube wrote:
<blockquote cite="mid:4C87E319.4080300@mapgears.com" type="cite">Hi,
<br>
<br>
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 :
<br>
<br>
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.
<br>
<br>
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].
<br>
<br>
Please, let me know when the trac issue is fixed and I'll open a
ticket for this bug.
<br>
<br>
[1]
<a class="moz-txt-link-freetext" href="http://dev4.mapgears.com/tests/openlayers-testsgeojson/examples/vector-features.html">http://dev4.mapgears.com/tests/openlayers-testsgeojson/examples/vector-features.html</a>
<br>
[2]
<a class="moz-txt-link-freetext" href="http://dev4.mapgears.com/tests/openlayers-testsgeojson-withfix/examples/vector-features.html">http://dev4.mapgears.com/tests/openlayers-testsgeojson-withfix/examples/vector-features.html</a>
<br>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dev@lists.osgeo.org">Dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-dev">http://lists.osgeo.org/mailman/listinfo/openlayers-dev</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Alexandre Dubé
Mapgears
<a class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
</body>
</html>