Control/WMSManager

!WMSManager Control


Description

This module offers a lot of features. The interface is divided into two tabs: Legend and WMS Servers. Here below their characteristics.

WMS Servers tab

  • Server select
    • Choose a WMS server from the drop down list.
  • Layer select
    • Choose one of more WMS layers from the same server (ctrl + click) to have them joint on an OL layer.
    • Order WMS layers. If you need to order WMS layers before creating the OL layer, use up/down arrows.

*Overlay checkbox

*Use that checkbox if you want that/those layers to be shown as Overlays (transparent layers) in the map.

  • Image Type select
    • select the image type from the supported image formats of that server. JPEG is not allowed if Overlays.
  • Add Layer button
    • Click on the "add layer" button to show your selected layer/s on the map.
  • Layer Infos
    • every time you select a layer from the layer list, you'll have layer infos shown on the lower text box.

Legend tab

  • Visibility Checkbox
    • choose which layer to see as background and which Overlays to show in the map.
  • Layer Dropper
    • click on the "X" to drop the layer out of the legend.
  • Layer Tools
    • click on the "+" to see all layer related tools in the expanded box.
      • Layer infos and legend image
        • in the text box you'll find all relative layer infos (name, title, abstract, queryable) and the legend image if available
      • Opacity control
        • (only for Overlays) click on "<" and ">" arrows to change Overlay opacity
      • Layer switcher
        • (only for Overlays) click on "↑" and "↓" to switch layers up or down.
  • Zoom to layer extent
    • Click on "zoom" to zoom the map to the original extent of the layer

code sample

  //proxy is needed if you want to connect to external WMS servers
  OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";
  
  //Create your map object
  map = new OpenLayers.Map( $('map') );

  //create an array of servers (title, url)
  var aWMSServers=new Array(
       ['OpenLayers WMS','http://labs.metacarta.com/cgi-bin/mapserv?map=/www/labs/map/vmap0.map'],
       ['World - NASA Blue Marble Next Generation','http://wms.jpl.nasa.gov/wms.cgi?']
  }

  //add WMS Manager Control
  map.addControl( new OpenLayers.Control.WMSManager(aWMSServers ) );
				

know bugs or open issues

  • Safari doesn't allow to drop down the Server select with the mouse. Keyboard arrows work instead.
  • Many WMS servers has irregular XML and IE in bloking during the parse. This is not really a bug but maybe some workarounds would help for usability
  • TileCache support is broken