用户名: 密码: 验证码:
Google Maps在Unity中的可视化及交互方法
详细信息    查看全文 | 推荐本文 |
  • 英文篇名:Visualization and Interaction of Google Maps in Unity
  • 作者:张绍泽 ; 任磊
  • 英文作者:ZHANG Shaoze;REN Lei;
  • 关键词:Unity ; Google ; Maps ; 可视化 ; 交互
  • 英文关键词:Unity;;Google Maps;;Visualization;;Interaction
  • 中文刊名:XDDH
  • 英文刊名:Modern Navigation
  • 机构:中国电子科技集团公司第二十研究所;
  • 出版日期:2019-02-15
  • 出版单位:现代导航
  • 年:2019
  • 期:v.10
  • 语种:中文;
  • 页:XDDH201901010
  • 页数:5
  • CN:01
  • ISSN:61-1478/TN
  • 分类号:38-42
摘要
Google Maps由于其丰富的地图资源,使其在基于地图信息的程序中得到广泛应用。Unity由于其上手容易、高效的渲染性能,使其成为最近几年2D和3D程序开发的热门选择。尽管Google提供了Google Maps的应用程序接口,但是这些接口在Unity中无法直接使用。因此,如何在Unity中实现Google Maps的可视化及交互,成为在Unity中开发基于Google Maps程序的难点。为了解决以上问题,本文提出了Google Maps在Unity中的可视化及交互方法。将RawImage组件作为地图瓦片的可视化载体,通过多个地图瓦片的有序拼接实现Google Maps的可视化。在与Google Maps进行交互时,根据鼠标操作对地图瓦片进行更新,实现Google Maps的平移和缩放。实验结果表明提出的方法可以有效地显示、平移和缩放GoogleMaps,并可以在其基础上进行基于Google Maps的程序开发。
        Google Maps is widely used in map information-based programs because of its abundant map resources. Unity has become a popular choice in the development of 2 D and 3 D programs in recent years because of its easy operation and high rendering performance. Although Google provides application interfaces for Google Maps, these interfaces cannot be used directly in Unity.Therefore, how to realize the visualization and interaction of Google Maps in Unity becomes a difficulty in developing application based on Google Maps in Unity. In order to solve the above problem, this paper proposes a method of visualization and interaction Google Maps in Unity. Raw Image component is used as the visualization object of map tiles, and the visualization of Google Maps is realized by orderly splicing of multiple map tiles. When interacting with Google Maps, map tiles are updated according to mouse operation to realize translation and zooming of Google Maps. The experimental results show that the proposed method can effectively display, translate and zoom Google Maps, and can be used to develop programs based on Google Maps.
引文
[1]张明希,许捍卫.基于Google Map的虚拟旅游信息系统研究[J].测绘与空间地理信息,2015,38(2):124-127.
    [2]陈婷,畅伟杰,张立臣.基于Google Map的西安旅游电子地图设计与实现[J].计算机技术与发展,2013,23(9):230-233.
    [3]李卫东,刘银.基于Google Maps的模拟飞行轨迹显示系统的设计与实现[J].中国民航飞行学院学报2011,22(2):5-7.
    [4]朱健,李建,庄科旻,吴孟春.基于Google Maps的公共气象服务信息显示平台研究[J].科技通报,2011,27(1):14-17,24.
    [5]周信文,俎晓芳,罗津等.基于Unity3D的地铁三维虚拟漫游设计[J].计算机系统应用,2018,27(3):258-262.
    [6]丛晓丹,吴冈,管练武.基于Unity3D的数字纪念馆虚拟漫游设计[J].自动化技术与应用,2017,36(11):85-92.
    [7]陈永科,杨艾军,等.基于Unity的虚拟战场地理环境构建[J].兵工自动化,2014,33(7):20-23.
    [8]王星捷,李春花.基于Unity3D平台的三维虚拟城市研究与应用[J].计算机技术与发展,2013,23(4):241-244.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700