Add 'desert' rendering style to renderer registry

This commit is contained in:
xmd5a 2019-12-16 12:29:50 +03:00
parent 4fdafe87e2
commit 5a3ac3cfd5
2 changed files with 5 additions and 0 deletions

View file

@ -11,6 +11,7 @@
Thx - Hardy
-->
<string name="offroad_render_descr">For deserts and other sparsely populated areas.</string>
<string name="shared_string_downloading_formatted">Downloading %s</string>
<string name="distance_and_address">%1$s • %2$s</string>
<string name="street_city">%1$s, %2$s</string>

View file

@ -45,6 +45,7 @@ public class RendererRegistry {
public final static String OFFROAD_RENDER = "Offroad"; //$NON-NLS-1$
public final static String LIGHTRS_RENDER = "LightRS"; //$NON-NLS-1$
public final static String UNIRS_RENDER = "UniRS"; //$NON-NLS-1$
public final static String DESERT_RENDER = "Desert"; //$NON-NLS-1$
private RenderingRulesStorage defaultRender = null;
private RenderingRulesStorage currentSelectedRender = null;
@ -73,6 +74,7 @@ public class RendererRegistry {
internalRenderers.put(NAUTICAL_RENDER, "nautical" + ".render.xml");
internalRenderers.put(WINTER_SKI_RENDER, "skimap" + ".render.xml");
internalRenderers.put(OFFROAD_RENDER, "offroad" + ".render.xml");
internalRenderers.put(DESERT_RENDER, "desert" + ".render.xml");
}
public RenderingRulesStorage defaultRender() {
@ -305,6 +307,8 @@ public class RendererRegistry {
return ctx.getString(R.string.nautical_render_descr);
case OFFROAD_RENDER:
return ctx.getString(R.string.off_road_render_descr);
case DESERT_RENDER:
return ctx.getString(R.string.desert_render_descr);
}
return "";
}