[OpenLayers-Users] XML syntax problem

James McManus jmpmcmanus at gmail.com
Tue Jan 5 11:54:11 EST 2010


I'm using the script below to read a KML file. The closing </description>
marks in the file have a page break before them.  This results in the
descriptions not being read by the script below.  This problem does not
occur when reading the file with Google Earth.  Is this a problem with
Openlayers, or is Openlayers following stricter XML syntax requirements?

var real = new OpenLayers.Layer.Vector("Neuse", {
                projection: map.displayProjection,
                strategies: [new OpenLayers.Strategy.Fixed()],
                protocol: new OpenLayers.Protocol.HTTP({
                    url: "real.kml",
                    format: new OpenLayers.Format.KML({
                        extractStyles: true,
                        extractAttributes: true
                    })
                })
});

Thanks
Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100105/3f91d15c/attachment.html


More information about the Users mailing list