NDEVR
API Documentation
WebMercatorTile

A Web Mercator map tile descriptor containing coordinates, zoom level, and display settings. More...

Collaboration diagram for WebMercatorTile:
[legend]

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, uint04tile = Vector<2, uint04>(0U)
 Tile column (X) and row (Y) indices.
uint04 zoom = 0
 Map zoom level.

Detailed Description

A Web Mercator map tile descriptor containing coordinates, zoom level, and display settings.


Definition at line 80 of file MercatorImageManager.h.

Member Enumeration Documentation

◆ DPI

enum class WebMercatorTile::DPI : uint04
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.

◆ Resolution

enum class WebMercatorTile::Resolution : uint04
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.

Constructor & Destructor Documentation

◆ WebMercatorTile()

WebMercatorTile::WebMercatorTile ( uint04 x,
uint04 y,
uint04 zoom,
Resolution resolution,
DPI dpi,
bool include_labels )

Constructs a tile with explicit coordinates and display settings.

Parameters
[in]xThe tile column index.
[in]yThe tile row index.
[in]zoomThe zoom level.
[in]resolutionThe tile pixel resolution.
[in]dpiThe DPI setting.
[in]include_labelsWhether to include text labels on the tile.

References dpi, resolution, and zoom.

Member Function Documentation

◆ convertResolutionToPixels()

uint04 WebMercatorTile::convertResolutionToPixels ( Resolution resolution)
static

Converts a Resolution enum value to its pixel dimension.

Parameters
[in]resolutionThe resolution to convert.
Returns
The pixel width/height (e.g. 256 or 512).

References resolution.

◆ getUUID()

UUID WebMercatorTile::getUUID ( UUID parent_id) const

Generates a deterministic UUID for this tile relative to a parent identifier.

Parameters
[in]parent_idThe parent UUID to combine with tile parameters.
Returns
A UUID uniquely identifying this tile within the given parent context.

The documentation for this struct was generated from the following file: