cgxp.plugins.MapOpacitySlider

ptype
cgxp_mapopacityslider
class cgxp.plugins.MapOpacitySlider(config)

Example Use

Sample code showing how to add a MapOpacitySlider plugin to a gxp.Viewer:

new gxp.Viewer({
    ...
    tools: [{
        ptype: "cgxp_mapopacityslider",
        layerTreeId: "layertree",
        defaultBaseLayerRef: "plan"
    }]
    ...
});

Config Options

Configuration properties.

actionTarget

Object or String or Array Where to place the tool’s actions (e.g. buttons or menus)? As opposed to CGXP.plugins.Tool, we don’t want it to be set by default to the mapPanel top toolbar.

defaultBaseLayerRef

String Reference to the default base layer. Default is “plan”.

layerTreeId

String Reference to the layertree plugin, used for instance to change the basemap depending on the loaded theme.

orthoRef

String Reference to the ortho layer. If set to null or empty, no ortho layer will be added and the opacity slider will not be displayed. Default is “ortho”.

stateId

String Used for the permalink. Default is “baselayer”.

Table Of Contents

Previous topic

cgxp.plugins.Login

Next topic

cgxp.plugins.MapQuery

This Page

Fork me on GitHub