Hi! Me again.
Can you please make it active again?
http://b4a.martinpearman.co.uk/osmdroid/MapsForgeTileSource.zip
Its no longer there. I pressume you already deleted it.
Thanks again.
HI, GREETINGS, MARTIN
I CHECK YOUR MAPSFORGE EXAMPLE :
WHAT IS THE IDEA TO SavedMapStateFileName (map_state.dat)
IF NECESSARY TO 100 PERCENT, I SAY YOU BECAUSE NOT PUT THIS AND THE EXAMPLE STILL WORKS WELL
THANKS
<rendertheme xsi:schemaLocation="http://mapsforge.org/renderTheme ../renderTheme.xsd" version="1" map-background="#f8f8f8">
Hi Martin,MapsForgeTileSource updated to version 1.10
Completely incomapatible with code written using the previous version but much more configurable:
OSMDroid_3_0_8_MapsForgeTileSource
Comment: MapsForgeTileSource enables you to render a MapsForge map database file as a TileSource on an OSMDroid MapView.
Version: 1.10
- MapDatabase
Methods:Properties:
- IsInitialized As Boolean
- MapFileInfo As MapFileInfo [read only]
- MapFileInfo
Methods:Properties:
- IsInitialized As Boolean
- BoundingBox As BoundingBoxE6Wrapper [read only]
Get the bounding box of the area covered by the map database file.- 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 "".- 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.- StartPosition As GeoPointWrapper [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 GeoPoint 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.- MapsForgeTileSource
Methods:Properties:
- GetMapsForgeTileSourceOptions As MapsForgeTileSourceOptions
Gets the MapsForgeTileSourceOptions that will be used when the MapsForgeTileSource Initialize method is called.- Initialize
Initialize the MapsForgeTileSource.
You must have set any MapsForgeTileSourceOptions required options before calling Initialize.- IsInitialized As Boolean
- SetTextScale (TextScale As Float)
Sets the text scale.
Default value is 1.
- MapDatabase As MapDatabase [read only]
- MapsForgeTileSourceOptions
Methods:
- SetDebugSettings (DrawTileCoordinates As Boolean, DrawTileFrames As Boolean, HighlightWaterTiles As Boolean) As MapsForgeTileSourceOptions
Optionally set the DebugSettings.
Default values are:
DrawTileCoordinates - False.
DrawTileFrames - False.
HighlightWaterTiles - False.- SetMapDatabaseFile (Dir As String, FileName As String) As MapsForgeTileSourceOptions
Set the path to the MapsForge map database file.- SetRenderTheme (InputStream1 As InputStream) As MapsForgeTileSourceOptions
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 MapsForgeTileSourceOptions
Optionally set the text scale.
Default value is 1.- SetTileSourceName (TileSourceName As String) As MapsForgeTileSourceOptions
Sets the name to use for this tilesource for example "England".- Tag
Methods:Properties:
- Equals (Tag1 As Tag) As Boolean
- IsInitialized As Boolean
- Key As String [read only]
- Value As String [read only]
Library files and updated demo project available from:
http://b4a.martinpearman.co.uk/osmdroid/MapsForgeTileSource 20140308.zip
Martin.
Do you have a demonstration project with version 4.01 of OSMdroid?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?