-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New config example to search for a value provided in the app's url.
- Loading branch information
Showing
1 changed file
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
define([ | ||
'dojo/io-query' | ||
], function (ioQuery) { | ||
|
||
var uri = window.location.href; | ||
var qs = uri.substring(uri.indexOf('?') + 1, uri.length); | ||
var qsObj = ioQuery.queryToObject(qs); | ||
var fips = qsObj.fips || ''; | ||
|
||
return { | ||
isDebug: false, | ||
|
||
mapOptions: { | ||
basemap: 'streets', | ||
center: [-96.59179687497497, 39.09596293629694], | ||
zoom: 5, | ||
sliderStyle: 'small' | ||
}, | ||
|
||
panes: { | ||
left: { | ||
collapsible: false, | ||
style: 'display:none' | ||
}, | ||
bottom: { | ||
id: 'sidebarBottom', | ||
placeAt: 'outer', | ||
splitter: true, | ||
collapsible: true, | ||
region: 'bottom', | ||
style: 'height:200px;', | ||
content: '<div id="attributesContainer"></div>' | ||
} | ||
}, | ||
|
||
operationalLayers: [ | ||
], | ||
|
||
widgets: { | ||
growler: { | ||
include: true, | ||
id: 'growler', | ||
type: 'domNode', | ||
path: 'gis/dijit/Growler', | ||
srcNodeRef: 'growlerDijit', | ||
options: {} | ||
}, | ||
attributesTable: { | ||
include: true, | ||
id: 'attributesContainer', | ||
type: 'domNode', | ||
srcNodeRef: 'attributesContainer', | ||
path: 'widgets/AttributesTable', | ||
options: { | ||
map: true, | ||
mapClickMode: true, | ||
|
||
// use a tab container for multiple tables or | ||
// show only a single table | ||
useTabs: false, | ||
|
||
// used to open the sidebar after a query has completed | ||
sidebarID: 'sidebarBottom', | ||
|
||
tables: [ | ||
{ | ||
title: 'Census', | ||
topicID: 'censusQuery', | ||
queryOptions: { | ||
queryParameters: { | ||
url: 'http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/4', | ||
where: 'FIPS = \'' + fips + '\'' | ||
}, | ||
idProperty: 'ObjectID' | ||
}, | ||
toolbarOptions: { | ||
show: false | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}; | ||
}); |