My favorites | Sign in
Project Home Wiki Issues Source
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 853: Feature Request: Let Developers call BitmapData.draw to Enable Flash Effects/3D
159 people starred this issue and may be notified of changes. Back to list
Status:  Obsolete
Closed:  Sep 2011

Sign in to add a comment
Reported by, Nov 14, 2008
Many developers would like to use maps with Papervision3d and other Flash
effects/transitions, and these require taking snapshots with
BitMapData.draw(). Currently this is not allowed due to terms of service
restrictions - the tiles must be displayed with the correct attribution,
and they cannot be massively harvested.

Please star this issue if this concerns you and also attach
code/screenshots of what you're trying to do, so that we can understand the
use case for allowing this.

For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.

Nov 14, 2008
Possibility of obtaining the bitmap of the screen where the map this! Without it we 
can not do simple animations on screens with the googlemap
Nov 25, 2008
 Issue 887  has been merged into this issue.
Nov 26, 2008
This is needed for effects to work properly...For example I create a map that i slide
in from the left and remove to the right...
Dec 3, 2008
I added the map to a book component and when it does the flip I get the above error.
 Doesn't look like there's an easy way out of this.
Jan 7, 2009
I've been trawling forums etc regarding googles map api, gmap, umap etc and am 
pleased to see a proactive stance from Pamela at google, well done. For a user to be 
able to print a map form a non commercial page is fundamental, have we just gone 
back 2 decades.
Jan 7, 2009
have google maps set up to find certain brands located near you for a liquor company. using papervision on the 
transitions ( spinning the information around and the next page you chose is on the back ) and in order to switch 
from my active movie clip to my flip animation, i use bitmapdata.draw and paste it into a papervision plane that 
rotates. this seems so simple i hope they fix it soon.
Jan 17, 2009
Having the ability to create useful applications that users can print their results to view later is essential.  Because 
of the variance of browsers printing capabilities, being able to save to PDF seems like the only reliable way to do 
this.  I think it is critical to allow saving/custom printing and programming access to the map images.
Jan 21, 2009
I would like to assist transit agency's in creating pdf's of thier routes using the 
same data they are using in Google Transit using Alive PDF. It can be done using 
Air. See attached.
6.5 KB   Download
Feb 18, 2009
I am creating a site where the transition to one section involves the screen freezing
and then burning away. I apply a distortion map filter to a dynamic screenshot. This
works for all areas of the site except the one using google maps. It would have been
great to have a workaround for this, we will have to remove the transition entirely now.
Feb 19, 2009
Agreed. It's quite a drawback not being able to access the images as data, only as
content. Something to petition both Google and Adobe about?
Feb 19, 2009
all google has to do is to host cross domain policy file. there was enough time 
since Nov 14, 2008 to do so, unless they do not want to.
Mar 3, 2009
We need it to get smoother transitions. It is really hard to tween google maps. 
thanks in advance
Mar 28, 2009
yes,its a very basic necessity
Apr 28, 2009
I was going to use it in our company website, but because of these problems I think I
also have to remove it! What a pitty!
Apr 29, 2009
RIA should be able to have effect on maps...
May 21, 2009
It's a real annoying problem :(,so cause I can not use gmap
May 24, 2009
Changing status of "Accepted" issues to "Acknowledged", to clarify their 

We may not be able to resolve all bugs or fulfill all feature requests, but 
we do thank you for filing them, and we will continually revisit all 
acknowledged issues and evaluate their feasibility. Thanks!

