/* [ LAYER LIST ( OPEN & PROTECTED ) ][ getLayerGroups ] There are two types: -- GROUP -- { type : "group", id : "", // Group Display Name attributes : [] // Group Contents } -- LAYERS -- { type : "layer", id : "", // Layer Display Name attributes : { canbuffer : false, // Layer will appear in buffer select box canidentify : false, // does nothing atm dynamic : false, // true = Layer is a Dynamic ARCGIS Layer. visibleLayers is required is se to true. hasLabels : false, // true = Layer label checkbos will be visible. Labels on by default. layerlist : false, // true = Layer will appear in Layer list. mapvisible : false, // true = when selected, layer will display geometry in map. outFields : [], // does nothing atm showdetails : false, // true = Layer shows metadata icon in Layer list sumfield : "", // variable name to be used for aggreagate summary titleFields : [], // does nothing atm url : "", // server url for layer visibleLayers : [0], // required if layer is dynamic=true visibleonstart : false // visible by default when the map loads } } [ IDENTIFY LAYERS ][ getIdentifyLayers ] There are two types: -- DIVIDER --- { type : "divider", DetailFields : [], // leave empty SummaryFields : [], // leave empty canexport : false, // set to false layerIds : [], // leave empty name : "", // Divider Display Name url : "" // leave empty } [ notes ] * Dividers are just entries in the list. They are not actually groups, but breaks in the list that cannot be selected but provides a title for the layers below them. * Layer names must not contain any reserverd characters such as &,/,\,(,). Only numbers and letters are allowed or Esri's API will throw an error -- LAYER- -- { type : "layer", DetailFields : [{ // Serves as outfield, where you can limit the requested fields. Can be empty or set to ["*"] name : "", // field id ( needs to be the same alias as ESRI's Server ) title : "" // field alias } ], SummaryFields : [ { // Defines which fields will be used as the title/header of a feature. Multiple fields will divide into columns. Can be empty. name : "", // field id ( needs to be the same alias as ESRI's Server ) title : "" // field alias } ], canexport : true, // activates the export of results into a csv file name : "", // Layer Display Name url : "" // Server url for layer layerIds : [], // layer ids that will be used for identify. Works in conjunction with the url. } [ notes ] * DetailFields: Array can be empty or set to ["*"]. Both options will will display all of the fields in the Layer in the results. * SummaryFields: The title field is the text that will be displayed in the column for the results. The name field must match the name of the variable in the server. * Identify layers use layerIds along with the url as the identifier for the layer, instead of the url attribute by itself. * Field names are case sensitive to match with the server. */ define([], function() { return { getLayerGroups : function() { var layer_groups = {layer_groups} return layer_groups }, getSecureLayerGroups : function() { var secure_layer_groups = {secure_layer_groups} return secure_layer_groups }, getIdentifyLayers : function() { var identify_layers = {identify_layers} return identify_layers }, } });