Layer

Properties :

  • Name : initial layer name in the layer tree, overwrite with the value from the capabilities of the service
  • Alias : internal denomination
  • Overlay Groups : group to which the layer belongs to
  • Service : physical or virtual service from which the layer is issued
  • Authentication : optional user/password fields in case of the selected service requires authentication
  • Layer : layer name as defined in the service. Button at the right of this combobox executes a GetCapabilities on the selected service and populates with layer names this element
  • Tiled : layer tiled state
  • Default visible : initial layer visibility
  • Opacity : initial layer opacity
  • Metadata link : url to a web page. If defined, the layer tree node will be rendered as a link.
  • To add as an OpenLayers layer
    Adding a layer to the viewer is done by using high-level libraries options (OpenGeo SDK and GeoExt).
    However, this option allow to define a layer directly with the low-level librarie OpenLayers.
    This can be usefull when :
    - some specific parameters are not handle by the high-level libraries
    - the layer to add is a WMTS which does not have a high-level libraries handler
The following properties are used to build the OpenLayers layer, in combination with the previous generic properties :
  • WMTS
  • Style : One of the advertised layer styles. Must be provided.
  • Matrix Set : One of the advertised matrix set identifiers. Must be provided.
  • Options : All the key/value pairs (comma separated) to add in the 'config' object to send to the layer constructor
new OpenLayers.Layer.WMTS (config)

eg :
format:"image/png",
dimensions:[],
requestEncoding: "KVP",
matrixIds:[
{identifier:"0",scaleDenominator:559082264.02,matrixWidth:1,matrixHeight:1,tileWidth:256,tileHeight:256,topLeftCorner:{lon:-20037508.34,lat:20037508.34 }},
{identifier:"1",scaleDenominator:279541132.01,matrixWidth:2,matrixHeight:2,tileWidth:256,tileHeight:256,topLeftCorner:{lon:-20037508.34,lat:20037508.34 }},
{identifier:"2",scaleDenominator:139770566.00,matrixWidth:4,matrixHeight:4,tileWidth:256,tileHeight:256,topLeftCorner:{lon:-20037508.34,lat:20037508.34 }},
{identifier:"3",scaleDenominator:698852830.03,matrixWidth:8,matrixHeight:8,tileWidth:256,tileHeight:256,topLeftCorner:{lon:-20037508.34,lat:20037508.34 }}
]

NB : To allow a WMTS layer with a KVP request Encoding to be print with MapFish Print, the matrixIds param must be provided with all the properties present in the previous example.

  • WMS/WMS-C
  • Style : One of the advertised layer styles. Must be provided.
  • Options : All the key/value pairs (comma separated) to add in the 'options' object to send to the layer constructor
new OpenLayers.Layer.WMS (name, url, params, options)

eg :
resolutions: [1056.633663,528.3168317,264.1584158,132.0792079,66.03960396,26.41584158, 13.229166668, 6.614583334, 2.645833334],
attribution:'<a href="http://www.provider.org/" target="_blank"><img src="http://provder.org/logo.gif"></a>
<a href="http://www.provider.org/terms.pdf" alt="TOS" title="TOS" target="_blank">Terms of Service</a>

Joomla inherited properties :

  • Access level
  • Status
  • Permissions