Fix layers (optional)
This commit is contained in:
parent
46fa585f5d
commit
59e3088011
3 changed files with 7 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,5 @@
|
||||||
*.render.xml
|
*.render.xml
|
||||||
*.template_render.xml
|
*.render_template.xml
|
||||||
*.map_styles_presets.xml
|
*.map_styles_presets.xml
|
||||||
routing*.xml
|
routing*.xml
|
||||||
rendering_types.xml
|
rendering_types.xml
|
||||||
|
|
|
@ -151,6 +151,9 @@ public class GPXLayer extends OsmandMapLayer implements ContextMenuLayer.IContex
|
||||||
shadowPaint.setColorFilter(cf);
|
shadowPaint.setColorFilter(cf);
|
||||||
shadowPaint.setStrokeWidth(paint.getStrokeWidth() + 2 * rc.getComplexValue(req, rrs.PROPS.R_SHADOW_RADIUS));
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,6 +106,9 @@ public class RouteLayer extends OsmandMapLayer {
|
||||||
shadowPaint.setColorFilter(cf);
|
shadowPaint.setColorFilter(cf);
|
||||||
shadowPaint.setStrokeWidth(paint.getStrokeWidth() + 2 * rc.getComplexValue(req, rrs.PROPS.R_SHADOW_RADIUS));
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue