开发者

Displaying location on a world map

开发者 https://www.devze.com 2023-03-02 10:24 出处:网络
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 S

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 i开发者_如何学Pythondeas.


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)


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


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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号