"
)
: "";
var phoneHTML = !!itemPhone
?
(
"
" +
"Phone: " + "" + itemPhone + "" +
"
"
)
: "";
var faxHTML = !!itemFax
?
(
"
" +
"Fax: " + "" + itemFax + "" +
"
"
)
: "";
var openingInfoHTML = itemOpeningInfo
?
(
"
" +
"Opening info:" + itemOpeningInfo + "" +
"
"
)
: "";
var countyHTML = itemCounty
?
(
"
"
+ " County:" + itemCountyTitle + ""
+ "
"
)
: "";
var emailHTML = itemEmail
?
(
''
)
: "";
var externalLinkHTML = itemExternalURL
?
(
"
"
)
: "";
if( emailHTML != '' || externalLinkHTML != '' ) {
footerIconsHTML =
''
} else {
footerIconsHTML = '';
}
var popupTemplate = new PopupTemplate({
content: "" +
"
" +
" " +
itemTitle +
"" +
" y2q2d
" +
locationHTML +
"
" +
itemBody +
"
" +
"" +
footerIconsHTML,
overwriteActions: true,
actions: []
});
var defaultGraphic = getLocationGraphiroperties(itemLatitude, itemLongitude, itemName, itemTitle, itemBody, itemImage, attributes, popupTemplate, true);
var defaultHighlightedGraphic = getLocationGraphiroperties(itemLatitude, itemLongitude, itemName, itemTitle, itemBody, highlightedImage, attributes, popupTemplate, false);
graphics.push(new Graphic(defaultGraphic));
highlightedGraphics.push(new Graphic(defaultHighlightedGraphic));
});
mapView.when(function () {
mapView.popup.on("trigger-action", function(event) {
var selectedFeature = mapView.popup.selectedFeature;
});
locationsLayer = new GraphicsLayer();
highlightedLocationsLayer = new GraphicsLayer();
locationsLayer.graphics.addMany(graphics);
highlightedLocationsLayer.graphics.addMany(highlightedGraphics);
locationsLayer.on("mouse-over", function(evt){
map.setMapCursor("pointer");
});
var initialGoToConfig = {};
initialGoToConfig.target = graphics;
return mapView.goTo(initialGoToConfig)
.then(function () {
map.add(locationsLayer);
return mapView.whenLayerView(locationsLayer)
})
.then(function (layerView) {
map.add(highlightedLocationsLayer);
return mapView.whenLayerView(highlightedLocationsLayer)
})
.then(function (layerView) {
callbackArray.forEach(function (callback) {
if (callback) callback(mapView, graphics, highlightedGraphics, zoomToClickedLocation);
});
});
}, function (error) {
console.error("Error: %o", error);
});
});
});
Post Time 4PM (EST) gb13
Sunday ~ Thursday 432c2i
Miami Valley
6000 State Route 63 Lebanon, Ohio 45036
Phone: (513) 934-7070
Fax: (513) 933-8071
Please wait, we are generating a dynamic map with locations.
Please wait, we are creating the directory with locations.