Status: Acknowledged
May 25, 2009
Does this *really* means "rejected"?
May 25, 2009
No, it doesn't. I applied the same change to all "Accepted" issues - it's just a 
change in wording. Feature requests could be fulfilled at any time.
Jun 1, 2009
#20 hatem.taleb
Could we have an ETA for this issue?
Jun 14, 2009
Same here. I was going to use gMap + Away3D. Now I have to find another solution.
Jun 18, 2009
This feature is really a necessity, any news about this?
Jun 26, 2009
This would indeed be a very useful feature!
Jun 28, 2009
Could we have an update on the issue?
Jun 28, 2009
#25 hatem.taleb
this is becoming really urgent, I am stuck and I can any solution to get rid of the
sandbox error message :(
Jul 18, 2009
There is any new information about psoibility to use BitmapData.draw() in flash?
Aug 4, 2009
This is some kind of bug. If all applicaction in flex use some effects you have to
avoid using effect in part of for e.g site because there is a map. More over there no
way to use more complex effects that use masks. Only Fade is some kind of solution.
Aug 4, 2009
This is some kind of bug. If all applicaction in flex use some effects you have to
avoid using effect in part of for e.g site because there is a map. More over there no
way to use more complex effects that use masks. Only Fade is some kind of solution.
Aug 5, 2009
As I understand it, Google didn't want anybody to be able to be able to call
BitmapData.draw() on a map to harvest the bitmap.  Both this issue (853) and  issue
545  to do with priting a map arose because of this issue.

However, it now appears that  issue 545  has been fixed by adding a new function
getPrintableBitmap().  But what about this issue?  The need to run effects over maps
hasn't gone away, so if the printing can be fixed, can we have this one fixed as well
Aug 5, 2009
holy ... their solution to  issue 545  clearly indicates that there is no chance for 
positive resolution to BitmapData.draw :( it is sad to see google map team being 
such a security paranoids.
Aug 5, 2009
This is as far as I could take the visuals without the use of BitmapData.draw().

Simple de-saturation (Tweener.addTween(gMapHolder, {_saturation:0, time:0});).

I made this quick demo last year. I also experienced the failure when I tried to map
gMap in Away3D. I created a demo that uses gMap's geo-location API, just not the
visuals. I figured we could switch to a 2D view on-click on a location.


Aug 6, 2009
Guys, this is a MAJOR let-down. You can't create a Flash API and then disable a major 
feature which in turn prevents the use within Flash 3D engines. I'm using Away3D and 
want to use the map on a Plane's material texture. Here is a demo of your failure:

Please don't allow bureaucracy to stifle your/our potential for creativity and 
innovation! It's one thing requesting a feature that hasn't yet been created, but 
it's completely another disabling existing functionality. What ever happened to 
Google's "Don't be evil" philosophy?
Aug 6, 2009
If other developers weren't evil and scraping our tiles, we would feel much better 
offering this functionality. :)

We'll continue looking for solutions that would both honor our data provider 
contracts (and their need for tile protection) and enable developer flexibility, but 
it's been a non-trivial problem. Thanks for your patience.

Take a look at the new native built-in 3d perspective in the API, perhaps it can help 
you with your project.
Aug 6, 2009

"the tiles must be displayed with the correct attribution,
and they cannot be massively harvested"

OK, fair enough. Keep this in the terms of service, and penalise anyone who violates 
this. There are many other points in the Terms of Service that you don't/can't 
enforce with preventative technical barriers, but instead simply penalise people who 
violate them.

You're using a bazooka to kill a mosquito here and subsequently stopping legitimate 
usage. Your tactics come from the same mindset as DRM.
Aug 6, 2009
Thank you Pamela and Google!!

I have found the map.getPrintableBitmap() call to be all I need to provide my clients with printable maps of what 
they see on screen.  It works great!

Thank you thank you.

Aug 6, 2009
this is ridiculous, when someone "scrapped the tiles" in flash for the first time by 
porting javascript code, his project was featured on google code front page and 
generally was praised. now people trying to do the same thing are treated as theifs.
Aug 7, 2009
Hey Pamela, don't get me wrong. I don't mean to sound ungrateful for what you've 
obviously put blood, sweat and tears into. You've done an absolutely amazing job! And 
I'm sure, as a developer yourself, you probably share my sentiments. The new Map3D is 
amazing, and I'll hopefully find a use for it on future projects. Please keep this 
request active though :)

