Fix layers (optional)

This commit is contained in:
Victor Shcherb 2014-09-05 11:54:32 +02:00
parent 46fa585f5d
commit 59e3088011
3 changed files with 7 additions and 1 deletions

2
.gitignore vendored
View file

@ -1,5 +1,5 @@
*.render.xml
*.template_render.xml
*.render_template.xml
*.map_styles_presets.xml
routing*.xml
rendering_types.xml

View file

@ -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());
}
}
}

View file

@ -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());
}
}
}