From ee4f71b84feeb040aa908efa4d220e24140148c0 Mon Sep 17 00:00:00 2001 From: xmd5a Date: Sun, 5 Jul 2015 00:23:25 +0300 Subject: [PATCH] Try to add currentTrackWidth support (used in UniRS) --- OsmAnd/src/net/osmand/plus/views/GPXLayer.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/views/GPXLayer.java b/OsmAnd/src/net/osmand/plus/views/GPXLayer.java index 63980af991..2a5324a5e7 100644 --- a/OsmAnd/src/net/osmand/plus/views/GPXLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/GPXLayer.java @@ -150,6 +150,13 @@ public class GPXLayer extends OsmandMapLayer implements ContextMenuLayer.IContex req.setStringFilter(ctColor, p.get()); } } + CommonPreference p2 = view.getSettings().getCustomRenderProperty("currentTrackWidth"); + if(p2 != null && p2.isSet()) { + RenderingRuleProperty ctWidth = rrs.PROPS.get("currentTrackWidth"); + if(ctWidth != null) { + req.setStringFilter(ctWidth, p2.get()); + } + } String additional = ""; if (routePoints) { additional = "routePoints=true";