MapsForgeTileProvider
Comment:
- MapsForgeTileProvider enables you to render a MapsForge map database file on a GoogleMap.
The GoogleMapsExtras library is required in order to use MapsForgeTileProvider.
MapDatabase
Methods:
- CloseFile
Closes the map file and destroys all internal caches.
- HasOpenFile As Boolean
Returns True if a map file is currently opened, False otherwise.
- IsInitialized As Boolean
Properties:
- MapFileInfo As MapFileInfo [read only]
MapFileInfo
Methods:
Properties:
- Comment As String [read only]
Get the comment field of the map database.
The comment field can be set when the map database is created.
It may not have been set, in which case this method will return an empty String "".
- CreatedBy As String [read only]
Get the created by field of the map database.
The created by field can be set when the map database is created.
It may not have been set, in which case this method will return an empty String "".
- FileSize As Long [read only]
Get the size of the map database, measured in bytes.
- FileVersion As Int [read only]
Get the file version of the map database.
- LanguagePreference As String [read only]
Get the preferred language for names as defined in ISO 3166-1.
The preferred language for names can be set when the map database is created.
It may not have been set, in which case this method will return an empty String "".
- LatLngBounds As LatLngBounds [read only]
Get the area covered by the map database file as a LatLngBounds object.
- MapDate As Long [read only]
Get the date of the map database in milliseconds since January 1, 1970.
- PoiTags() As Tag [read only]
Get the POI Tags from the map database.
- StartLatLng As LatLngWrapper [read only]
Get the map database start position.
The start position can be set when the map database is created.
It may not have been set, in which case this method will return a LatLng that is NOT initialized.
- StartZoomLevel As Int [read only]
Get the map start zoom level
The start zoom can be set when the map database is created.
It may not have been set, in which case this method will return a value of -1.
- WayTags() As Tag [read only]
Get the way Tags from the map database.
MapsForgeTileProvider
Methods:
- GetMapsForgeTileProviderOptions As MapsForgeTileProviderOptions
Gets the MapsForgeTileProviderOptions that will be used when the MapsForgeTileProvider Initialize method is called.
- Initialize
Initialize the MapsForgeTileProvider.
You must have set any MapsForgeTileProviderOptions required options before calling Initialize.
- IsInitialized As Boolean
- SetNoTileTile (NoTileTile As Tile)
Sets a Tile to be used when there is no tile available from the MapsForge map database.
Pass Null to restore the default 'no tile' tile.
- SetTextScale (TextScale As Float)
Sets the text scale.
Default value is 1.
Properties:
- MapDatabase As MapDatabase [read only]
MapsForgeTileProviderOptions
Fields:
- BITMAP_CONFIG_ARGB_8888 As Config
Each pixel is stored on 4 bytes.
Each channel (RGB and alpha for translucency) is stored with 8 bits of precision.
- BITMAP_CONFIG_RGB_565 As Config
Each pixel is stored on 2 bytes and only the RGB channels are encoded.
Methods:
- SetBitmapConfig (BitmapConfig As Config) As MapsForgeTileProviderOptions
Optionally set the Bitmap.Config for the rendered tiles.
Default value is BITMAP_CONFIG_RGB_565.
- SetDebugSettings (DrawTileCoordinates As Boolean, DrawTileFrames As Boolean, HighlightWaterTiles As Boolean) As MapsForgeTileProviderOptions
Optionally set the DebugSettings.
Default values are:
DrawTileCoordinates - False.
DrawTileFrames - False.
HighlightWaterTiles - False.
- SetMapDatabaseFile (Dir As String, FileName As String) As MapsForgeTileProviderOptions
Set the path to the MapsForge map database file.
- SetNoTileTile (NoTileTile As Tile) As MapsForgeTileProviderOptions
Optionally set the Tile to be used when there is no tile available from the MapsForge map database.
- SetRenderTheme (InputStream1 As InputStream) As MapsForgeTileProviderOptions
Optionally set a custom RenderTheme to be used to render tiles.
Default value is Null which means that the built in default RenderTheme will be used.
- SetTextScale (TextScale As Float) As MapsForgeTileProviderOptions
Optionally set the text scale.
Default value is 1.
Tag
Methods:
- Equals (Tag1 As Tag) As Boolean
- IsInitialized As Boolean
Properties:
- Key As String [read only]
- Value As String [read only]