Class MapsforgeMapView
java.lang.Object
slash.navigation.mapview.BaseMapView
slash.navigation.mapview.mapsforge.MapsforgeMapView
- All Implemented Interfaces:
PositionsSelectionModel,MapView
Implementation for a component that displays the positions of a position list on a map
using the rewrite branch of the mapsforge project.
- Author:
- Christian Pesch
-
Field Summary
Fields inherited from class slash.navigation.mapview.BaseMapView
CENTER_LATITUDE_PREFERENCE, CENTER_LONGITUDE_PREFERENCE, CENTER_ZOOM_PREFERENCE, CLEAN_ELEVATION_ON_MOVE_PREFERENCE, CLEAN_TIME_ON_MOVE_PREFERENCE, COMPLEMENT_DATA_PREFERENCE, COMPLEMENT_ELEVATION_ON_MOVE_PREFERENCE, COMPLEMENT_TIME_ON_MOVE_PREFERENCE, MOVE_COMPLETE_SELECTION_PREFERENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayer(org.mapsforge.map.layer.Layer layer) voidvoidaddObjectsWithLayer(List<? extends ObjectWithLayer> withLayers) List<org.mapsforge.core.model.LatLong> asLatLong(List<NavigationPosition> positions) org.mapsforge.core.model.LatLongasLatLong(NavigationPosition position) org.mapsforge.core.graphics.BitmapcreateWaypointIcon(String color, String opacity) voiddispose()protected floatorg.mapsforge.map.model.DisplayModelorg.mapsforge.map.view.MapViewintorg.mapsforge.map.layer.GroupLayervoidinitialize(PositionsModel positionsModel, PositionListsModel positionListsModel, MapPreferencesModel preferencesModel, MapViewCallback mapViewCallback) booleanbooleanvoidmovePosition(PositionWithLayer positionWithLayer, Double longitude, Double latitude) voidvoidremoveLayer(org.mapsforge.map.layer.Layer layer) voidresize()voidsetBackgroundMap(File backgroundMap) voidsetCenter(NavigationPosition position) voidsetMapsPath(String path) voidsetSelectedPositions(int[] selectedPositions, boolean replaceSelection) voidsetSelectedPositions(List<NavigationPosition> selectedPositions) voidsetThemesPath(String path) voidvoidshowCoverageOverlay(BoundingBox mapBoundingBox, String category, Map<BoundingBox, Boolean> coverageTiles) voidshowMapBorder(BoundingBox mapBoundingBox) voidshowPositionMagnifier(List<NavigationPosition> positions) void
-
Constructor Details
-
MapsforgeMapView
public MapsforgeMapView()
-
-
Method Details
-
setBackgroundMap
-
updateMapAndThemesAfterDirectoryScanning
public void updateMapAndThemesAfterDirectoryScanning() -
getDeviceScaleFactor
protected float getDeviceScaleFactor() -
createWaypointIcon
-
isDownload
public boolean isDownload() -
getMapIdentifier
-
getInitializationCause
-
dispose
public void dispose() -
getComponent
-
resize
public void resize() -
showAllPositions
public void showAllPositions() -
showPositionMagnifier
-
getDisplayModel
public org.mapsforge.map.model.DisplayModel getDisplayModel() -
addLayer
public void addLayer(org.mapsforge.map.layer.Layer layer) -
addLayers
-
addObjectsWithLayer
-
removeLayer
public void removeLayer(org.mapsforge.map.layer.Layer layer) -
getTileSize
public int getTileSize() -
asLatLong
-
getCenter
-
getBoundingBox
-
getMapView
public org.mapsforge.map.view.MapView getMapView() -
getTrackLayer
public org.mapsforge.map.layer.GroupLayer getTrackLayer() -
isSupportsPrinting
public boolean isSupportsPrinting() -
print
-
getMapsPath
-
setMapsPath
- Throws:
IOException
-
getThemesPath
-
setThemesPath
- Throws:
IOException
-
setSelectedPositions
public void setSelectedPositions(int[] selectedPositions, boolean replaceSelection) -
setSelectedPositions