From 2bc4443e4adf27674832cce536a9da72654568f9 Mon Sep 17 00:00:00 2001 From: Alexey Pelykh Date: Tue, 10 Feb 2015 15:54:29 +0200 Subject: [PATCH] Victor request --- .../src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java b/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java index e4afceea53..92506eff5e 100644 --- a/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java +++ b/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java @@ -116,7 +116,7 @@ public class OsmandRasterMapsPlugin extends OsmandPlugin { if(!Algorithms.objectEquals(overlay, layer.getMap())){ if(overlay == null){ mapView.removeLayer(layer); - } else { + } else if (mapView.getMapRenderer() == null) { mapView.addLayer(layer, layerOrder); } layer.setMap(overlay);