Constant opacity when overlapping graphics

804
2
05-07-2010 02:33 PM
MostafaAsadi
New Contributor
Hi,

I have a buffer search that returns some results on the map. The results are then displayed with a solid circle around them. The problem is, when these buffer circles overlap each other they get darker. Is there a way I could make them preserve their opacity when they overlap?

Here's the piece of code:
geoService.buffer(params, dojo.hitch(this, function(graphics) {
 //console.debug("Buffer completed");
 var symbol = new esri.symbol.SimpleFillSymbol("solid", new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_NULL), new dojo.Color([255, 255, 0, 0.5]));
 var gBuffer = new esri.Graphic(graphics[0].geometry, symbol);
 
 this.map.graphics.add(gBuffer);
}));
0 Kudos
2 Replies
DerekSwingley
Occasional Contributor
How about unioning your buffer geometries using a geometry service each time a new buffer is added? I hacked up the buffer a point sample to generate the attached screen shot.
0 Kudos
MostafaAsadi
New Contributor
Thanks! I didn't know about the union property.
0 Kudos