Here is some code that uses an overlay to put a nice transparency
behind the google and copyright notices etc
import com.google.maps.Map;
import com.google.maps.PaneId;
import com.google.maps.interfaces.IMap;
import com.google.maps.interfaces.IPane;
import com.google.maps.overlays.OverlayBase;
import flash.display.Shape;
/**
* Adds an overlay that puts a nice transparent background behind the
google/copyright notices
* put it on the map like so:
* var copy:CopyrightOverlay = new CopyrightOverlay();
* map.addOverlay(copy);
* */
public class CopyrightOverlay extends OverlayBase
{
private var overlay:Shape;
private var bgColor:uint = 0xffffff;
private var overlayHeight:uint = 50;
private var overlayAlpha:Number = 0.7;
public function CopyrightOverlay()
{
this.overlay = new Shape();
this.overlay.alpha = overlayAlpha;
super();
}
override public function getDefaultPane(map:IMap):IPane
{
return map.getPaneManager().getPaneById
(PaneId.PANE_OVERLAYS);
}
override public function positionOverlay(zoom:Boolean):void
{
trace('copyright positionOverlay');
overlay.graphics.clear();
overlay.graphics.beginFill(bgColor);
overlay.graphics.drawRect(0,(pane.map as Map).height -
overlayHeight,(pane.map as Map).width, overlayHeight);
overlay.graphics.endFill();
addChild(overlay);
}
}
On Apr 20, 3:05 pm, pamela fox <[email protected]> wrote:
> Hi MR-
>
> That's against the terms and conditions,
> 7.4d:http://code.google.com/apis/maps/terms.html
>
> You agree that you will not remove, obscure, or alter any proprietary
> rights notices (includingcopyrightand trademark notices, Terms of
> Use links, or Brand Features) that may be affixed to or provided
> through the Service.
>
> It is technically possible to bring the logo/copyrights above
> transparent overlays, but not in an easy way. The best solution now is
> to design around that bottom part.
>
> - pamela
>
> On Sat, Apr 18, 2009 at 2:20 AM, mrandolph <[email protected]> wrote:
>
> > I'm working on an app, and our current design obscures the lower part
> > of the map screen (somewhat transparently obscured)...is this OK, or
> > is this against the terms and conditions?
>
> > MR
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---