My favorites | Sign in
Project Home Wiki Issues Source
New issue   Search
for
  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
Owner:  t...@google.com
Closed:  Sep 2011


Sign in to add a comment
 
Reported by pamela.fox, 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
#1 souj...@gmail.com
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
#2 pamela.fox
 Issue 887  has been merged into this issue.
Nov 26, 2008
#3 fotis.ch...@gmail.com
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
#4 seanb.st...@gmail.com
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
#5 a...@assemblystudios.co.uk
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
#6 anthony.tripaldi@gmail.com
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
#7 lynx...@gmail.com
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
#8 NoNullPo...@gmail.com
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.
generate.pdf
6.5 KB   Download
Feb 18, 2009
#9 thatguyrich@gmail.com
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
#10 spikything@gmail.com
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
#11 makc.the...@gmail.com
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
#12 goo...@soma2.de
We need it to get smoother transitions. It is really hard to tween google maps. 
thanks in advance
Mar 28, 2009
#13 ranjith....@gmail.com
yes,its a very basic necessity
Apr 28, 2009
#14 kristofr...@gmail.com
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
#15 mail.sim...@gmail.com
RIA should be able to have effect on maps...
May 21, 2009
#16 agile....@gmail.com
It's a real annoying problem :(,so cause I can not use gmap
May 24, 2009
#17 pamela.fox
Changing status of "Accepted" issues to "Acknowledged", to clarify their 
state.

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
#18 makc.the...@gmail.com
Does this *really* means "rejected"?
May 25, 2009
#19 pamela.fox
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
#21 jerome.m...@gmail.com
Same here. I was going to use gMap + Away3D. Now I have to find another solution.
Jun 18, 2009
#22 keesvand...@gmail.com
This feature is really a necessity, any news about this?
Jun 26, 2009
#23 gerbs...@gmail.com
This would indeed be a very useful feature!
Jun 28, 2009
#24 abav...@gmail.com
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
#26 l.toma...@gmail.com
There is any new information about psoibility to use BitmapData.draw() in flash?
Aug 4, 2009
#27 hubert.b...@gmail.com
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
#28 hubert.b...@gmail.com
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
#29 edward.s...@gmail.com
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
please?
Aug 5, 2009
#30 makc.the...@gmail.com
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
#31 jerome.m...@gmail.com
This is as far as I could take the visuals without the use of BitmapData.draw().
http://www.stcassociates.com/clients/STC/locationsMap/demo/stc08-gmap-002.html

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.
http://www.wemakedotcoms.com/_projects/stc09/locationsMap/STC_Locations_Map_3D.html

Cheers,

Jerome.
Aug 6, 2009
#32 manimalc...@gmail.com
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:

http://gw.bluebarracuda.com/BB/philip/streetcorner_googlemapsfail/

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
#33 pamela.fox
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
#34 manimalc...@gmail.com
@pamela.fox

"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
#35 lynx...@gmail.com
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.

cheers
Aug 6, 2009
#36 makc.the...@gmail.com
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
#37 manimalc...@gmail.com
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
#38 bartvand...@gmail.com
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
#39 fusionp...@gmail.com
Security sandbox violation: BitmapData.draw error 
Nov 30, 2009
#40 fusionp...@gmail.com
Any fix for this issue now in December 2009?
Dec 1, 2009
#41 mr.ian.a...@googlemail.com
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
#43 fusionp...@gmail.com
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,
Juan
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,
Jay
Dec 28, 2009
#46 benmarch...@gmail.com
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
#47 jonesr...@gmail.com
We'd like to have this feature.

Jan 8, 2010
#48 jonesr...@gmail.com
We'd like to have this feature.

Jan 13, 2010
#49 ropo...@gmail.com
Please
Feb 3, 2010
#50 davesam...@aip-wohnen.de
could you maybe offer a workaround for papervision (like creating a papervision
subclass that uses getPrintableBitmap instead of BitmapData.draw()) ?
Feb 11, 2010
#51 jerome.m...@gmail.com
OpenStreetMap.org allows BitmapData.draw(). I posted an example and source on my blog:
http://www.wemakedotcoms.com/blog/2010/02/11/using-openstreetmap-and-away3d/

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
effects.

Cheers,

JJ.
Feb 12, 2010
#52 davesam...@aip-wohnen.de
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. http://openscales.org/
hope this helps.
Feb 12, 2010
#53 jerome.m...@gmail.com
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: http://www.wemakedotcoms.com/_exp/OSM3DCube/PV3DTest.html
Source: http://www.wemakedotcoms.com/_exp/OSM3DCube/srcview/

Feel free to email me if you have a fix for this!
Mar 9, 2010
#54 paulius....@gmail.com
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
#56 lockit81@gmail.com
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
#57 lockit81@gmail.com
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
#58 davesam...@aip-wohnen.de
@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
#59 davesam...@aip-wohnen.de
@jerome.maureydelaunay: Also set your viewports interactive property to true
Apr 1, 2010
#60 davesam...@aip-wohnen.de
I uploaded a Simple Example of a Openscales on a Papervision Plane with the source
code here: http://multiflaviour.com/Example.html
hope that helps
Jul 1, 2010
#61 thor.mit...@gmail.com
(No comment was entered for this change.)
Owner: t...@google.com
Jul 7, 2010
#62 kra...@gmail.com
please allow us to access this data.
Jul 10, 2010
#63 filip.ho...@gmail.com
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
#64 bradycur...@gmail.com
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.

http://www.sephiroth.it/tutorials/flashPHP/thresold/

Does anyone know if Bing Maps gives developers access to this data?
Aug 17, 2010
#65 krinj...@gmail.com
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
#66 microme2...@gmail.com
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
#67 jerome.m...@gmail.com
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 http://bit.ly/afjWUt
Dec 10, 2010
#68 microme2...@gmail.com
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 ?


Bertrand
May 16, 2011
#69 gandhi.r...@gmail.com
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 ( https://code.google.com/apis/maps/faq.html) indicates this bug is logged in 2008 but still no fix. I wonder if its on the radar.
May 16, 2011
#70 bartvand...@gmail.com
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
#71 Tuck...@gmail.com
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
#72 dan...@360brochures.com
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 cbro@google.com
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:
http://googlegeodevelopers.blogspot.com/2011/09/maps-api-for-flash-deprecation.html
Status: Obsolete
Jan 29, 2012
#75 hmanp...@gmail.com
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