@makc - always good to see you around! lol
Aug 25, 2009
We'd like to have this feature.

But note you can actually do a lot if you nest the Map in a Sprite and animate it,
also most filters will work.
Nov 30, 2009
Security sandbox violation: BitmapData.draw error 
Nov 30, 2009
Any fix for this issue now in December 2009?
Dec 1, 2009
Read the docs: BitmapData.draw coudln't be implemented, but map.getPrintableBitmap()
was added some time ago and can be used for most situations with a little effort.
Dec 1, 2009
#42 hatem.taleb
I don't see how we can use getPrintableBitmap inside flex :(

Please star this issue, thanks!

Dec 1, 2009
Agree.  "Reading the docs" doesn't help me with Flex.  I take it there are no plans
to support it any time soon? 

Anyway, the 3D Maps API rocks!  It just would be great if you could work in this new
feature somehow ... someway.  Thanks!
Dec 1, 2009
#44 juandelia
Good Morning,

Could you please add a flag that the devs could use, under our responsibility, to
activate this feature?

I mean, what could be the possible damage on give this feature? Maybe there are some
big security issues we all commenting here are not considering and would be great to
hear them from someone.

Thanks for your time,
Dec 1, 2009
#45 bjaysheel
Hey guys,
   Does anyone have a work around when google map is used in a flex component which
has effects attached.  I have a google map in a flex panel that plays hide/show
effect.  I tried to listen for the hide effect and remove the map, but that didn't
work.  Any other ideas?

Thank you,
Dec 28, 2009
The ability to apply effects to google maps is critical for any developer striving to
fulfill client and user expectations for RIAs. Static maps are just not satisfactory
anymore ! We don't want to repurpose Google maps only apply simple everyday
transitions ! Give us a cross domain policy file and we'll be happy !
Jan 8, 2010
We'd like to have this feature.

Jan 8, 2010
We'd like to have this feature.

Jan 13, 2010
Feb 3, 2010
could you maybe offer a workaround for papervision (like creating a papervision
subclass that uses getPrintableBitmap instead of BitmapData.draw()) ?
Feb 11, 2010
#51 allows BitmapData.draw(). I posted an example and source on my blog:

This is of course not ideal. But Google's excellent API can be used for Data and
Geocoding and OSM for rendering, if you want to apply 3D transformations and Bitmap


Feb 12, 2010
thx a lot jerome, this info realy helped.
To save anyone from huge headaches, I would suggest you use the openscales API for
Papervision as the ModestMaps API won't work for it.
hope this helps.
Feb 12, 2010
Hey Dave,

I tried to get a ModestMap Map to work in PV3D. I got the map to render but the
interaction won't work. Since I mostly use Away3D these days, I am not sure if I am
supposed to do something special in PV3D to pass the mouse interactions to a material :)

PV3D Example:

