Is there a Swing component for Google Maps?

荒凉一梦 提交于 2019-12-03 18:03:42

问题


I would like to have support for Google Maps in my Java Swing desktop application. Is there an Google Maps component for Swing that is freely available? It would be good if it was extendable and maybe had support for other maps i.e. like OpenStreetMaps.


回答1:


You can use JXMapViewer look here http://today.java.net/pub/a/today/2007/10/30/building-maps-into-swing-app-with-jxmapviewer.html




回答2:


How about JXMapViewer? Looks like it gets NASA's Blue Marble tile set by default (if you want 3D maps and Blue Marble WorldWindJava is an amazing API for mapping), but also works with OpenStreetMap. Or, looks like gmap-viewer is a project which can show you how it's done. Aerith also includes Google maps.

EDIT: Also, check out this related StackOverflow question. Looks like the FAQ, at least at that time, did not allow you to do what you want with Google Maps (OpenStreetMap, on the other hand, has desktop apps like Traveling Salesman and clearly embraces the desktop, as does WorldWind).




回答3:


You can use Google visualisation library directly in java, where you can show Google Maps as you like.

Google Visualization API Gallery



来源:https://stackoverflow.com/questions/2737363/is-there-a-swing-component-for-google-maps

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