[Talk-es] Openlayers+rutas

Raúl Martínez Fernández martinezf.raul en gmail.com
Mar Mar 16 22:42:41 GMT 2010


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: talk-es-bounces en openstreetmap.org
[mailto:talk-es-bounces en openstreetmap.org] En nombre de Xavier Barnada Rius
Enviado el: lunes, 15 de marzo de 2010 22:07
Para: talk-es en openstreetmap.org
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
Talk-es en openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-es





More information about the Talk-es mailing list