Class OpenLayers.Layer.TileServiceLayer

A TileServiceLayer is an OpenLayers layer capable of displaying a map managed by the Spatial Server MapTilingService. The tiled map to display is specified by the mapName parameter passed to the constructor of this class.

Constructor Detail
OpenLayers.Layer.TileServiceLayer(displayName, mapName, url, options, restService)
Creates a new TileServiceLayer for the tiled map given in the mapName parameter.
Parameters:
{String} displayName
Displayable name of the layer. This name should be human readable.
{String} mapName
Name of a tile map managed by Spatial Server
{String} url
Base URL of the Spatial Server TileService REST API - e.g. http://spatialserver/MapTilingService
{Object} options
Hashtable of extra options to tag onto the layer (optional).
{String} options.format
Image format requested by this layer, e.g. gif or png. Defaults to gif (optional).
{ria.RestService} restService
REST service instance to use to generate image URLs (optional).