简体   繁体   English

如何将地图集成到我的 Java 应用程序中

[英]How to Integrate maps to my java application

In my project at college for software engineering, I have to make a java application that includes viewing maps of certain cities and editing some content, How can I integrate maps for some cities to my application?在我大学的软件工程项目中,我必须制作一个java应用程序,其中包括查看某些城市的地图和编辑某些内容,如何将某些城市的地图集成到我的应用程序中? there has to be one or more maps for each city.每个城市必须有一张或多张地图。 Any ideas on how to start?关于如何开始的任何想法?

Two possible approaches :两种可能的方法:

  1. Use map files from OpenstreetMap and display it with : https://wiki.openstreetmap.org/wiki/JXMapViewer .使用来自 OpenstreetMap 的地图文件并通过以下方式显示: https ://wiki.openstreetmap.org/wiki/JXMapViewer。 You can overlay your own data on top of the map您可以将自己的数据叠加在地图上
  2. Embed a browser component and render map with Google maps / OpenStreetMaps .嵌入浏览器组件并使用 Google 地图 / OpenStreetMaps 渲染地图。 Howto embed browser component : https://dzone.com/articles/htmlcssjavascript-gui-java-0 .如何嵌入浏览器组件: https : //dzone.com/articles/htmlcssjavascript-gui-java-0 Map example : https://wiki.openstreetmap.org/wiki/Using_OpenStreetMap#Web_applications地图示例: https : //wiki.openstreetmap.org/wiki/Using_OpenStreetMap#Web_applications

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM