mapfile_writer library
A library for writing and creating Mapsforge .map files.
This is intended for advanced use cases where you need to generate your own map files from other data sources. It provides the tools to construct the header, index, and data blocks required for a valid .map file.
It exports:
MapfileWriter: The main class for orchestrating the map file creation process.SubfileCreator: A helper for creating the various sub-files within a .map file.SubfileFiller: A helper for populating the sub-files with data.WayHolder: A data holder for way information during the writing process.
Classes
- IsolateMapfile
-
An implementation of
Datastorethat runs aMapfileinstance in a separate isolate. - IsolateSubfileFiller
- An isolate-based wrapper for SubfileFiller to perform way preparation in the background.
- Mapfile
-
///////////////////////////////////////////////////////////////////////////
The main class for reading and parsing Mapsforge binary map files (
.map). - MapfileWriter
-
The main class for writing a Mapsforge binary map file (
.map). - MapHeaderInfo
- Contains the high-level, immutable metadata of a map file.
- Poiinfo
- /////////////////////////////////////////////////////////////////////////// A helper class to hold all POIs for a specific zoom level during the sub-file creation process.
- SubfileCreator
- A class responsible for creating a single sub-file within a Mapsforge map file.
- SubfileFiller
- /////////////////////////////////////////////////////////////////////////// A class that prepares way data before it is added to a sub-file.
- Tagholder
- ///////////////////////////////////////////////////////////////////////////
- TileBuffer
- ///////////////////////////////////////////////////////////////////////////
- Wayholder
- Holds one way and its tags
- Wayinfo
- /////////////////////////////////////////////////////////////////////////// A helper class to hold all ways for a specific zoom level during the sub-file creation process.
Enums
- MapfileSelector
-
//////////////////////////////////////////////////////////////////////////
An enum to specify which subset of data to retrieve from a
Mapfile.
Typedefs
-
ProcessFunc
= Future<
void> Function(Tile tile) - Each subfile consists of: tile index header