Hola,

Un ejemplo para declarar en Openlayers un layer que contiene un gpx devuelto
por OpenRouteService:

var lgpx = new OpenLayers.Layer.GML("Fichero prueba GPX", "prueba_ruta.gpx",
{ 
                format: OpenLayers.Format.GPX, 
                style: {strokeColor: "yellow", strokeWidth: 15,
strokeOpacity: 0.8}, 
                projection: new OpenLayers.Projection("EPSG:4326") 
  });

Un saludo,
Raul

-----Mensaje original-----
De: [email protected]
[mailto:[email protected]] En nombre de Xavier Barnada Rius
Enviado el: lunes, 15 de marzo de 2010 22:07
Para: [email protected]
Asunto: [Talk-es] Openlayers+rutas

Hola, estoy buscando si hay alguna forma de enrutar un camino y
mostrarlo a traves de Openlayers.
He buscado y he visto que Openlayers suporta cargar ficheros GPX y
tambien he visto que OpenRouteService tiene una api, pero desconozco si
es posible que desde un sitio que usa Openlayers pudiera cargar el GPX
generado por OpenRouteService.
Existe alguna otra alternativa? Alguien ha hecho algo parecido?




_______________________________________________
Talk-es mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/talk-es


_______________________________________________
Talk-es mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/talk-es

Responder a