You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
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 big_smile

PPS: auch aus dem beispiel http://openlayers.org/dev/examples/vector-formats.html werd ich nicht so wirklich schlau ... sad

Last edited by BigJo (2013-08-07 11:41:23)

Offline

Board footer

Powered by FluxBB