![]() |
NDEVR
API Documentation
|
A Web Mercator map tile descriptor containing coordinates, zoom level, and display settings. More...
Public Types | |
| enum class | DPI : uint04 { e_low = 1 , e_high = 2 , e_auto } |
| Dots-per-inch setting for tile rendering. More... | |
| enum class | Resolution : uint04 { e_low_256 = 1 , e_high_512 = 2 } |
| Pixel resolution of a single map tile. More... | |
Public Member Functions | |
| WebMercatorTile () | |
| Default constructor. | |
| WebMercatorTile (uint04 x, uint04 y, uint04 zoom, Resolution resolution, DPI dpi, bool include_labels) | |
| Constructs a tile with explicit coordinates and display settings. | |
| UUID | getUUID (UUID parent_id) const |
| Generates a deterministic UUID for this tile relative to a parent identifier. | |
Static Public Member Functions | |
| static uint04 | convertResolutionToPixels (Resolution resolution) |
| Converts a Resolution enum value to its pixel dimension. | |
Public Attributes | |
| DPI | dpi = DPI::e_low |
| DPI setting for tile rendering. | |
| String | language |
| Language code for tile labels (e.g. "en"). | |
| Resolution | resolution = Resolution::e_low_256 |
| Pixel resolution of the tile. | |
| Vector< 2, uint04 > | tile = Vector<2, uint04>(0U) |
| Tile column (X) and row (Y) indices. | |
| uint04 | zoom = 0 |
| Map zoom level. | |
A Web Mercator map tile descriptor containing coordinates, zoom level, and display settings.
Definition at line 80 of file MercatorImageManager.h.
|
strong |
Dots-per-inch setting for tile rendering.
| Enumerator | |
|---|---|
| e_low | Standard (1x) DPI. |
| e_high | High (2x / Retina) DPI. |
| e_auto | Automatically select DPI based on device. |
Definition at line 83 of file MercatorImageManager.h.
|
strong |
Pixel resolution of a single map tile.
| Enumerator | |
|---|---|
| e_low_256 | 256x256 pixel tiles |
| e_high_512 | 512x512 pixel tiles |
Definition at line 91 of file MercatorImageManager.h.
| WebMercatorTile::WebMercatorTile | ( | uint04 | x, |
| uint04 | y, | ||
| uint04 | zoom, | ||
| Resolution | resolution, | ||
| DPI | dpi, | ||
| bool | include_labels ) |
Constructs a tile with explicit coordinates and display settings.
| [in] | x | The tile column index. |
| [in] | y | The tile row index. |
| [in] | zoom | The zoom level. |
| [in] | resolution | The tile pixel resolution. |
| [in] | dpi | The DPI setting. |
| [in] | include_labels | Whether to include text labels on the tile. |
References dpi, resolution, and zoom.
|
static |
Converts a Resolution enum value to its pixel dimension.
| [in] | resolution | The resolution to convert. |
References resolution.