问题
How could I embed a Google Maps API Javascrip on my Flex Application? I found some examples, but none of them worked for me.
http://javey.net/bike/map/player5/map.html?gpx=http://javey.net/bike/gpx/24-nov-2007.gpx&title=Sheldon.Road.Trail
Can anyone help me with that question? I would really appreciate it.
回答1:
What have you tried so far? Do you have any code to show us?
Your second link explains using an HTML wrapper in Flex, which seems like a straightforward solution to me. You can make sure the HTML portion is working by opening it in a browser to make sure it shows up and displays properly (often this is the real problem).
The poster of the links you gave also linked to the source code in the comments: Flex + Google Maps. Try modifying a copy of their code to do what you want it to. Or cut out as much of their code as you can while preserving the functionality you want to see how they do it, and go from there.
回答2:
I wonder if StageWebView is what you're after?
http://blogs.adobe.com/ria/2011/01/10/accessing-the-stagewebview-object/
来源:https://stackoverflow.com/questions/10108677/embed-a-google-maps-api-javascript-in-flex