SubFileParameter class

An immutable data class that holds all parameters of a map file's sub-file.

A Mapsforge map file is divided into several sub-files, each containing the map data for a specific range of zoom levels. This class stores the metadata for one such sub-file, including its zoom range, size, and the location of its index and data blocks within the main map file.

Constructors

SubFileParameter(int id, int baseZoomLevel, int blocksHeight, int blocksWidth, int boundaryTileBottom, int boundaryTileLeft, int boundaryTileRight, int boundaryTileTop, int indexEndAddress, int indexStartAddress, int numberOfBlocks, int startAddress, int subFileSize, int zoomLevelMax, int zoomLevelMin, MercatorProjection projection)

Properties

baseZoomLevel int
The base zoom level of this sub-file. All data within this sub-file is stored relative to this zoom level.
final
blocksHeight int
The height of the sub-file's grid in blocks.
final
blocksWidth int
The width of the sub-file's grid in blocks.
final
boundaryTileBottom int
The Y-coordinate of the bottom-most tile at the base zoom level.
final
boundaryTileLeft int
The X-coordinate of the left-most tile at the base zoom level.
final
boundaryTileRight int
The X-coordinate of the right-most tile at the base zoom level.
final
boundaryTileTop int
The Y-coordinate of the top-most tile at the base zoom level.
final
hashCode int
The hash code for this object.
no setteroverride
id int
A unique identifier for this sub-file parameter set.
final
indexEndAddress int
The absolute end address of this sub-file's index within the main map file.
final
indexStartAddress int
The absolute start address of this sub-file's index within the main map file.
final
numberOfBlocks int
The total number of data blocks in this sub-file.
final
projection → MercatorProjection
A cached MercatorProjection instance for this sub-file's base zoom level.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startAddress int
The absolute start address of this sub-file's data within the main map file.
final
subFileSize int
The total size of this sub-file in bytes.
final
zoomLevelMax int
The maximum zoom level that this sub-file provides data for.
final
zoomLevelMin int
The minimum zoom level that this sub-file provides data for.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override