SHARE
TWEET

Untitled

a guest Jul 17th, 2017 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var treeConfig = [{
  2.     nodeType: 'async',
  3.     text: "Oblique Photo Points",
  4.     expanded: true,
  5.     children: [{
  6.         text: '1976 Photo Points',
  7.         layerStore: mapPanel.layers,
  8.         leaf: false,
  9.         expanded: true,
  10.         nodeType: 'gx_overlaylayercontainer',
  11.         loader: {
  12.             filter: function (record) {
  13.                 return record.get("layer").options.group === "1976photos"
  14.                 },
  15.             baseAttrs: {
  16.                 radioGroup: "foo",
  17.                 uiProvider: "layernodeui"
  18.             }  
  19.         }
  20.     }, {
  21.         text: '2007 Photo Points',
  22.         layerStore: mapPanel.layers,
  23.         leaf: false,
  24.         expanded: true,
  25.         nodeType: 'gx_overlaylayercontainer',
  26.         loader: {
  27.             filter: function (record) {
  28.                 return record.get("layer").options.group === "2007photos"
  29.  
  30.             },
  31.             baseAttrs: {
  32.                 radioGroup: "foo",
  33.                 uiProvider: "layernodeui"
  34.             }
  35.         }
  36.     }]
  37. }, {
  38.     nodeType: 'async',
  39.     text: "ShoreLine Classification",
  40.     expanded: true,
  41.     children: [{
  42.         text: '1976 Shoreline Inventory',
  43.         layerStore: mapPanel.layers,
  44.         leaf: false,
  45.         expanded: true,
  46.         nodeType: 'gx_overlaylayercontainer',
  47.         loader: {
  48.             filter: function (record) {
  49.                 return record.get("layer").options.group === "1976shoreline"
  50.             },
  51.             baseAttrs: {
  52.                 radioGroup: "foo",
  53.                 uiProvider: "layernodeui"
  54.             }
  55.         }
  56.     }, {
  57.         text: '2007 Shoreline Inventory',
  58.         layerStore: mapPanel.layers,
  59.         leaf: false,
  60.         expanded: true,
  61.         nodeType:'gx_overlaylayercontainer',
  62.         loader: {
  63.             filter: function (record) {
  64.                 return record.get("layer").options.group === "2007shoreline"
  65.             },
  66.             baseAttrs: {
  67.                 radioGroup: "foo",
  68.                 uiProvider: "layernodeui"
  69.             }
  70.         }
  71.     }]
  72. }, {
  73.     nodeType: "gx_baselayercontainer",
  74.     expanded: true
  75. }];
RAW Paste Data
Pastebin PRO Summer Special!
Get 60% OFF on Pastebin PRO accounts!
Top