Skip to content

Instantly share code, notes, and snippets.

define([
'esri/units',
'esri/geometry/Extent',
'esri/config',
'esri/tasks/GeometryService',
'esri/layers/ImageParameters',
'esri/dijit/Basemap',
'esri/dijit/BasemapLayer',
'esri/symbols/PictureMarkerSymbol'
], function (units, Extent, esriConfig, GeometryService, ImageParameters, Basemap, BasemapLayer, PictureMarkerSymbol) {
<?xml version="1.0" encoding="utf-8" ?>
<ProxyConfig allowedReferers="*" mustMatch="false">
<serverUrls>
<serverUrl url="http://maps.clermontcountyohio.gov" matchAll="true" username="PutYourUserNameHere" password="PutYourPasswordHere"/>
<serverUrl url="http://services.arcgisonline.com" matchAll="true"/>
<serverUrl url="http://maps18.clermontauditor.org" matchAll="true"/>
</serverUrls>
</ProxyConfig>
<!-- See https://github.com/Esri/resource-proxy for more information -->
define([
'esri/units',
'esri/geometry/Extent',
'esri/config',
'esri/tasks/GeometryService',
'esri/layers/ImageParameters',
'esri/dijit/Basemap',
'esri/dijit/BasemapLayer',
'esri/urlUtils'
], function (units, Extent, esriConfig, GeometryService, ImageParameters, Basemap, BasemapLayer, urlUtils) {
define([
//'dojo/_base/lang',
'esri/InfoTemplate'
], function (InfoTemplate) {
var formatters = {
attributeList: function (identifyResults) {
//var features = [];
var template;
if (identifyResults) {
var template11 = new InfoTemplate();
template11.title = '<b>The location of the red flag<br/>has the following options</b>';
template11.content = '<b>Primary School Options: </b><br/><a href=' + identifyResults.attributes.ES1516WEB + '>' + identifyResults.attributes.ES1516_REV + '</a>' +
'<br/><a href="' + identifyResults.attributes.MS2015WEB + '">' + identifyResults.attributes.MSPlan2015 + '</a>' +
'<br/><a href="' + identifyResults.attributes.HSWEBSITE + '">' + identifyResults.attributes.HS_2010_11 + '</a>' +
'<br/><b>Constituent District Magnet Options:</b>' +
'<br/><a href="' + identifyResults.attributes.CONST1WEB + '">' + identifyResults.attributes.CONST1 + '</a>' +
'<br/><b>Partial Magnet Options:</b>' +
'<br/><a href="' +
define([
//'dojo/_base/lang',
'esri/InfoTemplate'
], function (InfoTemplate) {
var formatters = {
attributeList: function (identifyResults) {
var features = [];
var template;
if (identifyResults) {
if (identifyResults.attributes.ZONE == '0-0') {
type: 'dynamic',
url: 'http://www.croppermap.com/arcgisunsecure/rest/services/Charleston/Charleston_ES_Plan_2015_Basemap_Tiled_130717/MapServer',
title: 'Elementary Schools',
noLegend: true,
collapsed: true,
options: {
id: 'elementaryschools',
opacity: 1,
visible: true,
imageParameters: imageParameters
widgets: {
growler: {
include: true,
id: 'growler',
type: 'domNode',
path: 'gis/dijit/Growler',
srcNodeRef: 'growlerDijit',
options: {}
},
bottom: {
{
type: 'dynamic',
url: 'http://maps6.cityoftrenton.com/arcgis/rest/services/FS/WaterMaintenance/MapServer',
title: 'Water Maintenance',
noLegend: true,
collapsed: true,
options: {
id: 'watermaintenance',
opacity: 1,
visible: false,
define([
'dojo/_base/declare',
'dijit/_WidgetBase',
'dijit/_TemplatedMixin',
'dijit/_WidgetsInTemplateMixin',
'dojox/grid/DataGrid',
'dojo/data/ItemFileWriteStore',
'dojo/_base/lang',
'dojo/topic',
'dojo/aspect',