I found this technique previously on a Google search and adapted it
for my own purposes. Of course it depends on unsupported
implementation details of the Google Maps Flash API.
var map : com.google.maps.Map; // your map instance
var mapSaturation : Number; // 0 = completely transparent, 50 =
completely unsaturated, 100 = completely saturated
var mapLayerFilter : ColorMatrixFilter = new ColorMatrixFilter();
var matrix : com.gskinner.geom.ColorMatrix = new
com.gskinner.geom.ColorMatrix();
matrix.adjustSaturation(Math.max(0, 2 * (mapSaturation - 50))
- 100);
mapLayerFilter.matrix = matrix;
var mapSprite : Sprite = ((map.getChildAt(1) as
Sprite).getChildAt(0) as Sprite);
mapSprite.filters = [mapLayerFilter];
mapSprite.alpha = Math.min(1, 2 * mapSaturation / 100);
On Jan 7, 1:21 am, rachke1 <[email protected]> wrote:
> How could I dim the opacity of the map and still maintain the opacity
> of the polygons I have drawn on it?
> The map colors are interfering with my polygons.
> Or alternatively how can add another maptype to the maptype control
> that would be NOMAP.
>
> I thank you for your time
--
You received this message because you are subscribed to the Google Groups
"Google Maps API For Flash" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api-for-flash?hl=en.