mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
removed unused variables and imports
This commit is contained in:
parent
426bde986a
commit
18d9541d9b
2 changed files with 3 additions and 7 deletions
|
|
@ -35,6 +35,9 @@ class CustomTileSource {
|
|||
val USGS_SAT: OnlineTileSourceBase = TileSourceFactory.USGS_SAT
|
||||
val DEFAULT_TILE_SOURCE: OnlineTileSourceBase = TileSourceFactory.DEFAULT_TILE_SOURCE
|
||||
|
||||
/**
|
||||
* The order in this list must match that in the arrays.xml under map_styles
|
||||
*/
|
||||
val mTileSources: List<ITileSource> =
|
||||
listOf(MAPNIK, USGS_TOPO, USGS_SAT, ESRI_IMAGERY)
|
||||
|
||||
|
|
|
|||
|
|
@ -25,11 +25,8 @@ import org.osmdroid.api.IMapController
|
|||
import org.osmdroid.config.Configuration
|
||||
import org.osmdroid.tileprovider.tilesource.ITileSource
|
||||
import org.osmdroid.tileprovider.tilesource.OnlineTileSourceBase
|
||||
import org.osmdroid.tileprovider.tilesource.TileSourceFactory
|
||||
import org.osmdroid.tileprovider.tilesource.TileSourcePolicy
|
||||
import org.osmdroid.util.BoundingBox
|
||||
import org.osmdroid.util.GeoPoint
|
||||
import org.osmdroid.util.MapTileIndex
|
||||
import org.osmdroid.views.CustomZoomButtonsController
|
||||
import org.osmdroid.views.MapView
|
||||
import org.osmdroid.views.overlay.CopyrightOverlay
|
||||
|
|
@ -44,14 +41,10 @@ class MapFragment : ScreenFragment("Map"), Logging {
|
|||
private lateinit var mPrefs: SharedPreferences
|
||||
private val model: UIViewModel by activityViewModels()
|
||||
|
||||
private lateinit var esriTileSource: OnlineTileSourceBase
|
||||
|
||||
private val defaultMinZoom = 1.5
|
||||
private val nodeZoomLevel = 8.5
|
||||
private val defaultZoomSpeed = 3000L
|
||||
private val prefsName = "org.andnav.osm.prefs"
|
||||
private val prefsZoomLevelDouble = "prefsZoomLevelDouble"
|
||||
private val prefsTileSource = "prefsTileSource"
|
||||
private val mapStyleId = "map_style_id"
|
||||
private val uiPrefs = "ui-prefs"
|
||||
private var nodePositions = listOf<Marker>()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue