Relationships between layer's options and the users interface
When creating a layer, there are a lot of options. Some of them directly impacts the final rendering in the layer's manager :
when opacity or view options are in use for a given layer, the manager renders (1). This handle allows showing/hidding inside components :
(2) renders the opacity option (a number between 0.0 and 1.0, the higher is this number, the less transparent is the layer) : it is a slider that allows modifying the current transparency of the layer ;
(3) renders the view.drop option when it is turned to true : clicking on the trash definitively removes the layer from the layers manager list ;
(4) renders the view.zoomToExtent option when it is turned to true : clicking on the icon zooms to the maximum extent of the layer.
the layer's name (a) is always rendered, excepted when the layer is marked as baseLayer (in this case, the layer never appears on the interface within the Geoportal's API). Clicking on the layer's name (a) opens a window with a description (another layer's option). Possibly, this window shows up to two links :
to a web page for downloading data when the dataURL option holds that URL ;
to a web page for metadata when the metadataURL option holds that URL.
the layer's activation (b) is bound to the visibility option, but not only ! There are 4 cases for layer's activation status :
the layer is not activated and not visible at the current scale :
the layer is not activated, but eventually visible at the current scale :
the layer is activated and visible at the current scale :
the layer is activated, but not visible at the current scale :
changing the layer's order with the manager is rendered by (c). The layers' order is the reverse as the layer's insertion order in the map (stack of layers, the most recently inserted being on the top).
Changes in 1.2 release of the API
The manager is now rendered differently :
when clicking on the wheel, the manager shows the content as usual :