Hi Bart-

At the moment, our code assumes that there's a non-transparent layer
as the base map for any map type.

If the goal is to soften the colours of the map tiles, there are a
couple of ways of doing this:

1. Create a combination of transparent/non-transparent tiles.
This can be done by adding a second tile layer to the custom map type
the user is creating.
That layer would contain simple grey tiles.
The fully opaque (alpha = 1.0) layer may be added behind the user's
semi-transparent (alpha = 0.7) layer of tiles.
Alternatively, a semitransparent (alpha = 0.3) grey layer may be added
in front of the user's original opaque (alpha = 1.0) layer of tiles.
In both cases, the colors of the user's tile layer will be diluted (alpha = 0.7)

2. Add a custom overlay that covers the entire map viewport on top of the map:

public class MyOverlayRectangle extends OverlayBase {
  // previous know map size.
  private var oldSize:Point = null;

  public function MyOverlayRectangle() {
    super();
  }

  // positionOverlay override.
  public override function positionOverlay(zoomChanged:Boolean):void {
    var mapSize:Point = pane.map.getSize();
    if (oldSize == null || !mapSize.equals(oldSize)) {
      oldSize = mapSize;
      graphics.clear();
      graphics.lineStyle(0, 0, 0);
      graphics.beginFill(0xA0A0A0, 0.3); // color used to dampen the
intensity of tiles is A0A0A0, intensity 0.3
      graphics.drawRect(0, 0, mapSize.x, mapSize.y);
      graphics.endFill();
    }
  }
}

If neither of those work for you, then feel free to file a feature request.

- pamela

On Wed, Jan 21, 2009 at 10:57 PM, Bart <[email protected]> wrote:
>
> Oops, obviously i meant alpha < 1 instead of non zero.
>
> For a base layer alpha=1 seems the most logical choice, but sometimes
> to soften the colors of the original map tiles i like to use a bit of
> transparency, like alpha=0.7 in the posted examples...
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to