Created
August 19, 2015 18:13
-
-
Save kcarrier/d28cec24ebc9a2f4f708 to your computer and use it in GitHub Desktop.
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
{ | |
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, | |
imageParameters: imageParameters, | |
infoTemplates: { | |
0: { | |
infoTemplate: new PopupTemplate({ | |
title: 'Water Maintenance', | |
showAttachments: true, | |
description: [ | |
'<table class="attrTable">', | |
'<tr valign="top">', | |
'<td class="attrName">Maintenance Type :</td>', | |
'<td class="attrValue">{SUBTYPE}</td>', | |
'</tr>', | |
'<tr valign="top">', | |
'<td class="attrName">Type of Repair :</td>', | |
'<td class="attrValue">{TYPEREPAIR}</td>', | |
'</tr>', | |
'<tr valign="top">', | |
'<td class="attrName">Date Inspected :</td>', | |
'<td class="attrValue">{DATEINSPECTED}</td>', | |
'</tr>', | |
'<tr valign="top">', | |
'<td class="attrName">Diameter :</td>', | |
'<td class="attrValue">{DIAMETER}</td>', | |
'</tr>', | |
'<tr valign="top">', | |
'<td class="attrName">Type of Material :</td>', | |
'<td class="attrValue">{TYPEMATERIAL}</td>', | |
'</tr>', | |
'<tr valign="top">', | |
'<td class="attrName">Depth :</td>', | |
'<td class="attrValue">{DEPTH}</td>', | |
'</tr>', | |
'<tr valign="top">', | |
'<td class="attrName">Condition :</td>', | |
'<td class="attrValue">{CONDITION}</td>', | |
'</tr>', | |
'<tr valign="top">', | |
'<td class="attrName">Comment :</td>', | |
'<td class="attrValue">{COMMENTS}</td>', | |
'</tr>' | |
].join('') | |
}) | |
}, | |
1: { | |
infoTemplate: new PopupTemplate({ | |
title: 'Valve Request', | |
showAttachments: true, | |
description: [ | |
'<table class="attrTable">', | |
'<tr valign="top">', | |
'<td class="attrName">Numbeer Turns To Close :</td>', | |
'<td class="attrValue">{NUMTURNSCLOSE}</td>', | |
'</tr>', | |
'<tr valign="top">', | |
'<td class="attrName">Direction To Close :</td>', | |
'<td class="attrValue">{DIRECTIONCLOSE}</td>', | |
'</tr>', | |
'<tr valign="top">', | |
'<td class="attrName">Address :</td>', | |
'<td class="attrValue">{LOCATION}</td>', | |
'</tr>', | |
'<tr valign="top">', | |
'<td class="attrName">Type of Valve :</td>', | |
'<td class="attrValue">{VALVETYPE}</td>', | |
'</tr>', | |
'<tr valign="top">', | |
'<td class="attrName">Broken or Closed :</td>', | |
'<td class="attrValue">{STATUS}</td>', | |
'</tr>', | |
'<tr valign="top">', | |
'<td class="attrName">Date Maintenanced :</td>', | |
'<td class="attrValue">{MAINTDATE}</td>', | |
'</tr>', | |
'<tr valign="top">', | |
'<td class="attrName">Work Accomplished :</td>', | |
'<td class="attrValue">{WORK_}</td>', | |
'</tr>', | |
'<tr valign="top">', | |
'<td class="attrName">Type of Close :</td>', | |
'<td class="attrValue">{CLOSETYPE}</td>', | |
'</tr>' | |
].join('') | |
}) | |
} | |
} | |
}, | |
layerControlLayerInfos: { | |
sublayers: true | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment