View Full Version : Map directions
corbo950
07-02-2008, 03:50 AM
i am looking at using the yahoo maps componet for automatically generating driving directions based on which user is signed in because i have each users address. but a key part seems to be missing from this yahoo componet..... the ability to get directions. please somebody tell me i am wrong on this or how to work around it. does anybody know of a different way to get directions i looked at using mapquest in the iframe but it only supports if u know either the end or beginning directions so im going 2 look if i can figure out how they read the post to it. please somebody tell me i can do this in the yahoo componet
drkstr
07-02-2008, 05:30 PM
I ran into the same problem with Yahoo. Frustrating isn't it? I ended up just popping up an html page with Google map driving directions.
In theory though, you could use the new Google maps flash API. Since the flash API does not yet have driving direction functionality, you would have to include a hidden google map behind your flash embed (z-index=-1) and use ExternalInterface to make calls back and forth to it. Just load the directions using the javascript API and callBack the Flex app when it's done. You could then use the returned info to plot the markers and print the directions in your Flex app.
Maybe someone knows of a better way though.
Best Regards,
~Aaron
corbo950
07-02-2008, 05:52 PM
ya i would write a componet to do all that but i really don't have time to do that right now. im writing a massive application for sale that this would be in but i wasn't going 2 include the map until version 1.1.0 anyway but i really dont have time 2 learn java before doing so (yes i know im a idiot for not knowing it but i keep putting it off). so if anybody has already solved this problem with a componet please i ask u 2 post it here.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.