display map magnifier as +/- fraction

This commit is contained in:
sonora 2013-10-29 00:26:45 +01:00
parent 2b13f732a8
commit ab578a454c

View file

@ -205,7 +205,9 @@ public class MapControlsLayer extends OsmandMapLayer {
String zoomText = tb.getZoom() + ""; String zoomText = tb.getZoom() + "";
float frac = tb.getZoomScale(); float frac = tb.getZoomScale();
if (frac != 0) { if (frac != 0) {
zoomText += ":"; if (frac > 0) {
zoomText += "+";
}
int ifrac = ((int) frac); int ifrac = ((int) frac);
if (frac >= 1) { if (frac >= 1) {
zoomText += ifrac; zoomText += ifrac;