Zum Hauptinhalt gehen

How to turn layer on?

Kommentare

2 Kommentare

  • Permanently deleted user

    sory the last paragraph should read "Similar codes works (layer is checked on the layer list widget and the layer is displayed on the map.) in another widget (which is inheritate from EssentialsBaseWidget) in a different project.  The difference is the parent class (widget)."

    0
  • Permanently deleted user

    The question i posted is not exactly correct. After more digging, it appears that  

    layer.setVisibility(true)

    Works for some layers, but not all.

    The problem is solved now.  If the layer is in a group layer, the group layer (or the parent layer), has to be setVisibility (true).

     

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.