diff --git a/vtm-playground/resources/assets/styles/poi_icons_16.png b/vtm-playground/resources/assets/icons/poi_icons_16.png similarity index 100% rename from vtm-playground/resources/assets/styles/poi_icons_16.png rename to vtm-playground/resources/assets/icons/poi_icons_16.png diff --git a/vtm-playground/resources/assets/styles/poi_icons_20.png b/vtm-playground/resources/assets/icons/poi_icons_20.png similarity index 100% rename from vtm-playground/resources/assets/styles/poi_icons_20.png rename to vtm-playground/resources/assets/icons/poi_icons_20.png diff --git a/vtm-playground/resources/assets/styles/poi_icons_24.png b/vtm-playground/resources/assets/icons/poi_icons_24.png similarity index 100% rename from vtm-playground/resources/assets/styles/poi_icons_24.png rename to vtm-playground/resources/assets/icons/poi_icons_24.png diff --git a/vtm-playground/resources/assets/styles/poi_icons_28.png b/vtm-playground/resources/assets/icons/poi_icons_28.png similarity index 100% rename from vtm-playground/resources/assets/styles/poi_icons_28.png rename to vtm-playground/resources/assets/icons/poi_icons_28.png diff --git a/vtm-playground/resources/assets/styles/poi_icons_32.png b/vtm-playground/resources/assets/icons/poi_icons_32.png similarity index 100% rename from vtm-playground/resources/assets/styles/poi_icons_32.png rename to vtm-playground/resources/assets/icons/poi_icons_32.png diff --git a/vtm-playground/resources/assets/styles/mapzen.xml b/vtm-playground/resources/assets/styles/mapzen.xml index 9c64ffe8..2866f9bd 100644 --- a/vtm-playground/resources/assets/styles/mapzen.xml +++ b/vtm-playground/resources/assets/styles/mapzen.xml @@ -2,7 +2,7 @@ version="1" xmlns="http://opensciencemap.org/rendertheme" xsi:schemaLocation="http://opensciencemap.org/rendertheme ../../rendertheme.xsd"> - + diff --git a/vtm-themes/resources/assets/styles/maki.png b/vtm-themes/icons/maki.png similarity index 100% rename from vtm-themes/resources/assets/styles/maki.png rename to vtm-themes/icons/maki.png diff --git a/vtm-themes/icons/maki.xml b/vtm-themes/icons/maki.xml new file mode 100644 index 00000000..c0b618d3 --- /dev/null +++ b/vtm-themes/icons/maki.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vtm-themes/icons/maki/atlas.xml b/vtm-themes/icons/maki/atlas.xml deleted file mode 100644 index ee786868..00000000 --- a/vtm-themes/icons/maki/atlas.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vtm-themes/resources/assets/styles/osm.png b/vtm-themes/icons/osm.png similarity index 100% rename from vtm-themes/resources/assets/styles/osm.png rename to vtm-themes/icons/osm.png diff --git a/vtm-themes/icons/osm.xml b/vtm-themes/icons/osm.xml new file mode 100644 index 00000000..9f768a2b --- /dev/null +++ b/vtm-themes/icons/osm.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vtm-themes/icons/osm/osm.xml b/vtm-themes/icons/osm/osm.xml deleted file mode 100644 index c8d7de76..00000000 --- a/vtm-themes/icons/osm/osm.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vtm-themes/resources/assets/styles/osmarender.png b/vtm-themes/icons/osmarender.png similarity index 100% rename from vtm-themes/resources/assets/styles/osmarender.png rename to vtm-themes/icons/osmarender.png diff --git a/vtm-themes/icons/osmarender.xml b/vtm-themes/icons/osmarender.xml new file mode 100644 index 00000000..c350c6cd --- /dev/null +++ b/vtm-themes/icons/osmarender.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vtm-themes/resources/assets/icons/osm.png b/vtm-themes/resources/assets/icons/osm.png new file mode 100644 index 00000000..463bb5c9 Binary files /dev/null and b/vtm-themes/resources/assets/icons/osm.png differ diff --git a/vtm-themes/resources/assets/icons/osmarender.png b/vtm-themes/resources/assets/icons/osmarender.png new file mode 100644 index 00000000..de48e3e5 Binary files /dev/null and b/vtm-themes/resources/assets/icons/osmarender.png differ diff --git a/vtm-themes/resources/assets/styles/default.xml b/vtm-themes/resources/assets/styles/default.xml index 8eb3681d..8fc29c84 100644 --- a/vtm-themes/resources/assets/styles/default.xml +++ b/vtm-themes/resources/assets/styles/default.xml @@ -110,8 +110,7 @@ - - + diff --git a/vtm-themes/resources/assets/styles/newtron.xml b/vtm-themes/resources/assets/styles/newtron.xml index e259881f..65345aa5 100644 --- a/vtm-themes/resources/assets/styles/newtron.xml +++ b/vtm-themes/resources/assets/styles/newtron.xml @@ -79,7 +79,7 @@ - + diff --git a/vtm-themes/resources/assets/styles/osmarender.xml b/vtm-themes/resources/assets/styles/osmarender.xml index b2c57ecc..f16ba96c 100644 --- a/vtm-themes/resources/assets/styles/osmarender.xml +++ b/vtm-themes/resources/assets/styles/osmarender.xml @@ -17,7 +17,7 @@ - + diff --git a/vtm-themes/resources/assets/styles/tronrender.xml b/vtm-themes/resources/assets/styles/tronrender.xml index ffab2733..9d13ba06 100644 --- a/vtm-themes/resources/assets/styles/tronrender.xml +++ b/vtm-themes/resources/assets/styles/tronrender.xml @@ -79,7 +79,7 @@ - + diff --git a/vtm/src/org/oscim/theme/XmlThemeBuilder.java b/vtm/src/org/oscim/theme/XmlThemeBuilder.java index 1655f609..a1ef55b0 100644 --- a/vtm/src/org/oscim/theme/XmlThemeBuilder.java +++ b/vtm/src/org/oscim/theme/XmlThemeBuilder.java @@ -74,9 +74,6 @@ public class XmlThemeBuilder extends DefaultHandler { private static final String ELEMENT_NAME_MATCH = "m"; private static final String UNEXPECTED_ELEMENT = "unexpected element: "; - //private static final String IMG_PATH = "styles/"; - private static final String IMG_PATH = ""; - private static final String LINE_STYLE = "L"; private static final String OUTLINE_STYLE = "O"; private static final String AREA_STYLE = "A"; @@ -558,7 +555,7 @@ public class XmlThemeBuilder extends DefaultHandler { } validateExists("img", img, elementName); - Bitmap bitmap = CanvasAdapter.getBitmapAsset(IMG_PATH + img); + Bitmap bitmap = CanvasAdapter.getBitmapAsset(img); mTextureAtlas = new TextureAtlas(bitmap); }