I'm trying to display in my web portal the Panoramio's kml layer. The above code developen in OpenLayers is what I'm doing:
mapa = new OpenLayers.Layer.Vector("Panoramio Photos", {
projection: map.displayProjection,
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url: "http://www.panoramio.com/kml/?all", //Remote KML
format: new OpenLayers.Format.KML({
extractStyles:true,
extractAttributes: true
})
})
});
mapa.setVisibility(true);
The problem is in the url. When the website attemps to display this layer in the Firebug appears the following error: "NetworkError: 502 Pasarela Incorrecta". In my opinion the url is not correct, but if you try to put the same url in the browser, it works perfectly.
Does anyone know how to display this kml from Panoramio?
See this page: http://www.google.com/gadgets/directory?id=1041508841836&gl=es&synd=earth&hl=es&label=publisher:Panoramio
