protected function monkeyPatchPrint(): void { monkeyPatched=true; var cSymbol:CompositeSymbol; var monkeyPatchedRedlines:ArrayCollection=new ArrayCollection(); var i:int; var thisGraphic:Graphic; for each(var graphic:Graphic in redline.graphicProvider) { if (graphic.symbol is CompositeSymbol) { cSymbol=graphic.symbol as CompositeSymbol; for (i=0; i < cSymbol.symbols.length; i++) { thisGraphic=new Graphic(); thisGraphic.geometry=graphic.geometry; thisGraphic.symbol=cSymbol.symbols; monkeyPatchedRedlines.addItem(thisGraphic); } graphic.visible=false; } } if (monkeyPatchedRedlines.length >0) { monkeyPatchLayer=new GraphicsLayer(); monkeyPatchLayer.graphicProvider=monkeyPatchedRedlines; theMap.addLayer(monkeyPatchLayer); } }
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.