Grouping of layer with GeoServer and OpenLayers

المشرف العام

Administrator
طاقم الإدارة
I need help to display layers group/non group 1. with checkbox to select layer or group 2. icon/symbol for each layer.

I saw example codes from OpenLayers where it's adding the layers statically. I would like to populate it dynamically so in future if a layer is added/remove it will be displayed without changing any code.

Sample layout of what I want to achieve is posted below, please note that checkboxes are displayed as dots.

Groping of Layer
  • Layer
    • School
    • Road
      • Metal Road
      • Unmetal Road
    • Parecls
    • Water Feature
    • Cities
    • Disulict
    • India



أكثر...
 
أعلى