Interface MapViewLayerOperations
public interface MapViewLayerOperations
The narrow set of
operations that extracted overlay painters
(border, magnifier) need: coordinate conversion, layer add/remove and centering. Kept
as an interface so those painters can be unit-tested against a mock instead of a live map.
invalid reference
MapsforgeMapView
- Author:
- Christian Pesch
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayer(org.mapsforge.map.layer.Layer layer) voidList<org.mapsforge.core.model.LatLong> asLatLong(List<NavigationPosition> positions) org.mapsforge.core.model.LatLongasLatLong(NavigationPosition position) voidcenterAndZoom(BoundingBox mapBoundingBox, BoundingBox routeBoundingBox, boolean alwaysZoom, boolean alwaysRecenter) intvoidremoveLayer(org.mapsforge.map.layer.Layer layer) voidremoveLayers(List<org.mapsforge.map.layer.Layer> layers)
-
Method Details
-
getTileSize
int getTileSize() -
asLatLong
-
addLayer
void addLayer(org.mapsforge.map.layer.Layer layer) -
addLayers
-
removeLayer
void removeLayer(org.mapsforge.map.layer.Layer layer) -
removeLayers
-
getRouteBoundingBox
BoundingBox getRouteBoundingBox()
-