private var glowYellow:GlowFilter = new GlowFilter(0xFFFF00, 1.0, 16, 16, 50); private var lastIdentifyResultGraphic:Graphic = new Graphic(); //Add the 3 layers to the map in specific order //Need this graphics layer even though empty //for correct display of select outline on identify watershedBndyLayer = new ArcGISDynamicMapServiceLayer(url); resultGraphicsLayer = new GraphicsLayer; clickGraphicsLayer = new GraphicsLayer; clickGraphicsLayer.blendMode = BlendMode.LAYER; glowYellow.knockout = true; map.addLayer(watershedBndyLayer,2); //dynamic service layer displays above the other two map.addLayer(resultGraphicsLayer,3); //empty layer map.addLayer(clickGraphicsLayer,4); // identify results graphic with glowfilter In my identify task on the dynamic service in the mapClickHandler(event:MapMouseEvent) I add the graphic to the clickGraphicsLayer with the same fill color as the glowfilter. In my case, yellow. You can find all the code for a clickGraphic from the older forum, none of that was anything I came up with myself. But as I added the graphic to the layer: lastIdentifyResultGraphic.autoMoveToTop = false; lastIdentifyResultGraphic.filters = [glowYellow]; clickGraphicsLayer.add(lastIdentifyResultGraphic); then for the click graphic's attribute results, I used an InfoSymbolRenderer to dispaly the attributes Ex: var infoSym:InfoSymbol = new InfoSymbol(); var myRenderer:ClassFactory; if (infoSymFormat == "infoSymLabel"){ myRenderer = new ClassFactory(InfoSymLabelRenderer); infoSym.containerStyleName="infoLabel"; infoSym.infoRenderer = myRenderer; clickGraphic.symbol = infoSym; clickGraphic.attributes = arrayVerticalDataGridContent[0]; } then finally moved that to the top: clickGraphicsLayer.moveToTop(clickGraphic);
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.