[OpenLayers-Users] OpenLayers.Format.KML problems with styleUrl in	KML file
    Jürgen Dankoweit 
    Juergen.Dankoweit at T-Online.de
       
    Sat Jun  9 03:16:17 PDT 2012
    
    
  
Hello,
for displaying hiking routes on my homepage I use KML files for the
route description und some POIs on this route.
OpenLayers displays only the route but does not show any POIs:
http://www.dankoweit.de/cgi-bin/bergtouren.pl?DE;6;0 -> click on
"Wanderroute"
 I have tested the KML files with Google and there everything is shown
correctly:
http://maps.google.de/maps?f=q&hl=de&q=http://www.dankoweit.de/Bergtouren/Kartenpunkte/bruennstein_kiefersfelden.kml
Here is the KML file for the route:
http://www.dankoweit.de/Bergtouren/Kartenpunkte/bruennstein_kiefersfelden.kml
Here is the KML file with some globally used symbols for the POIs:
http://www.dankoweit.de/Bergtouren/Kartenpunkte/include.kml
Code snippet:
var pr = new OpenLayers.Protocol.HTTP({
 url: '/Bergtouren/Kartenpunkte/' + kartenpunkte,
 format: new OpenLayers.Format.KML({
  extractStyles: true,
  extractAttributes: true,
  maxDepth: 20
 })
});
if (pr) {
 var natur = new OpenLayers.Layer.Vector("KML", {
  projection: map.displayProjection,
  metadata : "LAYER_TOUR",
  strategies: [new OpenLayers.Strategy.Fixed()],
  protocol: pr
 });
}
How to solve this problem? I'm using OpenLayers 2.11
Best regards and thanks for the answers
Juergen
-- 
Meine stets unfertige Homepage: www.dankoweit.de
    
    
More information about the Users
mailing list