Class OpenLayers.Layer.MappingServiceLayer

A MappingServiceLayer is an OpenLayers layer that is capable of displaying a Spatial Server NamedMap on an OpenLayers map. The NamedMap to be displayed is specified by the mapName parameter passed to the constructor of this class. If the NamedMap is stored as vector data, it will be dynamically reprojected to the projection system of the OpenLayers map.

Method Summary
Method Attributes Method Name and Description
Returns the name of the Spatial Server NamedMap represented by this layer.
Constructor Detail
OpenLayers.Layer.MappingServiceLayer(displayName, mapName, url, options, restService)
Creates a new MappingServiceLayer for the given NamedMap.
Parameters:
{String} displayName
Displayable name of the layer. This name should be human readable.
{String} mapName
Name of a NamedMap managed by Spatial Server
{String} url
Base URL of the Spatial Server MappingService REST API - e.g. http://spatialserver/MappingService
{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 png (optional).
{String} options.prefix
endpoint to access the MappingService, e.g. maps or tables (internal use only). Defaults to maps (optional).
{String} options.queryParams
Additional query params added to each image URL (optional).
{ria.RestService} restService
REST service instance to use to generate image URLs (optional).
Method Detail
getMapName()
Returns the name of the Spatial Server NamedMap represented by this layer.