This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Drawing a gpx in my mapsforge

0

Hello, I want to draw a bus route in my map, but I don't like the normal way where I need to add all the GeoPoints. I have my route in a gpx and it exists drawn in OpenStreetMap too. Could I draw it the other easier way?

Thanks a lot

asked 08 Jan '14, 23:01

marioerro's gravatar image

marioerro
1222
accept rate: 0%

edited 09 Jan '14, 09:38

iii's gravatar image

iii
4.9k84082

1

Did you already tried to parse the GPX and add the points to an overlay? https://stackoverflow.com/questions/16708071/draw-overlayways-with-mapsforge

(09 Jan '14, 09:40) iii

Yes, but there are a lot of points, I'm looking for a easier way. Thanks for your response

(09 Jan '14, 12:54) marioerro

Hmm but the amount of points shouldn't be a problem if Mapsforge itself uses spatial structures to organize the data you add to the layer. Also they should provide an begin/end update-methods so the redraw doesn't trigger while you add the data point by point ... (but I don't have any experience on this framework, sry)

(09 Jan '14, 14:55) iii

Source code available on GitHub .