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.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to