Skip to content

Instantly share code, notes, and snippets.

@kcarrier
Created August 26, 2014 16:37
Show Gist options
  • Save kcarrier/548ab143e87f8104e487 to your computer and use it in GitHub Desktop.
Save kcarrier/548ab143e87f8104e487 to your computer and use it in GitHub Desktop.
define({
map: true,
mapClickMode: true,
mapRightClickMenu: true,
identifyLayerInfos: true,
identifyTolerance: 5,
// 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
identifies: {
parpopup: [
'<table class="attrTable">',
'<tr valign="top">',
'<td class="attrName">Parcel ID :</td>',
'<td class="attrValue"><a href="http://www.clermontauditorrealestate.org/Datalets/Datalet.aspx?UseSearch=no&pin={PIN}" target="_blank">{PIN}</a></td>',
'</tr>',
'<tr valign="top">',
'<td class="attrName">Full Address :</td>',
'<td class="attrValue">{Full Address}</td>',
'</tr>',
'<tr valign="top">',
'<td class="attrName">Owner 1 :</td>',
'<td class="attrValue">{OWN1}</td>',
'</tr>',
'<tr valign="top">',
'<td class="attrName">Owner 2 :</td>',
'<td class="attrValue">{OWN2}</td>',
'</tr>',
'<tr valign="top">',
'<td class="attrName">Legal 1 :</td>',
'<td class="attrValue">{LEGAL1}</td>',
'</tr>',
'<tr valign="top">',
'<td class="attrName">Legal 2 :</td>',
'<td class="attrValue">{LEGAL2}</td>',
'</tr>',
'<tr valign="top">',
'<td class="attrName">Legal 3 :</td>',
'<td class="attrValue">{LEGAL3}</td>',
'</tr>',
'<tr valign="top">',
'<td class="attrName">Acres :</td>',
'<td class="attrValue">{ACRES}</td>',
'</tr>',
'</table>'
],
parcels: {
7: {
title: 'Parcels',
description: parpopup.join(''),
mediaInfos: [{
type: 'image',
value: {
sourceURL: 'http://www.clermontauditorrealestate.org/iDocs/iPhotoDownload.aspx?pin={PIN}'
}
}]
},
9: {
title: 'Parcels',
description: parpopup.join(''),
mediaInfos: [{
type: 'image',
value: {
sourceURL: 'http://www.clermontauditorrealestate.org/iDocs/iPhotoDownload.aspx?pin={PIN}'
}
}]
},
11: {
title: 'Parcels',
description: parpopup.join(''),
mediaInfos: [{
type: 'image',
value: {
sourceURL: 'http://www.clermontauditorrealestate.org/iDocs/iPhotoDownload.aspx?pin={PIN}'
}
}]
},
13: {
title: 'Parcels',
description: parpopup.join(''),
mediaInfos: [{
type: 'image',
value: {
sourceURL: 'http://www.clermontauditorrealestate.org/iDocs/iPhotoDownload.aspx?pin={PIN}'
}
}]
},
15: {
title: 'Parcels',
description: parpopup.join(''),
mediaInfos: [{
type: 'image',
value: {
sourceURL: 'http://www.clermontauditorrealestate.org/iDocs/iPhotoDownload.aspx?pin={PIN}'
}
}]
},
17: {
title: 'Parcels',
description: parpopup.join(''),
mediaInfos: [{
type: 'image',
value: {
sourceURL: 'http://www.clermontauditorrealestate.org/iDocs/iPhotoDownload.aspx?pin={PIN}'
}
}]
}
}
}
});
//# sourceMappingURL=identify.js.map
@DavidSpriggs
Copy link

define({
    map: true,
    mapClickMode: true,
    mapRightClickMenu: true,
    identifyLayerInfos: true,
    identifyTolerance: 5,

    // 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

var parpopup = [
                '<table class="attrTable">',
                '<tr valign="top">',
                '<td class="attrName">Parcel ID :</td>',
                '<td class="attrValue"><a href="http://www.clermontauditorrealestate.org/Datalets/Datalet.aspx?UseSearch=no&pin={PIN}" target="_blank">{PIN}</a></td>',
                '</tr>',
                '<tr valign="top">',
                '<td class="attrName">Full Address :</td>',
                '<td class="attrValue">{Full Address}</td>',
                '</tr>',
                '<tr valign="top">',
                '<td class="attrName">Owner 1 :</td>',
                '<td class="attrValue">{OWN1}</td>',
                '</tr>',
                '<tr valign="top">',
                '<td class="attrName">Owner 2 :</td>',
                '<td class="attrValue">{OWN2}</td>',
                '</tr>',
                '<tr valign="top">',
                '<td class="attrName">Legal 1 :</td>',
                '<td class="attrValue">{LEGAL1}</td>',
                '</tr>',
                '<tr valign="top">',
                '<td class="attrName">Legal 2 :</td>',
                '<td class="attrValue">{LEGAL2}</td>',
                '</tr>',
                '<tr valign="top">',
                '<td class="attrName">Legal 3 :</td>',
                '<td class="attrValue">{LEGAL3}</td>',
                '</tr>',
                '<tr valign="top">',
                '<td class="attrName">Acres :</td>',
                '<td class="attrValue">{ACRES}</td>',
                '</tr>',
                '</table>'
        ].join('');

    identifies: {
        parcels: {
            7: {
                title: 'Parcels',
                description: parpopup,
                mediaInfos: [{
                    type: 'image',
                    value: {
                        sourceURL: 'http://www.clermontauditorrealestate.org/iDocs/iPhotoDownload.aspx?pin={PIN}'
                    }
                }]
            },
            9: {
                title: 'Parcels',
                description: parpopup,
                mediaInfos: [{
                    type: 'image',
                    value: {
                        sourceURL: 'http://www.clermontauditorrealestate.org/iDocs/iPhotoDownload.aspx?pin={PIN}'
                    }
                }]
            },
            11: {
                title: 'Parcels',
                description: parpopup,
                mediaInfos: [{
                    type: 'image',
                    value: {
                        sourceURL: 'http://www.clermontauditorrealestate.org/iDocs/iPhotoDownload.aspx?pin={PIN}'
                    }
                }]
            },
            13: {
                title: 'Parcels',
                description: parpopup,
                mediaInfos: [{
                    type: 'image',
                    value: {
                        sourceURL: 'http://www.clermontauditorrealestate.org/iDocs/iPhotoDownload.aspx?pin={PIN}'
                    }
                }]
            },
            15: {
                title: 'Parcels',
                description: parpopup,
                mediaInfos: [{
                    type: 'image',
                    value: {
                        sourceURL: 'http://www.clermontauditorrealestate.org/iDocs/iPhotoDownload.aspx?pin={PIN}'
                    }
                }]
            },
            17: {
                title: 'Parcels',
                description: parpopup,
                mediaInfos: [{
                    type: 'image',
                    value: {
                        sourceURL: 'http://www.clermontauditorrealestate.org/iDocs/iPhotoDownload.aspx?pin={PIN}'
                    }
                }]
            }

        }
    }
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment