AnsweredAssumed Answered

share config files

Question asked by lkoumis on Nov 6, 2015
Latest reply on Nov 9, 2015 by lkoumis

Many thanks to Robert and others for helping our community with their custom widgets.

 

I personally use Robert's Identify, LocalLayer widgets to identify a few. Each of these widgets have their own configuration files.

 

Since most of the times the layers that are utilized in the widgets are the same, I found myself to duplicate most of the configuration in each widget configuration.

It would be ideal, if the widgets could share the same config file. So, in the config.json the widgets point to the same config file.

Comments?

 

Example in the config.json

 

"widgetPool": {

   ...........................

....................................

    "widgets": [

      {

        "name": "Identify",

        "label": "Identify",

        "version": "1.2.0.2",

        "IsController": false,

        "uri": "widgets/Identify/Widget",

        "config": "configs/COMMON/config.json",

        "index": 4,

        "id": "widgets_Identify_Widget_54"

      }

....................

...........................

 

"widgetOnScreen": {

    "widgets": [

       {

        "uri": "widgets/LocalLayer/Widget",

        "id": "widgets_LocalLayer_Widget_55",

        "name": "LocalLayer",

        "label": "Local Layer Widget",

        "config": "configs/COMMON/config.json",

      },

...............................

......................................................

Outcomes