From 59e30880113987b45c49b6e001bb293a91458474 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Fri, 5 Sep 2014 11:54:32 +0200 Subject: [PATCH] Fix layers (optional) --- .gitignore | 2 +- OsmAnd/src/net/osmand/plus/views/GPXLayer.java | 3 +++ OsmAnd/src/net/osmand/plus/views/RouteLayer.java | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 70b841100d..4715dba1ef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ *.render.xml -*.template_render.xml +*.render_template.xml *.map_styles_presets.xml routing*.xml rendering_types.xml diff --git a/OsmAnd/src/net/osmand/plus/views/GPXLayer.java b/OsmAnd/src/net/osmand/plus/views/GPXLayer.java index 3a2ec74c54..cd76613372 100644 --- a/OsmAnd/src/net/osmand/plus/views/GPXLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/GPXLayer.java @@ -151,6 +151,9 @@ public class GPXLayer extends OsmandMapLayer implements ContextMenuLayer.IContex shadowPaint.setColorFilter(cf); shadowPaint.setStrokeWidth(paint.getStrokeWidth() + 2 * rc.getComplexValue(req, rrs.PROPS.R_SHADOW_RADIUS)); } + } else { + System.err.println("Rendering attribute gpx is not found !"); + paint.setStrokeWidth(7 * view.getDensity()); } } } diff --git a/OsmAnd/src/net/osmand/plus/views/RouteLayer.java b/OsmAnd/src/net/osmand/plus/views/RouteLayer.java index 5c07bd4a10..42ebca8737 100644 --- a/OsmAnd/src/net/osmand/plus/views/RouteLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/RouteLayer.java @@ -106,6 +106,9 @@ public class RouteLayer extends OsmandMapLayer { shadowPaint.setColorFilter(cf); shadowPaint.setStrokeWidth(paint.getStrokeWidth() + 2 * rc.getComplexValue(req, rrs.PROPS.R_SHADOW_RADIUS)); } + } else { + System.err.println("Rendering attribute route is not found !"); + paint.setStrokeWidth(7 * view.getDensity()); } } }