Displaying location on a world map

时光毁灭记忆、已成空白 提交于 2019-12-02 06:32:40

问题


I am working on a Java desktop application. In this project I want to highlight some location on a world map. These locations are stored in a database. I have found a link to Building Maps into Your Swing Application with the JXMapViewer, but I'm still not finding the proper way to do this. Can anyone can give me some ideas.


回答1:


for me google works http://today.java.net/pub/a/today/2007/10/30/building-maps-into-swing-app-with-jxmapviewer.html any google related question(s)




回答2:


If you are building swt app, you can use SWT Browser widget with Google Maps API. All you need is to generate simple html page and show it with the use of SWT Browser




回答3:


You might like to look at JMapViewer, recently mentioned in this question.

Addendum: For example,

svn co http://svn.openstreetmap.org/applications/viewer/jmapviewer jmapviewer
ant
java -cp bin org.openstreetmap.gui.jmapviewer.Demo


来源:https://stackoverflow.com/questions/5841747/displaying-location-on-a-world-map

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