Developer Network Home  Help 

YDN Flash Developer Center Yahoo! Maps AS3 Component
Flash Developer Center

Yahoo! Maps AS3 Component

The all-new Yahoo! Maps component for Flex 3 enables you to add a map to a wide-range of web and desktop applications. Included in the API is support for other Yahoo! APIs including the geocoder, local search and traffic APIs along with an advanced marker and overlay manager to allow you to easily represent data on the map.

Using the YahooMap component in your Flash, Flex, Ajax or AIR projects gives you the ability to develop anything from a simple map mash-up to full application utilizing Yahoo! Maps.

Examples: Yahoo! Maps AS3 Component for Flex 3

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
YahooMap Events Example Screenshot

Map Events

This example demonstrates listening to events dispatched from YahooMap.

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

Markers

This example demonstrates how create markers to add on the map.

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
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