[mapguide-users] Re: Partial transparent selection color of the Ajax viewer

Julien Leture julien.leture at gmail.com
Sun May 9 13:51:46 EDT 2010



Jason Birch wrote:
> 
> The selection transparency levels for selection are hard-coded:
> 
> http://trac.osgeo.org/mapguide/browser/trunk/MgDev/Common/Stylization/SE_Renderer.cpp#L135
> 
> http://trac.osgeo.org/mapguide/browser/trunk/MgDev/Common/Renderers/GDRenderer.cpp#L1537
> 
> http://trac.osgeo.org/mapguide/browser/trunk/MgDev/Common/Renderers/AGGRenderer.cpp#L1410
> 

Thank Jason for the lines reference.

I think I found a workaround: using CSS! As the selection overlay is
displayed inside a separate div on the Ajax viewer, it's easy to apply a
custom transparency:

#selImage1, #selImage2
{
	filter: alpha(opacity=50);
	-moz-opacity: 0.5;
	opacity: 0.5;
}

The result is exactly what I was looking for: the selection is less opaque
;)

-----
Julien Leture
.net developper
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Partial-transparent-selection-color-of-the-Ajax-viewer-tp5015591p5027263.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list