NDEVR
API Documentation
GoogleWebMercatorTileService

Fetches Web Mercator map tiles from Google Maps tile servers. More...

Inheritance diagram for GoogleWebMercatorTileService:
[legend]
Collaboration diagram for GoogleWebMercatorTileService:
[legend]

Public Types

enum class  GoogleLayer { e_satellite , e_road , e_terrain , e_hybrid }
 The available Google Maps layer types. More...

Public Member Functions

 GoogleWebMercatorTileService (GoogleLayer layer)
 Constructs a Google tile service for the specified layer.
Buffer< WebMercatorTile::DPIgetSupportedDPIs () const final override
 Returns the DPI values supported by this service.
Buffer< WebMercatorTile::ResolutiongetSupportedResolutions () const final override
 Returns the tile resolutions supported by this service.
String getUrl (WebMercatorTile tile, const MercatorImageRequest &request) const final override
 Builds the URL for fetching a specific tile.
UUID getUUID (WebMercatorTile tile, const MercatorImageRequest &request) const final override
 Returns a unique identifier for a specific tile request.
Public Member Functions inherited from WebMercatorTileService
 WebMercatorTileService ()=default
 Default constructor.
 WebMercatorTileService (const WebMercatorTileService &other)=default
 Copy constructor.
 WebMercatorTileService (WebMercatorTileService &&other)=default
 Move constructor.
virtual ~WebMercatorTileService ()=default
 Virtual destructor.
WebMercatorTileServiceoperator= (const WebMercatorTileService &other)=default
 Copy assignment operator.
WebMercatorTileServiceoperator= (WebMercatorTileService &&other)=default
 Move assignment operator.

Static Public Member Functions

static uint04 URLFeatureCode (ArialFeatureList item)
 Returns the URL feature code for an aerial feature list item.

Protected Member Functions

void buildSecrets (WebMercatorTile tile, String &secret_1, String &secret_2) const
 Builds authentication secret strings for a tile request.

Protected Attributes

GoogleLayer m_layer = GoogleLayer::e_satellite
 The active Google Maps layer.
String m_secret
 The authentication secret for tile requests.

Detailed Description

Fetches Web Mercator map tiles from Google Maps tile servers.


Definition at line 66 of file WebMercatorTiledImageManager.h.

Member Enumeration Documentation

◆ GoogleLayer

The available Google Maps layer types.

Enumerator
e_satellite 

Satellite imagery.

e_road 

Road map.

e_terrain 

Terrain map.

e_hybrid 

Satellite imagery with road overlay.

Definition at line 70 of file WebMercatorTiledImageManager.h.

Constructor & Destructor Documentation

◆ GoogleWebMercatorTileService()

GoogleWebMercatorTileService::GoogleWebMercatorTileService ( GoogleLayer layer)

Constructs a Google tile service for the specified layer.

Parameters
[in]layerThe Google Maps layer type.

References GoogleWebMercatorTileService().

Referenced by GoogleWebMercatorTileService().

Member Function Documentation

◆ buildSecrets()

void GoogleWebMercatorTileService::buildSecrets ( WebMercatorTile tile,
String & secret_1,
String & secret_2 ) const
protected

Builds authentication secret strings for a tile request.

Parameters
[in]tileThe tile coordinates.
[out]secret_1The first secret string.
[out]secret_2The second secret string.

References buildSecrets().

Referenced by buildSecrets().

◆ getSupportedDPIs()

Buffer< WebMercatorTile::DPI > GoogleWebMercatorTileService::getSupportedDPIs ( ) const
finaloverridevirtual

Returns the DPI values supported by this service.

Returns
A buffer of supported DPI values.

Implements WebMercatorTileService.

References getSupportedDPIs().

Referenced by getSupportedDPIs().

◆ getSupportedResolutions()

Buffer< WebMercatorTile::Resolution > GoogleWebMercatorTileService::getSupportedResolutions ( ) const
finaloverridevirtual

Returns the tile resolutions supported by this service.

Returns
A buffer of supported resolutions.

Implements WebMercatorTileService.

◆ getUrl()

String GoogleWebMercatorTileService::getUrl ( WebMercatorTile tile,
const MercatorImageRequest & request ) const
finaloverridevirtual

Builds the URL for fetching a specific tile.

Parameters
[in]tileThe tile coordinates.
[in]requestThe image request parameters.
Returns
The URL string.

Implements WebMercatorTileService.

◆ getUUID()

UUID GoogleWebMercatorTileService::getUUID ( WebMercatorTile tile,
const MercatorImageRequest & request ) const
finaloverridevirtual

Returns a unique identifier for a specific tile request.

Parameters
[in]tileThe tile coordinates.
[in]requestThe image request parameters.
Returns
The UUID for this tile request.

Implements WebMercatorTileService.

◆ URLFeatureCode()

uint04 GoogleWebMercatorTileService::URLFeatureCode ( ArialFeatureList item)
static

Returns the URL feature code for an aerial feature list item.

Parameters
[in]itemThe aerial feature.
Returns
The numeric feature code.

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