Class: LevelRowColumnUrlBuilder

LevelRowColumnUrlBuilder(serverAddress, pathToData)

Provides a factory to create URLs for level/row/column tile REST requests.

URLs are formed by appending the specified server address with the specified path and appending a path of the form /level/row/row_column.image-format, where image-format is the corresponding suffix to the image mime type specified when a URL is requested. For example, if the specified server address is https://worldwind32.arc.nasa.gov and the specified path-to-data is ../standalonedata/Earth/BlueMarble256, and the requested tile's level, row and column are 0, 5 and 9 respectively, and the image format is image/jpeg, the composed URL is https://worldwind32.arc.nasa.gov/standalonedata/Earth/BlueMarble256/0/5/5_9.jpg.

Constructor

new LevelRowColumnUrlBuilder(serverAddress, pathToData)

Constructs a URL builder for level/row/column tiles.
Parameters:
Name Type Description
serverAddress String The server address. May be null, in which case the address is assumed to be the current location (see window.location) minus the last path component.
pathToData String The path to the dataset on the server. May be null or empty to indicate that the data is directly relative to the specified server address.
Source:

Members

pathToData :String

The server-side path to the dataset.
Type:
  • String
Source:

serverAddress :String

The server address.
Type:
  • String
Source:

Methods

urlForTile(tile, imageFormat)

Creates the URL string for a WMS Get Map request.
Parameters:
Name Type Description
tile Tile The tile for which to create the URL.
imageFormat String The image format to request.
Source:
Throws:
If the specified tile or image format are null or undefined.
Type
ArgumentError