implement moreDetail switch (3)
This commit is contained in:
parent
547ee918fe
commit
27681345d7
1 changed files with 8 additions and 8 deletions
|
@ -713,7 +713,7 @@ public class OsmandRenderer {
|
||||||
rc.second.emptyLine();
|
rc.second.emptyLine();
|
||||||
rc.main.color = Color.rgb(245, 245, 245);
|
rc.main.color = Color.rgb(245, 245, 245);
|
||||||
|
|
||||||
boolean rendered = render.renderPolygon(tag, value, rc.zoom, rc, this, rc.nightMode);
|
boolean rendered = render.renderPolygon(tag, value, rc.zoom, rc, this, rc.nightMode, rc.moreDetail);
|
||||||
if(!rendered){
|
if(!rendered){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -766,7 +766,7 @@ public class OsmandRenderer {
|
||||||
rc.second.emptyLine();
|
rc.second.emptyLine();
|
||||||
// rc.main.color = Color.rgb(245, 245, 245);
|
// rc.main.color = Color.rgb(245, 245, 245);
|
||||||
|
|
||||||
boolean rendered = render.renderPolygon(pair.tag, pair.value, zoom, rc, this, rc.nightMode);
|
boolean rendered = render.renderPolygon(pair.tag, pair.value, zoom, rc, this, rc.nightMode, rc.moreDetail);
|
||||||
if(!rendered){
|
if(!rendered){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -820,13 +820,13 @@ public class OsmandRenderer {
|
||||||
|
|
||||||
if (ref != null && ref.trim().length() > 0) {
|
if (ref != null && ref.trim().length() > 0) {
|
||||||
rc.clearText();
|
rc.clearText();
|
||||||
ref = render.renderObjectText(ref, pair.tag, pair.value, rc, true, rc.nightMode);
|
ref = render.renderObjectText(ref, pair.tag, pair.value, rc, true, rc.nightMode, rc.moreDetail);
|
||||||
TextDrawInfo text = new TextDrawInfo(ref);
|
TextDrawInfo text = new TextDrawInfo(ref);
|
||||||
text.fillProperties(rc, xText, yText);
|
text.fillProperties(rc, xText, yText);
|
||||||
rc.textToDraw.add(text);
|
rc.textToDraw.add(text);
|
||||||
|
|
||||||
}
|
}
|
||||||
name = render.renderObjectText(name, pair.tag, pair.value, rc, false, rc.nightMode);
|
name = render.renderObjectText(name, pair.tag, pair.value, rc, false, rc.nightMode, rc.moreDetail);
|
||||||
if (rc.textSize > 0 && name != null) {
|
if (rc.textSize > 0 && name != null) {
|
||||||
TextDrawInfo info = new TextDrawInfo(name);
|
TextDrawInfo info = new TextDrawInfo(name);
|
||||||
info.fillProperties(rc, xText, yText);
|
info.fillProperties(rc, xText, yText);
|
||||||
|
@ -840,7 +840,7 @@ public class OsmandRenderer {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Integer resId = render.getPointIcon(pair.tag, pair.value, rc.zoom, rc.nightMode);
|
Integer resId = render.getPointIcon(pair.tag, pair.value, rc.zoom, rc.nightMode, rc.moreDetail);
|
||||||
String name = null;
|
String name = null;
|
||||||
if (renderText) {
|
if (renderText) {
|
||||||
name = obj.getName();
|
name = obj.getName();
|
||||||
|
@ -888,7 +888,7 @@ public class OsmandRenderer {
|
||||||
rc.second.emptyLine();
|
rc.second.emptyLine();
|
||||||
rc.third.emptyLine();
|
rc.third.emptyLine();
|
||||||
rc.adds = null;
|
rc.adds = null;
|
||||||
boolean res = render.renderPolyline(pair.tag, pair.value, rc.zoom, rc, this, layer, rc.nightMode);
|
boolean res = render.renderPolyline(pair.tag, pair.value, rc.zoom, rc, this, layer, rc.nightMode, rc.moreDetail);
|
||||||
if(rc.main.strokeWidth == 0 || !res){
|
if(rc.main.strokeWidth == 0 || !res){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -973,7 +973,7 @@ public class OsmandRenderer {
|
||||||
}
|
}
|
||||||
if(ref != null && ref.trim().length() > 0){
|
if(ref != null && ref.trim().length() > 0){
|
||||||
rc.clearText();
|
rc.clearText();
|
||||||
ref = render.renderObjectText(ref, pair.tag, pair.value, rc, true, rc.nightMode);
|
ref = render.renderObjectText(ref, pair.tag, pair.value, rc, true, rc.nightMode, rc.moreDetail);
|
||||||
TextDrawInfo text = new TextDrawInfo(ref);
|
TextDrawInfo text = new TextDrawInfo(ref);
|
||||||
text.fillProperties(rc, middlePoint.x, middlePoint.y);
|
text.fillProperties(rc, middlePoint.x, middlePoint.y);
|
||||||
text.pathRotate = pathRotate;
|
text.pathRotate = pathRotate;
|
||||||
|
@ -983,7 +983,7 @@ public class OsmandRenderer {
|
||||||
|
|
||||||
if(name != null && name.trim().length() > 0){
|
if(name != null && name.trim().length() > 0){
|
||||||
rc.clearText();
|
rc.clearText();
|
||||||
name = render.renderObjectText(name, pair.tag, pair.value, rc, false, rc.nightMode);
|
name = render.renderObjectText(name, pair.tag, pair.value, rc, false, rc.nightMode, rc.moreDetail);
|
||||||
if (rc.textSize > 0) {
|
if (rc.textSize > 0) {
|
||||||
TextDrawInfo text = new TextDrawInfo(name);
|
TextDrawInfo text = new TextDrawInfo(name);
|
||||||
if (!rc.showTextOnPath) {
|
if (!rc.showTextOnPath) {
|
||||||
|
|
Loading…
Reference in a new issue