Web Content Viewer
Actions
" ) : ""; 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 ? ( "
" + "Website: " + "" + ""+itemExternalURL+"" + "" + "
" ) : ""; if( emailHTML != '' || externalLinkHTML != '' ) { footerIconsHTML = '' } else { footerIconsHTML = ''; } var popupTemplate = new PopupTemplate({ content: "" + "

" + " " + itemTitle + "" + " y2q2d

" + locationHTML + "
" + itemBody + "
" + "
" + openingInfoHTML + phoneHTML + faxHTML + countyHTML + "
" + 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); }); }); });

Eldorado Scioto Downs m513x

Please wait, we are creating the directory with locations.