19 May 2008

Yahoo! Maps Flex/AS3 API

Flash mapping made easy



Recently, I got involved in a project to create a dynamic mapping application, and found a great little Actionscript 3 API from Yahoo! Maps.  Written by Zach Graves, this API allows you to create dynamic Flash based mapping applications, and when coupled with Yahoo! Local search requests, it becomes a sort-of digital concierge for the local area.  The Flex app I created marks a specific location on the map via a geocoded address, and then does a Yahoo! Local search for nearby Hotels, Restaurants and Other Points of Interest within a 25 mile radius.  I also added a custom search text box (thanks Doug McCune for the prompting textInput in flexlib!) on the legend to find specific business by name.   i.e.  Best Buy, Wal-Mart .  There are still a few more things I am planning to add, but this will give you an idea on how to integrate the Yahoo! Maps API into your next Flex project.

The live app is here.
Souce Code here

-Christopher C. Keeler

Subscription Options

You are not logged in, so your subscription status for this entry is unknown. You can login or register here.

Re: Yahoo! Maps Flex/AS3 API
Awesome thanks for the source! I am learning Flex 3.0 and would appreciate any resources or tips to pick it up quickly. I am going through Flex 3 Training from the Source and will read any site, blog etc. that can help! I use AS2 and am a PHP programmer so I have a solid background.
Thanks so much!
God Bless,
Titus
Posted by titus on May 19, 2008 at 6:12 PM

Re: Yahoo! Maps Flex/AS3 API
Nice example app. What is the licensing for it? Also the link to your source code is broken. Should be:

http://www.swfflex.com/flexprojects/yahoomaps/srcview/index.html
Posted by joshua cyr on June 8, 2008 at 1:19 PM

Re: Yahoo! Maps Flex/AS3 API
How did you do the custom pop-over bubbles or are they a product of local search?

Thanks
Posted by Bill Downs on June 23, 2008 at 2:52 AM

Re: Yahoo! Maps Flex/AS3 API
@Bill,
Both actually, but the actual marker is a custom class which pulls in data from SeachLocal.

-Chris
Posted by admin on June 23, 2008 at 7:21 AM

Re: Yahoo! Maps Flex/AS3 API
Great looking little app you got here.

I have a custom icon marker class that I built with the help of the community.

http://robotoole.com/blog/wp/?p=9

-rob
Posted by rob on July 7, 2008 at 11:31 AM

Name:   Required
Email:   Required your email address will not be publicly displayed.

Want to receive notifications when new comments are added? Login/Register for an account.

Anti-spam key

Type in the text that you see in the above image:

Your comment:

Sorry, no HTML allowed!