Wednesday, July 2, 2008

Yahoo! Maps AS3 Component

Yahoo! Maps AS3 Component

Flash and Flex Examples:

All of the code samples listed in this section are built in Flex 3 / Flash CS3 and provided free of charge under a BSD license.

YahooMap MXML Example Screenshot

Creating a YahooMap object in MXML.


This example demonstrates the minimum MXML and ActionScript required to create a YahooMap and geocode an address.

View Source | Output | Download Flex Project Archive
Flash CS3 Screenshot

Creating a YahooMap object in Flash CS3


This example demonstrates the minimum ActionScript required to create a YahooMap and geocode an address using the Flash CS3 component.

Output | Download Flash Source
YahooMap Events Example Screenshot

Map Events


This example demonstrates listening to various events dispatched from the map and displaying the event data.

View Source | Output | Download Flex Project Archive
Marker Example Screenshot

Markers


This example demonstrates how create random markers on the map using the SimpleMarker object.

View Source | Output | Download Flex Project Archive
Polyline Example Screenshot

Polyline Overlays


This example demonstrates how to create a PolylineOverlay and drawing in Flash within a geo-context.

View Source | Output | Download Flex Project Archive
Geodesic Polyline Example Screenshot

Geodesic Polyline Overlays


This example demonstrates how to draw a polyline as a geodesic. (A segment of a great circle)

View Source | Output | Download Flex Project Archive
Custom Overlay Example Screenshot

Drawing Custom Overlays


This example shows how to create a custom overlay to draw a scaled circle on the map on mouse click.

View Source | Output | Download Flex Project Archive
Geocoding Example Screenshot

Geocoding


This example shows geocode address and latitude/longitudes using the default map event listeners.

View Source | Output | Download Flex Project Archive
Local Search Example Screenshot

Local Search


This example shows you how to query the Yahoo! Local listings in ActionScript and display search results on the map.

View Source | Output | Download Flex Project Archive
Map Utilities Example Screenshot

Map Utilities


This example demonstrates the distance API built into the YahooMap component.

View Source | Output | Download Flex Project Archive
Sample Search Example Screenshot

Sample Search Application


This application uses Flex as the layout engine and the YahooMap component to create a simple app that accepts user input to center the map.

View Source | Output | Download Flex Project Archive
Custom Markers Example Screenshot

Custom Markers Application


This application demonstrates creating custom markers and a simple user-interface to adding markers.

View Source | Output | Download Flex Project Archive
GeoPlanet Example Screenshot

GeoPlanet Sample


This example uses the Yahoo! GeoPlanet API to query the neighbors of a place and display them using a custom marker.

View Source | Output | Download Flex Project Archive
Weather Map Example Screenshot

Weather Map Application


This application uses the ASTRA Web APIs Library to display weather data on the map using a custom marker.

View Source | Output | Download Flex Project Archive
AIR Example Screenshot

AIR Sample


A desktop application built in Adobe AIR that demonstrates reading a file on the local file system to load and display markers.

View Source | Download Flex Project Archive


post signature