clear map after theme change

This commit is contained in:
Hannes Janetzek 2013-08-04 14:40:10 +02:00
parent 4eb9b9a3be
commit fb6765ef0c

View File

@ -32,7 +32,6 @@ import org.oscim.theme.InternalRenderTheme;
import org.oscim.theme.ThemeLoader; import org.oscim.theme.ThemeLoader;
import org.oscim.tilesource.TileSource; import org.oscim.tilesource.TileSource;
import org.oscim.utils.async.AsyncExecutor; import org.oscim.utils.async.AsyncExecutor;
import org.oscim.utils.async.AsyncTask;
public abstract class MapView { public abstract class MapView {
@ -96,6 +95,8 @@ public abstract class MapView {
} }
mBaseLayer.setRenderTheme(t); mBaseLayer.setRenderTheme(t);
GLRenderer.setBackgroundColor(t.getMapBackground()); GLRenderer.setBackgroundColor(t.getMapBackground());
clearMap();
} }
public void destroy() { public void destroy() {