Flash_and_Flex_03_2009

ActionScript Development

How to use Yahoo! Maps in Flex

by Andrei Cristian Ionescu

Flex & Yahoo! Maps are both great! So let’s combine both of them into the cool components and applications that can be used in Rich Internet Application development.

What you need What we need to use the Yahoo! Maps? Just a few things: • Flex Builder 3 http://www.adobe.com/ cfusion/entitlement/index.cfm?e=flex3email • Yahoo! Maps component/library http: / /d e v e l o p e r.yah o o . c om /f l a sh /map s / getLatest.php • One Yahoo! Maps API key http:// developer.yahoo.com/wsregapp/

What you will learn… • How to use Yahoo! Maps at an intermediate- advanced level

What you should know… • Intermediate knowledge of component cre- ation • Flex Builder 3 – MXML, Actionscript 3

instead do have all the streets with the driving way specified. So… even though I’m a Google fan this time Yahoo! did it better.

Level of difficulty

I n this article we will see how Yahoo! Maps can be used in Flex applications. We will learn how to position the map at a specified coordinates and how to create a special tag on the map. Why Yahoo! Maps If you need nice maps outside of North America, like Eastern Europe you’ll notice that Google Maps lacks at this part of the world. Yahoo! instead did a great job! Taking Bucharest for example on Google Maps there are only a few streets drawn. Yahoo! Maps

Figure 2. More complex use of Yahoo! Maps output

Figure 1. Yahoo! Maps simple application output

03/2009 (5)

46

Made with FlippingBook HTML5