Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

3D representation of Google Maps/Routes?

I need to build a 3d live map of current airplane flights. It needs to be able to run on a browser without downloading any plugin (cough Google Earth cough).

I already managed doing something similar with google map :

enter image description here

But I need to be able to show it in a 3d - globe POV :

something like : enter image description here

Is there anything I can do in google maps to make them globe-3d or is there something else (API) which I can use ?

like image 998
Royi Namir Avatar asked Jul 02 '13 16:07

Royi Namir


3 Answers

A good starting point may be webgl-globe from the Google Data Arts team. It's built on three.js and webgl:

enter image description here

You'd have to change the bars to arcs, but it's a start :)

A caveat: webgl is the best way to get interactive 3d in the browser without other dependencies, but it isn't supported by safari or IE yet, or if the user is missing graphics drivers.

like image 146
ty. Avatar answered Nov 20 '22 07:11

ty.


I remember seeing a tweet, I think by Paul Irish that allowed you to alter google maps using css to create a globe shape.

http://updates.html5rocks.com/2012/09/Interactive-Globe-with-CSS-shaders-Google-Maps

Don't know if it has been updated as it was the latest Chrome only but it may be worth taking a look.

like image 20
Thomas James Avatar answered Nov 20 '22 09:11

Thomas James


You can use the mercantor projection to map the sphere coordinate to the Google maps tiles, I. e. pixelcoordinate. Then you can choose an open source library to draw to the canvas and then add some simple matrices transformation to rotate the globe. The tile mapping works with a quad key. It's describe here: http://msdn.microsoft.com/en-us/library/bb259689.aspx.

like image 1
Micromega Avatar answered Nov 20 '22 08:11

Micromega