Interface TileLayerFactory

All Known Implementing Classes:
DefaultTileLayerFactory

public interface TileLayerFactory
Creates the concrete mapsforge tile layers (TileRendererLayer, MBTiles, download and overlay layers with their tile caches) for the
invalid reference
MapsforgeMapView
.

Kept behind an interface so the layer-management orchestration (map switch, overlays, background) can be tested against a mock while this real construction - which needs map files, tile caches and network sources - stays isolated here.

Author:
Christian Pesch
  • Method Details

    • createLayerForMap

      org.mapsforge.map.layer.Layer createLayerForMap(LocalMap map)
    • createOverlayLayer

      org.mapsforge.map.layer.download.TileDownloadLayer createOverlayLayer(TileServer tileServer)
    • createBackgroundLayer

      org.mapsforge.map.layer.Layer createBackgroundLayer(File backgroundMap)