Hi, I try to use KML produced by Geoserver (1.6.4) in OpenLayers (2.6) but the XML generated is not accepted (silently alas). I checked the file and I eventually found 2 'mistakes' in the KML. Here's 2 fragments where the first (corrected) works while the second (directly from Geoserver) fails :
<kml xmlns="http://earth.google.com/kml/2.2"> <Document> <name>edfgeo:clientassoc</name> <Style id="GeoServerStyleclientassoc.nfm--730056c2_11c0891a30b_-21f4"> <IconStyle> <color>ff33ffff</color> <colorMode>normal</colorMode> <Icon> <href>http://maps.google.com/mapfiles/kml/pal4/icon25.png</href> </Icon> </IconStyle> ... and <?xml version="1.0" encoding="UTF-8"?> <kml > <Document> <name>edfgeo:clientassoc</name> <Style id="GeoServerStyleclientassoc.nfm--730056c2_11c0891a30b_-21f4"> <IconStyle> <Icon/> </IconStyle> <IconStyle> <color>ff33ffff</color> <colorMode>normal</colorMode> <Icon> <href>http://maps.google.com/mapfiles/kml/pal4/icon25.png</href> </Icon> </IconStyle> ... In the second fragment the default namespace is missing and a 'void' IconStyle appears. Has anybody got this problem before ? Cheers Laurent -- View this message in context: http://n2.nabble.com/KML-from-Geoserver-tp789434p789434.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users