ios - Flex AS3 Iphone - How to Open Native Maps Application? -
i have bunch of buttons opens default map application , puts in users system clipboard. works fine on android tablets, iphone nothing when button clicked. here code:
case "mapyummyyummy": system.setclipboard( "1665 stelton rd piscataway nj 08901" ) _callurl = "geo: 40.4978922, -74.4488224"; var targeturl:urlrequest = new urlrequest(_callurl); navigatetourl(targeturl); break;
does know equivalent work on iphone devices? thanks!
have tried setdata method? (i have no experience one, looks viable alternative).
ios launch maps via url reference: http://developer.apple.com/library/ios/#featuredarticles/iphoneurlscheme_reference/articles/maplinks.html
querying location:
http://maps.apple.com/?q=cupertino
setting start , end directions:
http://maps.apple.com/?daddr=san+francisco,+ca&saddr=cupertino
hope works ya (looked not tested).
Comments
Post a Comment