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.
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 | |
Creating a YahooMap object in Flash CS3This example demonstrates the minimum ActionScript required to create a YahooMap and geocode an address using the Flash CS3 component. Output | Download Flash Source | |
Map EventsThis example demonstrates listening to various events dispatched from the map and displaying the event data. View Source | Output | Download Flex Project Archive | |
MarkersThis example demonstrates how create random markers on the map using the SimpleMarker object. View Source | Output | Download Flex Project Archive | |
Polyline OverlaysThis example demonstrates how to create a PolylineOverlay and drawing in Flash within a geo-context. View Source | Output | Download Flex Project Archive | |
Geodesic Polyline OverlaysThis example demonstrates how to draw a polyline as a geodesic. (A segment of a great circle) View Source | Output | Download Flex Project Archive | |
Drawing Custom OverlaysThis 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 | |
GeocodingThis example shows geocode address and latitude/longitudes using the default map event listeners. View Source | Output | Download Flex Project Archive | |
Local SearchThis 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 UtilitiesThis example demonstrates the distance API built into the YahooMap component. View Source | Output | Download Flex Project Archive | |
Sample Search ApplicationThis 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 ApplicationThis application demonstrates creating custom markers and a simple user-interface to adding markers. View Source | Output | Download Flex Project Archive | |
GeoPlanet SampleThis 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 ApplicationThis 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 SampleA 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 |