Feel free to email me if you have a fix for this!
Mar 9, 2010
Sorry guys, but this is just.. absurd. 
Blocking the feature, that is the main advantage of rendering engine like Flash/Flex...
I dont know... it`s very disappointing.

Mar 31, 2010
I want only to do a 3d rotation of the map to reveal another section of the
application that is behind the map ....

This made me very sad, because is 2 days that I work on it, on my laptop work
perfectly, but when I put it on the server to try the application online ... it
doesn't work :(

I think I couldn't use the flip on the map, because the project have a deadline I
can't wait :(

Mar 31, 2010
WOW I found a solution !!

Using the getPrintableBitmap() method but I don't know if is a solution for the guys
that want to use some 3D engines
Apr 1, 2010
@jerome.maureydelaunay: You should use a MovieMaterial and set its interactive
property to true, I hope that fixes it. Sorry I didn't answer sooner for some reason
I didn't receive any updates on the topic.
Apr 1, 2010
@jerome.maureydelaunay: Also set your viewports interactive property to true
Apr 1, 2010
I uploaded a Simple Example of a Openscales on a Papervision Plane with the source
code here:
hope that helps
Jul 1, 2010
(No comment was entered for this change.)
Jul 7, 2010
please allow us to access this data.
Jul 10, 2010
This is indeed a major disappointment. 
We can't use Google maps with effects in Flex.

Which ends up not being able to use Google maps. As I guess more and more people are using effects these days I guess Google needs to find a solution for this in the future anyway.

As a quickfix to help us out: couldn't you just return a blurry or watermarked version of the map when we call BitmapData.draw instead of generating the error?
Aug 9, 2010
Most of the commentators need access to the bitmapdata for either effects or printing. I am troubled for another reason.

I would like access to the bitmapdata for map image analysis.  For example, instead of my users annotating the map by hand with polygon overlays, I believe I could automate the process by analyzing individual pixels.  In my case, a certain pixel color and threshold would be sufficient for me to automate an otherwise very laborious process.

Imagine this example with a satellite image.

Does anyone know if Bing Maps gives developers access to this data?
Aug 17, 2010
Currently, I'm still not able to print a map with markers (custom icons).  The sandbox error complaining about the check policy is being thrown.  I have tried everything I can think of from crossdomain.xml to trying to force a load on the Image.loaderContext.  Any thoughts?

Dec 9, 2010
Hi everybody, hi Pamela!

I'm trying to put a GoogleMap on a 3d plane primitive, in AS3. I've got the bitmap.draw security error, as everybody does. I tried many many things to do that, but without luck !
I saw it working with Flex but i'm not going that way. 

Is there a real possibility to do that ? If not, has everyone found another map that can fit to a 3d plane ?

Tx for any response.
Bertrand from France.
Dec 9, 2010
Bertrand, you can try Open Street Maps until Google allows bitmap manipulations on their tiles. Sample demo and  source code using OSM, Away3D in AS3 on my blog
Dec 10, 2010
Thanks Jerome !

Here's what I've done:
-add the map in my main.swf
-addChild it into a movie clip
-use bitmap data draw to copy it in another mc
- use this new mc to put in a movie material

So it works perfectly in local but online, I've got the "well known" security sandbox error (bitmapdata draw) again and again.

Do I need to clone my mc to put it into my movie material plane ?

May 16, 2011
Is there an ETA from google on when they plan to fix this or even if they intend to. This is very disappointing for to have such a roadblock on something so useful.

Google FAQ page ( indicates this bug is logged in 2008 but still no fix. I wonder if its on the radar.
May 16, 2011
You can go a long way by using getPrintableBitmap() and a bit of creative re-parenting your displaylist (when making screengrabs) or clever usage of your bitmap-material (when using it on a 3D object).
Jul 16, 2011
Well I spent a few hours trying to get some Efflex transitions to work with a Google Map with some variations of Security.loadPolicyFile with no luck.  I ended up having create a copy of the map using getPrintableBitmap() and overlay it prior to any animation.  

Aug 4, 2011
I too would love to be able to use Google Maps in page turning software but due to the Security Error#2123 BitmapData.Draw() I am unable to do this.  Seems a bit daft as all I want to do is capture the image purely for when the user turns the page it shows when turning back again.

I have tried crossdomain.xml and securityDomain etc within the coding but still doesn't work.

Please can we sort this issue out or even sell rights (not to expensive of course!) to be able to use it in an environment like this.

Many thanks
Sep 5, 2011
Project Member #73
Following Friday's announcement of the deprecation of the Maps API for Flash, we are no longer accepting feature requests.

See the blog post on the Geo Developers Blog for more detail:
Status: Obsolete
Jan 29, 2012
Hi i m still trying to create a sphere 3D in papervision and use google maps as texture by it' s not working cause of the sandbox s├ęcurity errors. I think that the maps-api-for-flash deprecation was meaning that there is no longer support on this issue?
Sign in to add a comment

Powered by Google Project Hosting