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

Jason Birch jason at jasonbirch.com
Sun May 9 14:06:12 EDT 2010


Hey, that's really cool. Are there browser limitations to that?

On 2010-05-09, Julien Leture <julien.leture at gmail.com> wrote:
>
>
> 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
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>


More information about the mapguide-users mailing list