Hi Paloma, I need at some point to put a cache over the map. So I'm interested in doing or
a) What you said: "It is technically possible to bring the logo/ copyrights above transparent overlays". b) The possibility to put a transparency cache over the whole map, and then repositioning the "powered by Google" over the overlay as a png file (right on the same pixels). And then do the same with the "imagery ..." sentence. Any chance we could have access to the Google logo in png format to do this kind of overlay? We could then obscure the map but always keep the logo on top of everything. Thanks for your help. Note: Apophenina, I couldn't make your class work as "height" and "width" are no property of the Map class. Neither is the "addChild" method inside OverlayBase. On Apr 27, 3:55 am, Apophenian <[email protected]> wrote: > Here is some code that uses anoverlayto 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 anoverlaythat 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 varoverlay: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 -~----------~----~----~----~------~----~------~--~---
