Skip to content

Label Widget field list gets appended to #38

Description

@kjohnsonGIS

Hi, I'm noticing on the label widget, after choosing to label a field on a certain layer, then choosing a different layer, the field list contains the fields of the first layer and the second. Just wondering if this has been noticed before and if i'm doing something wrong in the config.
Heres my current config:

            labelLayer: {
                title: 'Map Labels',
                id: 'labelLayer',
                include: true,
                type: 'titlePane', //titlePane
                position: 15,
                path: 'gis/dijit/Widgets/LabelLayer',
                options: {
                    // required!
                    map: true,
                    layerControlLayerInfos: true,
                    labelInfos: {
                      private: { // a string like 'assets'
                        exclude: true  //, // exclude this entire layer
                      },
                      BasemapLabels:{
                        exclude:false, 
                        4:{
                            exclude: false, 
                            fields:[{
                                alias: 'PIN',
                                name: 'PIN'
                            },{
                                alias: 'LASTNAME',
                                name: 'LASTNAME'
                            },{
                                alias: 'LOT',
                                name:'LOT'
                            }]
                        },
                        3:{
                            exclude: true
                        },
                        2: {
                            exclude: true
                        },
                        0: {
                            exclude: true
                        },
                        1: {
                            exclude: false
                        },
                        5: {
                            exclude: false
                        }
                      },
                      conservation: {
                          exclude: true
                      },
                      gps: {
                          exclude:true
                      },
                      regionalgeography: {
                          exclude:true
                      },
                      boundaries: {
                          exclude: true
                      },
                      parcels: {
                          exclude: true
                      },
                      distribution: {
                          exclude:true
                      }
                      
                    }
                }
            }  

BTW this is a great widget, i see it being super useful to our users! Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions