[OpenLayers-Users] Problems using a KML file

Christopher Schmidt crschmidt at metacarta.com
Wed May 2 14:14:57 EDT 2007


On Wed, May 02, 2007 at 10:57:51AM -0700, kaka wrote:
> 
> Hi
> I am trying to use a KML file with OpenLayers. As I understand it, there is
> basic support for KML files containing points and lines, but not ploygons or
> formatting. I have tried using a KML file containing a line (more or less
> following parts of the European coast), but this is not correctly rendered
> using OpenLayers with FF/Opera and not at all using IE 7. Is this a known
> issue? Have a look at
> http://www.villageografica.com/test45/KML/kml-layer.html for a demo.

The KML parser expects that there is no seperation by spaces after the
commas in each coordinate pair. so, data should look like:

x,y,z x,y,z

The place to improve this is lib/OpenLayers/Format/KML.js , in
parseCoords.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list