Google Maps Flash API - 3D Perspective
Google Maps Flash API - 3D Perspective
"2-D maps are great, but sometimes it's cool to gaze into the distance. Today we're happy to announce support for perspective"
Official Example:Driving Directions with Panoramio along a route in 3D Perspective
You can manipulate the 3D map using the same keyboard controls as you use on Google Earth and within the Maps API. Clicking and dragging moves the map in the direction being dragged, as you would expect. When dragging the map while holding down an optional modifier key, however, you can alter the attitude of the map:
- SHIFT alters the rotation and attitude of the map around a clicked point.
- CTRL (or the Apple key) alters the rotation and attitude of the map from the point of view of the camera.
Ian Watkins has created this 3D perspective UK Weather Map
Keir Clarke (Google Maps Mania fame) points out to @mapperz the nice youtube video that demonstrates the flashiness of the UK Weather Map
The key and simple code to make the changes are:
Map3D.viewMode = View.VIEWMODE_PERSPECTIVE;Full details and documentation
and replace the old position and zoom controls with the
new navigation control:
addControl(NavigationControl);
http://code.google.com/apis/maps/documentation/flash/3d-maps.html
Want even more Flash Demos
http://code.google.com/apis/maps/documentation/flash/demogallery.html
Official Blog Post and Source:
http://googlegeodevelopers.blogspot.com/2009/07/3d-perspective-in-maps-api-for-flash.html
Labels: 3D Perspective, API, Controls, Demos, Flash, Google, Map
0 Comments:
Post a Comment
<< Home