Professional Documents
Culture Documents
Static Flash APIs
Static Flash APIs
Features:
• Searches:
o Addresses
o Local businesses
o User content
• Driving Directions (Transit too)
• Traffic Overlay
• Street View
• KML/GeoRSS Browsing
• My Maps
• Mapplets
Google Maps Javascript API
Released in June 2005.
A subset of the Javascript that powers Google Maps.
Features:
• Events
• Controls
• Overlays:
o Markers, Polys, InfoWindows, GroundOverlays,
ScreenOverlays, TileLayers
• Services:
o Geocoding, Driving Directions, Traffic, KML/GeoRSS,
Street View, Local Search
• Interfaces:
o Overlay, Control, TileLayer
Google Maps Javascript API
It can duplicate the functionality of Google Maps:
• RealBird Listings
• Trulia
It can replace the map types with its own aerial imagery:
• NOAA
• MapWoW
Why?
• New environments
• Performance enhancements
Static Maps API: What is it?
Just add in IMG tag pointing to a well-crafted URL, and presto,
map-o!
<img src="http://maps.google.com/
staticmap?center=-23.536511,-46.62559&zoom=10&
size=300x200&markers=-23.607614,-46.69727&key=ABCDEFG"
/>
Static Maps API: Features
• Specifying a zoom level/center
• 4 different map types
• Various marker sizes, colors, letters
• Polylines up to 50 points
• Auto zooming to markers passed in
• Auto zooming to a provided span
Examples:
Orbitz Mobile
Examples:
Glotter
360Cities
Static Maps API: Why?
Faster loading pages:
The JS Maps API can take time to load (multiple script + image
resources).
If the map isn't the main focus of a page and especially if the
user is on a dial-up connection, it doesn't make sense to make
the user wait for everything to load.
There are several ways to combine the Static Maps API with
the JS API for a better user experience.
>>
Static Maps API: Why?
Faster loading pages: 3 Techniques
• Start with static map. Seamlessly load in JS API when user tries to
interact with the map.
o Example: Yelp
• Start with static map. Include a UI element the user can click on to
load in the JS API.
o Example: http://www.nearby.org.uk/google/static3.php
• Start with static map. After the page loads + a small timeout, load in
the JS API. Don't give the user enough time to use it before that
happens. :)
o Example: http://www.nearby.org.uk/google/static4.php,
o Example: Google MapSearch Gadget
Maps API for Flash: What is it?
Lets you write code in Actionscript3, compile it against our
interface library, and output a SWF.
Demo:
PolygonOptionsPlayground
IMap
Maps API for Flash: Why?
Integration into Flash/Flex sites
Examples:
NavX
• Surrounding UI was already Flex.
• Converted JS to Flash in one week.
Maps API for Flash: Why?
Smoother Video/Animation
Examples:
Google Maps Driving Simulator
• Converted from JS: Doubled frame-rate, halved CPU usage
Examples:
Thematic Mapping with the Flash API
Biodiversity Heat Maps
Netherlands
Maps API for Flash: Why?
Better Binary and Real-time Data Streaming
Examples:
Collaborative Chat Rooms with Flash Maps
SHP File Reader
Maps API for Flash: Why?
Map Rotation
Example:
Spinning Map
Maps API for Flash: Why?
More Embeddable
Examples:
Google Earth
EyeWonder Ad
In Conclusion...
Have fun! :)
Learn more
http://code.google.com/intl/es/