Created
March 6, 2015 15:43
-
-
Save kflaw/c24ed8f853ced979436c 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
// config object definition: | |
// {<layer id>:{ | |
// <sub layer number>:{ | |
// <pop-up definition, see link below> | |
// } | |
// }, | |
// <layer id>:{ | |
// <sub layer number>:{ | |
// <pop-up definition, see link below> | |
// } | |
// } | |
// } | |
// for details on pop-up definition see: https://developers.arcgis.com/javascript/jshelp/intro_popuptemplate.html | |
define(function () { | |
function createSharedTemplateMS () { | |
function myFunction(){ | |
alert('Hi!'); | |
} | |
return { | |
title:"Map Sets", | |
description: [ | |
'<b>Name:</b> {shtlabel}<br>', | |
'<b>County:</b> {county}<br>', | |
'<b>Route:</b> {route}<br>', | |
'<b>Postmile:</b> {postmile}<br>', | |
'<b>Map Type:</b> {maptype} <br>', | |
'<b>Hanging File:</b> {hangfile}<br>', | |
'<b>Revision Date:</b> {mapdate}<br>', | |
'<b>Original Draft Decade:</b> {mapdecade}<br>', | |
'<b>Coordinate System:</b> {projection}<br>', | |
'<div align=center>{image_web_path}</div><br>', | |
'<div align=center>{error_report_path}</div><br>', | |
'<div align=center>{grantor_box_path}</div>', | |
'<a href="javascript:void(0)" onclick="return myFunction()">Test Link</a>' | |
].join('') | |
}; | |
} | |
function createSharedTemplatePrcl () { | |
return { | |
title:"Parcels", | |
description: [ | |
'<b>Name:</b> {Name}<br>', | |
'<b>County:</b> {County}<br>', | |
'<b>Route:</b> {Route}<br>', | |
'<b>Postmile:</b> {Postmile}', | |
'<br><b>Description:</b> {Description}<br>', | |
'<b>Area:</b> {Area}<br>', | |
'<b>Map Sheet:</b> {Map Sheet}<br>', | |
'<b>Parcel Type:</b> {Parcel Type}<br>', | |
'<b>Parcel Phase:</b> {Parcel Phase}', | |
'<br><b>Geometry Quality:</b> {Geometry Quality}<br>', | |
'<b>Source:</b> {Source}<br>', | |
'<div align=center>{error_report_path}</div><br>', | |
'<br><div align=center>{doc_path}</div>' | |
].join('') | |
}; | |
} | |
return { | |
map:true, | |
mapClickMode:true, | |
mapRightClickMenu:true, | |
identifyLayerInfos:true, | |
identifyTolerance:5, | |
identifies: { | |
mapSets: { | |
2: createSharedTemplatePrcl(), | |
3: createSharedTemplatePrcl(), | |
4: createSharedTemplatePrcl(), | |
5: createSharedTemplatePrcl(), | |
7: createSharedTemplateMS(), | |
8: createSharedTemplateMS(), | |
9: createSharedTemplateMS(), | |
10: createSharedTemplateMS(), | |
11: createSharedTemplateMS(), | |
12: createSharedTemplateMS(), | |
13: createSharedTemplateMS(), | |
14: createSharedTemplateMS() | |
} | |
} | |
} | |
// return { | |
// map:true, | |
// mapClickMode:true, | |
// mapRightClickMenu:true, | |
// identifyLayerInfos:true, | |
// identifyTolerance:5, | |
// identifies: { | |
// mapSetsFS: { | |
// 0: createSharedTemplateMS() | |
// } | |
// } | |
// } | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment