Class CoverageOverlay

java.lang.Object
org.mapsforge.map.layer.Layer
slash.navigation.mapview.mapsforge.overlays.CoverageOverlay

public class CoverageOverlay extends org.mapsforge.map.layer.Layer
Paints a coverage overlay on the map canvas highlighting the parts of a map area that already have data downloaded. Uncovered areas are left undrawn.
Author:
Christian Pesch
  • Field Summary

    Fields inherited from class org.mapsforge.map.layer.Layer

    displayModel
  • Constructor Summary

    Constructors
    Constructor
    Description
    CoverageOverlay(Map<BoundingBox,Boolean> coverageTiles, org.mapsforge.core.graphics.GraphicFactory graphicFactory, int tileSize)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    draw(org.mapsforge.core.model.BoundingBox boundingBox, byte zoomLevel, org.mapsforge.core.graphics.Canvas canvas, org.mapsforge.core.model.Point topLeftPoint, org.mapsforge.core.model.Rotation rotation)
     

    Methods inherited from class org.mapsforge.map.layer.Layer

    getDisplayModel, getPosition, isVisible, onAdd, onDestroy, onLongPress, onRemove, onScroll, onTap, requestRedraw, setDisplayModel, setVisible, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CoverageOverlay

      public CoverageOverlay(Map<BoundingBox,Boolean> coverageTiles, org.mapsforge.core.graphics.GraphicFactory graphicFactory, int tileSize)
  • Method Details

    • draw

      public void draw(org.mapsforge.core.model.BoundingBox boundingBox, byte zoomLevel, org.mapsforge.core.graphics.Canvas canvas, org.mapsforge.core.model.Point topLeftPoint, org.mapsforge.core.model.Rotation rotation)
      Specified by:
      draw in class org.mapsforge.map.layer.Layer