Add description to routing data
This commit is contained in:
parent
2d3e04c928
commit
fb999ec947
2 changed files with 10 additions and 0 deletions
|
@ -9,6 +9,8 @@
|
||||||
1. All your modified/created strings are in the top of the file (to make easier find what's translated).
|
1. All your modified/created strings are in the top of the file (to make easier find what's translated).
|
||||||
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
|
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
<string name="local_index_routing_data">Routing data</string>
|
||||||
<string name="offline_navigation_not_available">Osmand offline navigation is temporarily not available.</string>
|
<string name="offline_navigation_not_available">Osmand offline navigation is temporarily not available.</string>
|
||||||
<string name="left_side_navigation">Left-Hand Driving</string>
|
<string name="left_side_navigation">Left-Hand Driving</string>
|
||||||
<string name="left_side_navigation_descr">Select for countries with left-hand traffic</string>
|
<string name="left_side_navigation_descr">Select for countries with left-hand traffic</string>
|
||||||
|
|
|
@ -25,6 +25,7 @@ import net.osmand.binary.BinaryMapIndexReader;
|
||||||
import net.osmand.binary.BinaryMapIndexReader.MapIndex;
|
import net.osmand.binary.BinaryMapIndexReader.MapIndex;
|
||||||
import net.osmand.binary.BinaryMapIndexReader.MapRoot;
|
import net.osmand.binary.BinaryMapIndexReader.MapRoot;
|
||||||
import net.osmand.binary.BinaryMapPoiReaderAdapter.PoiRegion;
|
import net.osmand.binary.BinaryMapPoiReaderAdapter.PoiRegion;
|
||||||
|
import net.osmand.binary.BinaryMapRouteReaderAdapter.RouteRegion;
|
||||||
import net.osmand.binary.BinaryMapTransportReaderAdapter.TransportIndex;
|
import net.osmand.binary.BinaryMapTransportReaderAdapter.TransportIndex;
|
||||||
import net.osmand.data.IndexConstants;
|
import net.osmand.data.IndexConstants;
|
||||||
import net.osmand.map.TileSourceManager;
|
import net.osmand.map.TileSourceManager;
|
||||||
|
@ -376,6 +377,13 @@ public class LocalIndexHelper {
|
||||||
String box = formatLatLonBox(mi.getLeftLongitude(), mi.getRightLongitude(),
|
String box = formatLatLonBox(mi.getLeftLongitude(), mi.getRightLongitude(),
|
||||||
mi.getTopLatitude(), mi.getBottomLatitude());
|
mi.getTopLatitude(), mi.getBottomLatitude());
|
||||||
builder.append(box).append("\n");
|
builder.append(box).append("\n");
|
||||||
|
} else if(part instanceof RouteRegion){
|
||||||
|
RouteRegion mi = ((RouteRegion) part);
|
||||||
|
builder.append(app.getString(R.string.local_index_routing_data)).append(": ").
|
||||||
|
append(mi.getName()).append("\n");
|
||||||
|
String box = formatLatLonBox(mi.getLeftLongitude(), mi.getRightLongitude(),
|
||||||
|
mi.getTopLatitude(), mi.getBottomLatitude());
|
||||||
|
builder.append(box).append("\n");
|
||||||
} else if(part instanceof TransportIndex){
|
} else if(part instanceof TransportIndex){
|
||||||
TransportIndex mi = ((TransportIndex) part);
|
TransportIndex mi = ((TransportIndex) part);
|
||||||
int sh = (31 - BinaryMapIndexReader.TRANSPORT_STOP_ZOOM);
|
int sh = (31 - BinaryMapIndexReader.TRANSPORT_STOP_ZOOM);
|
||||||
|
|
Loading…
Reference in a new issue