Ted Patrick > { Events & Community } > Adobe Systems


New Components - Yahoo! Maps API in pure ActionScript 3

This morning Yahoo! releases a new ActionScript API for Maps. Having worked with the API for the past few weeks it is a great component addition to both Flash and Flex. The key to this release is that the YMaps API integrates a complex set of services and controls that you can leverage in your applications for anything geo-releated in under 30Kb.

DOWNLOAD


Here are some of the key features:

Geocoding API - Turn a string address into coordinates (latlong)
Traffic - Get traffic
Directions - Get Directions between points
(NOTE: Seems directions didn't make final release. Will be added in a later release.)
Local Search - Search a map for points of interest
Widgets - Simple widgets to control the maps


1. import com.yahoo.maps.api.YahooMap;
2. var yahooMap:YahooMap = new YahooMap( "YOUR-APPID" , 300 , 300 );
3. this.addChild( yahooMap );






Yahoo Maps in AS3 has been the most requested component at Yahoo Developer Network for some time and it is great to see this release happen.

I can't wait to see how you integrate maps into your application targeting Adobe Flash Player or Adobe AIR runtimes.

Cheers,

Ted :)

28 Responses to “ New Components - Yahoo! Maps API in pure ActionScript 3 ”

  1. # Blogger maz

    Yeah ! That is the one I was waiting for !  

  2. # Anonymous Marc

    Yeah - no bridging between HTML an Flex anymore :)  

  3. # Blogger Fréderic Cox

    this is amazing!! You have no idea how happy I am at the moment :)  

  4. # Blogger Fréderic Cox

    It doesn't seem to have the directions feature though...or am I overlooking something? :(  

  5. # Blogger Ted Patrick

    The driving directions are in there along with Traffic. See:

    com.yahoo.maps.webservices.directions.DirectionsService

    The team broke out services from the map tile engine.

    Cheers,

    Ted :)  

  6. # Blogger Fréderic Cox

    Thanks Ted! Are they available for US only or around the world?  

  7. # Anonymous zachg

    Hey everyone, unfortunately we had to take out the directions service in the initial release, however we are looking forward to adding it back in a later release. Stay tuned!

    -zach g.  

  8. # Blogger Pic

    This is very nice.
    Even better that Yahoo said no to Microsoft (for now) otherwise this would be a silverlight API:)

    The more services we have available to Flex/Air developers the better. M$ is pushing their stuff very hard (now thru ms update).  

  9. # Blogger Ryan Campbell

    Yayyyyyyyy!

    This is great news and perfect timing for me. Now if only Yahoo Maps would get better local road data for other countries (Brazil for example)  

  10. # Anonymous ljones

    Just when you think you can get some down time. Likely make something that i won't need any time soon, but what the hell.  

  11. # Anonymous Zach Graves

    Hey all,

    Unfortunately we had to pull the directions package out for the initial release. Looking forward to adding it back in a future release. Stay tuned!

    -Zach  

  12. # Blogger Kevin

    Awesome news! Really looking forward to getting directions too!  

  13. # Blogger Fréderic Cox

    Zach, the directions feature is the only one which seperates this components from other components like the google UMap from afcomponents. Why did you need to remove the package and for how long? I really need something like this for a project :)  

  14. # Blogger Thomas

    Hi all!
    What are the advantages ( or disadvantages ) over the google maps API? Why would you use one or the other?
    Thanks~  

  15. # Blogger Lordy

    Awesome! big thumbs up to Yahoo!  

  16. # Blogger Marcin Szczepanski

    It's a shame Yahoo Maps doesn't have the same coverage as Google Maps outside the US. Being in Australia that's pretty much a deal breaker for my use of this library at this stage.  

  17. # Blogger Harry B. Garland

    I think that in addition to all that Yahoo! has done recently, this has caused me to officially flip my position about major search engine companies:

    Yahoo! has the greatest web application infrastructure today.

    Google had a good web application infrastructure at one time.

    Finally, Yahoo! is living up to the exclamation point in their name.  

  18. # Anonymous Shigeru

    No good for Japanese. No support Japanese, useless Japan map, so far performance than Google Maps...  

  19. # Blogger ThunderHead

    Check out ESRI AS3 mapping component - www.esri.com/flex  

  20. # Blogger Javier de la Torre

    This is great! Really looking forward to use it!

    While trying it I had the impression that the map was loading too much
    data. If you start with a world view and start zooming to street level
    it seems that the API keeps loading all tiles from each intermediate
    zoom level, that I am not really seeing because I am zooming very
    fast. I would expect that the API would cancel tiles loading that I am
    not gonna view because I am already in another zoom level. So if as I
    said, you start from a world view and click seven times in the zoom
    you kind of get stucked waiting for intermediate tilesd to be loaded
    before you get the actual ones you want to see.

    This must also have huge impact in yahoo servers. For a simple zoom
    I just downloaded 15 MB of data when I probably only
    needed 2MB or less. I just looked at 2 different zoom levels. The
    intermediate ones i did not have time to see them.  

  21. # Anonymous Nigel Pegg

    Yahoo Maps + Cocomo, oh My!

    http://blogs.adobe.com/collabmethods/2008/02/yahoo_maps_cocomo_the_funness.html

    A real-time-collaboration mashup w/ co-navigation of the map. Took a whole day since the map release, I must be slipping... :)  

  22. # Blogger Fréderic Cox

    Anyone know how to programmatically change the map type? This code throws an error :s

    http://pastebin.com/f4b1363ed

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at com.yahoo.maps.api.core.tileengine::MapBase/set mapType()[/Users/zachg/Documents/yahoomaps/YahooMap/src/com/yahoo/maps/api/core/tileengine/MapBase.as:181]
    at com.yahoo.maps.api::YahooMap/set mapType()[/Users/zachg/Documents/yahoomaps/YahooMap/src/com/yahoo/maps/api/YahooMap.as:830]
    at Hopping/addMap()[C:\Users\Frederic\Desktop\Projecten\Hopping\src\Hopping.mxml:17]  

  23. # Anonymous Anonymous

    same comment about tile loading...seems like an unoptimized way to do tile loading...in fact if you pan and zoom often...and switch from map to satellite, it causes the loading to freeze up.

    performance-wise http://www.afcomponents.com/components/umap_as3/ seems much more responsive.  

  24. # Blogger Fréderic Cox

    Where did the SWFMarker go where you can load in an animated marker? :(  

  25. # Blogger hassan

    I wonder if this feature works in addresses of Brazil?

    As GoogleMaps Brazil  

  26. # Blogger mvanleest

    Does anyone implemented the "Callout Component" that is on the Adobe site into Yahoo Maps? http://www.adobe.com/devnet/flex/samples/fig_callout/

    Hope someone can point out where to start!! Thanks!

    Mike  

  27. # Anonymous Anonymous

    Awesome! Nice to know the API uses NavTeq data source instead of TeleAtlas data source. Just to let you know, the other popular map API uses TeleAtlas data source. Big deal? Yes, if you want accurate maps with accurate driving directions, then use NavTeq data source especially in North America. Some of the new streets over 2 years old do not exist on the TeleAtlas data source.  

  28. # Anonymous Rich

    So...when are directions coming? It's kind of a big thing to not have in the API.  

Post a Comment



Jobs


Flex Jobs
city, state, zip


© 2008 Ted On Flash