Open GoogleCodeExporter opened 8 years ago
Which RoadManager are you using?
Could you provide also the piece of code doing the call?
Nothing in the logcat?
Original comment by mathieu....@gmail.com
on 7 Jan 2015 at 10:07
Both OSRM and google results the same, I even used MapQuest and still no luck
you may check my code in the attachments
Nothing in the logcat, except that I can see that different start and end point
result into different polyline.getNumberofPoints()
Also the Nodes appears to be ok on the OSRM although they are not ok on google!
specially near the end, they get close together and also the last point wont be
shown
thanks in advance
Original comment by mu.aliza...@gmail.com
on 7 Jan 2015 at 11:50
Attachments:
I found the reason,
the reason was that to enlarge the font size of the maps I used this custom
XYTileSource:
map.setTileSource(new XYTileSource("Google Terrian",
ResourceProxy.string.bing, 10, 17, 512, ".jpg", new String[] {
"http://otile1.mqcdn.com/tiles/1.0.0/map/",
"http://otile2.mqcdn.com/tiles/1.0.0/map/",
"http://otile3.mqcdn.com/tiles/1.0.0/map/",
"http://otile4.mqcdn.com/tiles/1.0.0/map/"}));
in which I had changed the aTileSizePixel to 512, while my tiles were in fact
256x256 ... this helped me to show tiles bigger and hence bigger font size, the
latitude and longitude were alright as I could set points by myself on the map
in exact location, also the route Nodes were alright, the route Polyline itself
however was not, I guess it had been loaded in a different location which was
not in the view I had checked.
Anyway, I suggest that, you change the method in which you dray the polyline on
the map to be similar to the method which nodes are drawn on the map so the
location would be alright and also we can use this hack (entering 512 instead
of 256) and the font size would be ok.
thanks
Original comment by mu.aliza...@gmail.com
on 11 Jan 2015 at 10:05
Thanks a lot for this feedback. I will investigate for the solution.
Original comment by mathieu....@gmail.com
on 11 Jan 2015 at 5:59
I tried in OSMNavigator (the demo app), changing this piece of code in
MapActivity.java (line 166):
MAPBOXSATELLITELABELLED = new MapBoxTileSource("MapBoxSatelliteLabelled", ResourceProxy.string.mapquest_aerial, 1, 19, 512, ".png");
It worked fine! The route polyline was drawn from start to destination markers,
exactly as expected.
There should be an other issue somewhere.
(BTW, your hack is excellent, greater labels being easier to read)
Original comment by mathieu....@gmail.com
on 14 Jan 2015 at 10:18
Mapquest tiles are not good eblnough for me so I use google tiles woth
XYTilesource and jpg format for reducing the size of offline data
Perhaps there is a difference being made here
Original comment by mu.aliza...@gmail.com
on 15 Jan 2015 at 5:17
Original issue reported on code.google.com by
mu.aliza...@gmail.com
on 6 Jan 2015 at 12:55