From 183d4301106286b6bf154974a9f1f8b3e3807039 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 30 Mar 2015 23:26:48 +0200 Subject: [PATCH] Disable layer < 3 --- OsmAnd/src/net/osmand/plus/views/PointLocationLayer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/views/PointLocationLayer.java b/OsmAnd/src/net/osmand/plus/views/PointLocationLayer.java index 1cbe8f5698..ae0feb5746 100644 --- a/OsmAnd/src/net/osmand/plus/views/PointLocationLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/PointLocationLayer.java @@ -76,6 +76,9 @@ public class PointLocationLayer extends OsmandMapLayer { @Override public void onDraw(Canvas canvas, RotatedTileBox box, DrawSettings nightMode) { + if(box.getZoom() < 3) { + return; + } // draw boolean nm = nightMode != null && nightMode.isNightMode(); if(nm != this.nm) {