From f6fdb1871f10fbb90babe02e87b9e06b6c0aebf9 Mon Sep 17 00:00:00 2001 From: Holt59 Date: Sat, 24 Feb 2018 13:37:52 +0100 Subject: [PATCH] Switch back to Internal theme to avoid having resources. --- .classpath | 1 + src/main/org/insa/drawing/MapViewDrawing.java | 13 ++----------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.classpath b/.classpath index 668b23b..cde94a0 100644 --- a/.classpath +++ b/.classpath @@ -59,5 +59,6 @@ + diff --git a/src/main/org/insa/drawing/MapViewDrawing.java b/src/main/org/insa/drawing/MapViewDrawing.java index a217a44..dc57d98 100644 --- a/src/main/org/insa/drawing/MapViewDrawing.java +++ b/src/main/org/insa/drawing/MapViewDrawing.java @@ -4,7 +4,6 @@ import java.awt.Color; import java.awt.event.MouseAdapter; import java.awt.event.MouseWheelEvent; import java.io.File; -import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; @@ -40,8 +39,7 @@ import org.mapsforge.map.model.DisplayModel; import org.mapsforge.map.model.MapViewPosition; import org.mapsforge.map.model.Model; import org.mapsforge.map.reader.MapFile; -import org.mapsforge.map.rendertheme.ExternalRenderTheme; -import org.mapsforge.map.rendertheme.XmlRenderTheme; +import org.mapsforge.map.rendertheme.InternalRenderTheme; public class MapViewDrawing extends MapView implements Drawing { @@ -192,14 +190,7 @@ public class MapViewDrawing extends MapView implements Drawing { return true; } }; - XmlRenderTheme renderTheme = null; - try { - renderTheme = new ExternalRenderTheme("resources/assets/custom-theme.xml"); - } - catch (FileNotFoundException e) { - e.printStackTrace(); - } - tileRendererLayer.setXmlRenderTheme(renderTheme); + tileRendererLayer.setXmlRenderTheme(InternalRenderTheme.DEFAULT); return tileRendererLayer; }