The article you are trying to access is permanently deleted.
N.fn.initMapIcons = function() { var qTask, query; qTask = new esri.tasks.QueryTask(N.fn.getLayerURL("Political", "Polling Places")); query = new esri.tasks.Query(); query.returnGeometry = true; query.outFields = ["PRECINCT", "SITE", "SITE_ADDRESS", "SITE_ST", "SITE_ZIP"]; // This is a trivial query because we want to grab all values in the table query.where = "1=1"; qTask.execute(query, function(featureSet) { var iconsLayer, i, graphic; iconsLayer = N.myMap.getLayer("Political_Icons"); // Place all our findings into the special graphics layer for (i = 0; i < featureSet.features.length; i++) { graphic = featureSet.features; graphic.setSymbol(new esri.symbol.PictureMarkerSymbol("images/mapIcon_pollingPlaces.png", 24, 24)); iconsLayer.add(graphic); } // Enable events so that we can manipulate/customize them, as seen below N.myMap.graphics.enableMouseEvents(); dojo.connect(iconsLayer, "onMouseOver", function(evt) { var content, geom; content = evt.graphic.attributes; geom = esri.geometry.toScreenGeometry(N.myMap.extent, N.myMap.width, N.myMap.height, evt.graphic.geometry); N.myMap.infoWindow.setTitle(content.SITE); N.myMap.infoWindow.setContent(content.PRECINCT); N.myMap.infoWindow.resize(355, 140); N.myMap.infoWindow.show(geom, N.myMap.getInfoWindowAnchor(geom)); N.myMap.setMapCursor("pointer"); content = geom = null; }); dojo.connect(iconsLayer, "onMouseOut", function(evt) { N.myMap.setMapCursor("default"); N.myMap.infoWindow.hide(); }); iconsLayer = graphic = null; }, function(error) { console.log("Error at initMapIcons: " + error); }); };