Skip to content

Commit

Permalink
V1.4 – Added enhancements for AGOL 4.2
Browse files Browse the repository at this point in the history
Implemented functionalities as per Sprint 1 plan.
  • Loading branch information
CTLocalGovTeam committed Feb 29, 2016
1 parent 027dd0d commit c1a70b0
Show file tree
Hide file tree
Showing 127 changed files with 38,039 additions and 25,327 deletions.
114 changes: 61 additions & 53 deletions config/defaults.js
@@ -1,41 +1,45 @@
/*global define,location */
/*jslint browser:true,sloppy:true,nomen:true,unparam:true,plusplus:true,indent:4 */
/*jslint sloppy:true */
/*
| Copyright 2014 Esri
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License.
| You may obtain a copy of the License at
|
| http://www.apache.org/licenses/LICENSE-2.0
|
| Unless required by applicable law or agreed to in writing, software
| distributed under the License is distributed on an "AS IS" BASIS,
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
| See the License for the specific language governing permissions and
| limitations under the License.
*/
| Copyright 2014 Esri
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License.
| You may obtain a copy of the License at
|
| http://www.apache.org/licenses/LICENSE-2.0
|
| Unless required by applicable law or agreed to in writing, software
| distributed under the License is distributed on an "AS IS" BASIS,
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
| See the License for the specific language governing permissions and
| limitations under the License.
*/
define({
//Default configuration settings for the application. This is where you'll define things like a bing maps key,
//default group, default app color theme and more. These values can be overwritten by template configuration settings and url parameters.
// Default configuration settings for the application. This is where you'll define things like a bing maps key,
// default web map, default app color theme and more. These values can be overwritten by template configuration settings and url parameters.
"appid": "",
"oauthappid": null,
//Group templates must support a group url parameter. This will contain the id of the group.
"webmap": "",
"oauthappid": null, //"AFTKRmv16wj14N3z",
// Group templates must support a group url parameter. This will contain the id of the group.
"group": "4c4ea6122c1a4313bab674bc4d9cf83b",
//Enter the url to the proxy if needed by the application. See the 'Using the proxy page' help topic for details
//http://developers.arcgis.com/en/javascript/jshelp/ags_proxy.html
// Enter the url to the proxy if needed by the application. See the 'Using the proxy page' help topic for details
// http://developers.arcgis.com/en/javascript/jshelp/ags_proxy.html
"proxyurl": "proxy.ashx",
//Example of a template specific property. If your template had several color schemes
//you could define the default here and setup configuration settings to allow users to choose a different
//color theme.
// Example of a template specific property. If your template had several color schemes
// you could define the default here and setup configuration settings to allow users to choose a different
// color theme.
"theme": "#d15706",
"bingKey": "", //Enter the url to your organizations bing maps key if you want to use bing basemaps
//Defaults to arcgis.com. Set this value to your portal or organization host name.
// Defaults to arcgis.com. Set this value to your portal or organization host name.
"sharinghost": location.protocol + "//" + "arcgis.com",
"units": null,
//If your applcation needs to edit feature layer fields set this value to true. When false the map will
//be dreated with layers that are not set to editable which allows the FeatureLayer to load features optimally.
// If your applcation needs to edit feature layer fields set this value to true. When false the map will
// be dreated with layers that are not set to editable which allows the FeatureLayer to load features optimally.
"editable": false,
"markerSymbol": "./images/esri-blue-pin-circle-26.png",
"markerSymbolWidth": 26,
"markerSymbolHeight": 26,
"helperServices": {
"geometry": {
"url": "http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"
Expand All @@ -50,44 +54,48 @@ define({
"url": null
}]
},
// name of the application
// Name of the application
"applicationName": "",
// application icon
// Icon of the application
"applicationIcon": "",
// application favicon icon
// Favicon icon of the application
"applicationFavicon": "/images/favicon.ico",
// to display any null values
"showNullValueAs": "",
// to set zoom level of map when single feature is selected
"zoomLevel": 12,
// when web-map thumbnail icon is not available it will get replaced by this default icon
"noThumbnailIcon": "/images/default-webmap-thumbnail.png",
// when attachment is not available it will get replaced by this default icon
"noAttachmentIcon": "/images/no-attachment.png",
// to set description field whether it needs to be displayed or not in web-map description area
// To set description field whether it needs to be displayed or not in web-map description area
"webMapInfoDescription": true,
// to set snippet field whether it needs to be displayed or not in web-map description area
// To set snippet field whether it needs to be displayed or not in web-map description area
"webMapInfoSnippet": false,
// to set owner field whether it needs to be displayed or not in web-map description area
// To set owner field whether it needs to be displayed or not in web-map description area
"webMapInfoOwner": true,
// to set created field whether it needs to be displayed or not in web-map description area
// To set created field whether it needs to be displayed or not in web-map description area
"webMapInfoCreated": false,
// to set modified field whether it needs to be displayed or not in web-map description area
// To set modified field whether it needs to be displayed or not in web-map description area
"webMapInfoModified": false,
// to set license info field whether it needs to be displayed or not in web-map description area
// To set license info field whether it needs to be displayed or not in web-map description area
"webMapInfoLicenseInfo": false,
// to set access information field whether it needs to be displayed or not in web-map description area
// To set access information field whether it needs to be displayed or not in web-map description area
"webMapInfoAccessInformation": false,
// to set tags field whether it needs to be displayed or not in web-map description area
// To set tags field whether it needs to be displayed or not in web-map description area
"webMapInfoTags": false,
// to set views field whether it needs to be displayed or not in web-map description area
// To set views field whether it needs to be displayed or not in web-map description area
"webMapInfoNumViews": false,
// to set rating field whether it needs to be displayed or not in web-map description area
// To set rating field whether it needs to be displayed or not in web-map description area
"webMapInfoAvgRating": false,
// to set field of comment to fetch data from it
"commentField": "COMMENTS",
// To set title for help dialog
"helpDialogTitle": "Help Page",
// To set content for help dialog
"helpDialogContent": "<p>Crowdsource Manager, a companion group template to Crowdsource Reporter, allows users within an organization to review problems or observations submitted through the Reporter application.</p>",
// to set zoom level of map when single feature is selected
"zoomLevel": 12,
// to display comment table popup info
"usePopupConfigurationForComment": false,
"usePopupConfigurationForComment": true,
// to set field of comment to fetch data from it
"commentField": "LONG_TEXT",
// to show non editable layers on selected web map
"showNonEditableLayers": true,
// to set the color of feature that is activated by selecting particular row
"activeRow": "#C8C8C8"
});
"highlightRow": "#C8C8C8",
// configurable message to indicate that user needs to select record to view the details panel
"selectFeatureMessage": "Select a feature to get started",
// To enable or disable filters, applied on the selected layer
"enableFilter": true
});
56 changes: 28 additions & 28 deletions config/template-config.js
@@ -1,20 +1,20 @@
/*global define */
/*jslint browser:true,sloppy:true,nomen:true,unparam:true,plusplus:true,indent:4 */
/*jslint sloppy:true */
/*
| Copyright 2014 Esri
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License.
| You may obtain a copy of the License at
|
| http://www.apache.org/licenses/LICENSE-2.0
|
| Unless required by applicable law or agreed to in writing, software
| distributed under the License is distributed on an "AS IS" BASIS,
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
| See the License for the specific language governing permissions and
| limitations under the License.
*/
| Copyright 2014 Esri
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License.
| You may obtain a copy of the License at
|
| http://www.apache.org/licenses/LICENSE-2.0
|
| Unless required by applicable law or agreed to in writing, software
| distributed under the License is distributed on an "AS IS" BASIS,
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
| See the License for the specific language governing permissions and
| limitations under the License.
*/
define({
// When true, the template will query arcgis.com for the webmap item.
"queryForWebmap": false,
Expand All @@ -25,35 +25,35 @@ define({
// Use a local hosted webmap instead of a webmap on ArcGIS or portal.
"useLocalWebmap": false,
// support sending credentials with AJAX requests to specific domains. This will allow editing of feature services secured with web-tier authentication
"webTierSecurity": true,
"webTierSecurity": false,
// Webmap file to use for the local webmap
"localWebmapFile": "config/demo-map",
//When true the template will query arcgis.com for default settings for helper services, units etc. If you
//want to use custom settings for units or any of the helper services set queryForOrg to false then enter
//default values for any items you need using the helper services and units properties.
// When true the template will query arcgis.com for default settings for helper services, units etc. If you
// want to use custom settings for units or any of the helper services set queryForOrg to false then enter
// default values for any items you need using the helper services and units properties.
"queryForOrg": true,
//If you need localization set the localize value to true to get the localized strings
//from the javascript/nls/resource files.
//Note that we've included a placeholder nls folder and a resource file with one error string
//to show how to setup the strings file.
// If you need localization set the localize value to true to get the localized strings
// from the javascript/nls/resource files.
// Note that we've included a placeholder nls folder and a resource file with one error string
// to show how to setup the strings file.
"queryForLocale": true,
// These are the options specified for querying items within the group. Modify these to get more items. You can also call the public template.queryGroupItems() method with these options as a parameter.
"groupParams": {
"q": "group:\"${groupid}\" AND type:\"Web Map\" AND " +
"-type:\"Web Mapping Application\" AND -type:\"Code Attachment\"",
"q": "group:\"${groupid}\" AND type:\"Web Map\" AND -type:\"Web Mapping Application\" AND -type:\"Code Attachment\"",
"sortField": "modified",
"sortOrder": "desc",
"num": 9,
"start": 0
},
//This option demonstrates how to handle additional custom url parameters. For example
//if you want users to be able to specify lat/lon coordinates that define the map's center or
//specify an alternate basemap via a url parameter.
// This option demonstrates how to handle additional custom url parameters. For example
// if you want users to be able to specify lat/lon coordinates that define the map's center or
// specify an alternate basemap via a url parameter.
"urlItems": [
"embed",
"center",
"extent",
"level",
"marker",
"theme" // example param. ?theme=<my theme>
],
// Most users will not need to modify this value. For esri hosting environments only. Will automatically create a "sharinghost" and "proxyurl" for the application. Only set this is to true if the app is going to be stored on Esri's hosting servers. If you are using your own custom hosted portal, set the "sharinghost" in defaults.js instead of setting this to true.
Expand Down
46 changes: 5 additions & 41 deletions css/common.css
@@ -1,4 +1,4 @@
/* Common style */
/* Common style CSS starts */

.esriCTEllipsis
{
Expand Down Expand Up @@ -27,50 +27,14 @@
display: block;
}

.esriCTVisibilityHidden
{
visibility: hidden;
}

.esriCTFullHeightWidth
{
height: 100%;
width: 100%;
}

.esriCTFontGrayColor
{
color: #696969;
}

.esriCTBorderWhite
{
border: 1px solid #fff;
}

.esriCTBorder
{
border: 1px solid #fff;
}

.esriCTBorderLeft
{
border-left: 1px solid #fff;
}

.esriCTBorderTop
{
border-top: 1px solid #fff;
}

.esriCTBorderRight
{
border-right: 1px solid #fff;
border: 1px solid #ffffff;
}

.esriCTBorderBottom
.esriCTWhiteBackGround
{
border-bottom: 1px solid #fff;
background-color: #ffffff;
}

/* End of Common style */
/* Common style CSS ends */
89 changes: 0 additions & 89 deletions css/legacy-browsers.css

This file was deleted.

0 comments on commit c1a70b0

Please sign in to comment.