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
ConstructorsConstructorDescriptionCoverageOverlay(Map<BoundingBox, Boolean> coverageTiles, org.mapsforge.core.graphics.GraphicFactory graphicFactory, int tileSize) -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(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
-
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:
drawin classorg.mapsforge.map.layer.Layer
-