Intro
Putting a Google map on a Papervision Primitive is extremely easy. All you need to do is to turn the map into a Movie (using the MovieMaterial class) and then place it on a primitive. It's really that easy! You can do it in only six lines of code given below;
1. Turn Google Maps into a Movie
movie.graphics.beginFill(0xFFFFFF);
movie.graphics.drawRect(0,0,800,600)
movie.addChild(Application.application.map);
movie.graphics.endFill();
mat = new MovieMaterial(movie, false, true,true,new Rectangle(0,0,800,600));
2. Place that movie onto a primitive
sphere = new Sphere(mat, 600, 32, 32);
Download (Air Application)
http://flex3cookbook2.googlecode.com/files/googlemaps.zip
This tutorial was created by Mike Lively of NKU.
only 6 lines? where's the fun in that?
squarepusher303 1 year ago
couldnt u just download google earth?
paunchyjoe 2 years ago
I am real happy for this tutorial,
God bless you
Nkatsikanis 3 years ago
thanks for posting this. nice work!
lelander 3 years ago
cool stuff
rne1223 3 years ago