Embed a Google Maps API Javascript in Flex

百般思念 提交于 2019-12-11 02:27:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!