You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
#1 2013-08-07 11:37:33
- BigJo
- Member
- Registered: 2013-08-07
- Posts: 1
Route per EncodedPolyline in Ol darstellen
Hallo,
ich bin recht neu hier ich versuche eine Route die ich im EncodedPolyline format vorliegen habe per OL darzustellen.
mein JavaScript Code sieht ca folgendermaßen aus:
var element = datencontainer.encodedRouteTrack;
var features = new OpenLayers.Format.EncodedPolyline().read(element); // muss ich hier im Construktor was mitgeben ?!?!
routeLayer = new OpenLayers.Layer.Vector("Vector_Layer");
routeLayer.addFeatures(features);
map.addLayer(routeLayer);
Hat schon mal jemand damit gearbeitet bzw könnte jemand einem Neuling (mir) ein bisschen unter die Arme greifen?
Vielen dank schon mal
Gruß BigJo
PS: Hoffe ich hab das richtige Forum erwischt ![]()
PPS: auch aus dem beispiel http://openlayers.org/dev/examples/vector-formats.html werd ich nicht so wirklich schlau ... ![]()
Last edited by BigJo (2013-08-07 11:41:23)
Offline