File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
vtm-playground/src/org/oscim/test Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 1717 */
1818package org .oscim .test ;
1919
20+ import com .badlogic .gdx .Input ;
2021import org .mapsforge .map .awt .graphics .AwtGraphicFactory ;
2122import org .mapsforge .map .layer .hills .AdaptiveClasyHillShading ;
2223import org .mapsforge .map .layer .hills .DemFolderFS ;
@@ -154,6 +155,19 @@ public void dispose() {
154155 super .dispose ();
155156 }
156157
158+ @ Override
159+ protected boolean onKeyDown (int keycode ) {
160+ if (keycode == Input .Keys .F5 ) {
161+ if (themeFile != null ) {
162+ mMap .setTheme (new ExternalRenderTheme (themeFile .getAbsolutePath ()));
163+ mMap .clearMap ();
164+ }
165+ return true ;
166+ }
167+
168+ return false ;
169+ }
170+
157171 static File getDemFolder (String [] args ) {
158172 if (args .length == 0 ) {
159173 throw new IllegalArgumentException ("missing argument: <mapFile>" );
You can’t perform that action at this time.
0 commit comments