I was in the debug mode.And I create a Layer Properties button ,but it is only show the title. the code for it,

 * @require plugins/LayerProperties.js
  ptype: "gxp_layerproperties",
  actionTarget: ["tree.tbar"]

How can I do to get a button as Layer Properties on geoexplorer tree panel that has 3 tags,like about,display and available styles? Especially the display tag is more important to move opacity slidebar.

  • What type of layer are you using it on? It generally only works on WMS layers.
    – bartvde
    Commented Oct 18, 2013 at 10:41
  • I used WMS layers.I got the layer properties button, but it only show the title bar.
    – user23048
    Commented Oct 18, 2013 at 15:28
  • Do your WMS layers come from a WMS source? You may want to look at this example and try to align your code with it: github.com/boundlessgeo/gxp/blob/master/examples/viewer.js
    – ahocevar
    Commented Oct 19, 2013 at 10:32
  • I think I must change the title for this question. How I can do to add a slider opacity under every raster layer?
    – user23048
    Commented Oct 19, 2013 at 16:43


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.