kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
removed unused weather layer for future use
rodzic
25ea4bddb8
commit
3c701ea17a
|
@ -506,22 +506,25 @@ class MapFragment : ScreenFragment("Map"), Logging, View.OnClickListener {
|
|||
createLatLongGrid(false)
|
||||
map.overlayManager.addAll(nodeLayer, nodePositions)
|
||||
map.overlayManager.addAll(nodeLayer, wayPoints)
|
||||
if (map.tileProvider.tileSource.name()
|
||||
.equals(CustomTileSource.getTileSource("ESRI World TOPO").name())
|
||||
) {
|
||||
val layer = TilesOverlay(
|
||||
MapTileProviderBasic(
|
||||
activity,
|
||||
CustomTileSource.OPENWEATHER_RADAR
|
||||
), context
|
||||
)
|
||||
layer.loadingBackgroundColor = Color.TRANSPARENT
|
||||
layer.loadingLineColor = Color.TRANSPARENT
|
||||
map.overlayManager.add(layer)
|
||||
}
|
||||
map.invalidate()
|
||||
}
|
||||
|
||||
// private fun addWeatherLayer() {
|
||||
// if (map.tileProvider.tileSource.name()
|
||||
// .equals(CustomTileSource.getTileSource("ESRI World TOPO").name())
|
||||
// ) {
|
||||
// val layer = TilesOverlay(
|
||||
// MapTileProviderBasic(
|
||||
// activity,
|
||||
// CustomTileSource.OPENWEATHER_RADAR
|
||||
// ), context
|
||||
// )
|
||||
// layer.loadingBackgroundColor = Color.TRANSPARENT
|
||||
// layer.loadingLineColor = Color.TRANSPARENT
|
||||
// map.overlayManager.add(layer)
|
||||
// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* Adds copyright to map depending on what source is showing
|
||||
*/
|
||||
|
|
Ładowanie…
Reference in New Issue