Skip to content
Permalink
Browse files

Remove obsolete MapViewPosition2

  • Loading branch information...
devemux86 committed Jun 27, 2019
1 parent 933cf10 commit 12b966ff8691f7e6a112173585b548657673e02f
@@ -24,11 +24,6 @@
*/
public static boolean ANTI_ALIASING = true;

/**
* If true the <code>MapViewPosition2</code> will be used instead of default <code>MapViewPosition</code>.
*/
public static boolean MAP_VIEW_POSITION2 = false;

/**
* Maximum buffer size for map files.
*/

This file was deleted.

@@ -1,7 +1,7 @@
/*
* Copyright 2010, 2011, 2012, 2013 mapsforge.org
* Copyright 2014 Ludwig M Brinckmann
* Copyright 2018 devemux86
* Copyright 2018-2019 devemux86
*
* This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
@@ -16,23 +16,14 @@
*/
package org.mapsforge.map.model;

import org.mapsforge.core.util.Parameters;
import org.mapsforge.map.model.common.Persistable;
import org.mapsforge.map.model.common.PreferencesFacade;

public class Model implements Persistable {
public final DisplayModel displayModel = new DisplayModel();
public final FrameBufferModel frameBufferModel = new FrameBufferModel();
public final MapViewDimension mapViewDimension = new MapViewDimension();
public final IMapViewPosition mapViewPosition;

public Model() {
if (Parameters.MAP_VIEW_POSITION2) {
mapViewPosition = new MapViewPosition2(displayModel);
} else {
mapViewPosition = new MapViewPosition(displayModel);
}
}
public final IMapViewPosition mapViewPosition = new MapViewPosition(displayModel);

@Override
public void init(PreferencesFacade preferencesFacade) {
@@ -124,9 +124,6 @@
<activity
android:name=".LongPressAction"
android:configChanges="keyboardHidden|orientation|screenSize" />
<activity
android:name=".MapViewPosition2Viewer"
android:configChanges="keyboardHidden|orientation|screenSize" />
<activity
android:name=".MoveAnimation"
android:configChanges="keyboardHidden|orientation|screenSize" />

This file was deleted.

@@ -185,7 +185,6 @@ public void onClick(DialogInterface dialog, int which) {
linearLayout.addView(createButton(HillshadingCompareMapViewer.class));
linearLayout.addView(createButton(ReverseGeocodeViewer.class));
linearLayout.addView(createButton(NightModeViewer.class));
linearLayout.addView(createButton(MapViewPosition2Viewer.class));
linearLayout.addView(createButton(RenderThemeChanger.class));
linearLayout.addView(createButton(TileSizeChanger.class));
linearLayout.addView(createButton(StackedLayersMapViewer.class));

0 comments on commit 12b966f

Please sign in to comment.
You can’t perform that action at this time.