AS3 Maps Update
Posted in "Flash, Flex, General" at 10:19 am on March 12, 2008 by Allen Rabinovich | 
A couple days ago, we pushed out an updated version of the AS3 Maps API. Here’s what Zach Graves, the lead developer of the component, has to say about it:
Nearly a month has passed since we launched the ActionScript 3 Maps API and since then we’ve received a ton of great feedback on the component, along with some awesome applications utilizing the API. Now we are rolling out an update with some important bug fixes and updates:
- New: YahooMap constructor syntax.
- New: Polyline overlay now has a geodesic flag.
- Update: Overlay.invalidate method renamed to Overlay.destroy
- Update: Improved event flow for mouse events on the map.
- Bug fix: Dynamic map insertion issue fixed.
- Bug fix: Marker maxZoom & minZoom properties fixed.
- Bug fix: Event.MOUSE_LEAVE event stops panning.
- Bug fix: aerial copyright duplication fixed.
- Bug fix: Fixed issue with the latlon property of YahooMap mouse events being incorrect in Flex apps.
- Bug fix: Updated LocalSearch dphone & phone properties.
- Bug fix: LocalSearch categories/rating filters arguments fixed.
- Bug fix: setZoomRange and getZoomRange methods returned incorrect values.
- Bug fix: TrafficSearch failure event incorrectly dispatched when there are zero incidents.
With this update, we’ve also added a few new examples to our developer center, including a demonstration of how to draw geodesic polylines, create custom markers and overlays, and a sample weather map application.
Also, if you missed the news last week, we have also updated our map tile data with over 12,000 new neighborhoods in 300 cities. With this new data, our expanding international coverage and some slick AS3 Maps—you’re guaranteed a great mapping experience in your applications. So head over to the Yahoo! Flash Developer Center and pick up the update.
We have more fun stuff coming, including a Flash component (for now, see Josh Tynjala’s post on how to use the current component in Flash). Stay tuned for more updates!
Thanks, Zach!
Share: on Yahoo! My Web | on del.icio.us | digg it! | reddit!
8 Comments »
RSS feed for comments on this post. TrackBack URI
Leave a comment

Copyright © 2007 Yahoo! Inc. All rights reserved. Privacy Policy - Terms of Service
Powered by WordPress on Yahoo! Web Hosting.
Please please please could you set your servers up in such a way that we can take bitmapdata snapshots of your maps in Fleash/Flex?
Thanks for considering it.
Comment by Stefan Richter — March 20, 2008 #
That’s amazing work, I really hope that a project with that much programming doesn’t fall victim in being a CPU cycle hog. Again, very innovative!
Comment by Richard Parker — March 24, 2008 #
I use the Yahoo Map in a Flex 3 Title Window. When that window is closed and the mouse cursor moves outside the browser main window this error shows up:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.yahoo.maps.api.controls::PanControl/handleMouseLeave()[/Users/zachg/Documents/yahoomaps/YahooMap/src/com/yahoo/maps/api/controls/PanControl.as:223]
What am i doing wrong here? Do i need some finalization code?
Comment by André Dekker — April 11, 2008 #
RE:handleMouseLeave.
I get the same problem. There doesn’t seem to be anyway to de-initialize the map and after removing from the stage it is still listening for events, possibly from the stage itself.
Comment by Duncan — April 13, 2008 #
Hopefully the next update will include a bug fix for the removeAllMarkers() method in markerManager. Currently it’s indexed improperly and doesn’t work.
Comment by Geoffrey Anderson — April 14, 2008 #
André and Duncan, I had that problem as well. Adding this call to my close() method (called when the TitleWindow is closed) seemed to fix the issue.
yahooMap.removePanControl();
Comment by Briley — April 28, 2008 #
Great API. I’m having a little difficulty with one thing: I’m using localSearch, and it’s returning LocalSearchResults objects with title, address etc., which is great, but it seems that both “id” and “resultURL” are always null. What I really want is to get (or make) a URL that maps the particular location this search result indicates, so it can be included as a link in an email. Any ideas how to do that? It seems like it should be easy…
Comment by Robert — April 29, 2008 #
While Josh’s post on hacking the Flex component is useful, I would very much like an official Flash CS3 component. Is there any update you could give on it?
Comment by Jeremiah — May 8, 2008 #