首页 | 本学科首页   官方微博 | 高级检索  
     

Google Maps在Unity中的可视化及交互方法
引用本文:张绍泽,任磊.Google Maps在Unity中的可视化及交互方法[J].现代导航,2019,10(1):34-38.
作者姓名:张绍泽  任磊
作者单位:中国电子科技集团公司第二十研究所,西安 710068
摘    要: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的程序开发。

关 键 词:UNITY  GOOGLE  MAPS  可视化  交互

Visualization and Interaction of Google Maps in Unity
Authors:ZHANG Shaoze  REN Lei
Abstract: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 2D and 3D 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.
Keywords:Unity  Google Maps  Visualization  Interaction
本文献已被 维普 等数据库收录!
点击此处可从《现代导航》浏览原始摘要信息
点击此处可从《现代导航》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号