GoogleMaps在Unity中的可视化及交互方法

·34·现代导航 2019年Google Maps在Unity中的可视化及交互方法
张绍泽,任磊
(中国电子科技集团公司第二十研究所,西安 710068)
摘  要:Google Maps由于其丰富的地图资源,使其在基于地图信息的程序中得到广泛应用。
fmcmUnity由于其上手容易、高效的渲染性能,使其成为最近几年2D和3D程序开发的热门选择。尽管Google提供了Google Maps 的应用程序接口,但是这些接口在Unity中无法直接使用。因此,如何在Unity中实现Google Maps的可视化及交互,成为在Unity中开发基于Google Maps程序的难点。为了解决以上问题,本文提出了Google Maps在Unity中的可视化及交互方法。将RawImage 组件作为地图瓦片的可视化载体,通过多个地图瓦片的有序拼接实现Google Maps的可视化。在与Google Maps进行交互时,根据鼠标操作对地图瓦片进行更新,实现Google Maps的平移和缩放。实验结果表明提出的方法可以有效地显示、平移和缩放Google Maps,并可以在其基础上进行基于Google Maps的程序开发。
关键词:Unity;Google Maps;可视化;交互
中图分类号:V241 文献标识码:A    文章编号:1674-7976-(2019)01-034-05阻垢剂
Visualization and Interaction of Google Maps in Unity
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.
Key words: Unity; Google Maps; Visualization; Interaction
0 引言
奥特朗托城堡Google Maps是Google公司提供的电子地图。
收稿日期:2018-12-06。张绍泽(1985.6—),黑龙江富锦人,博士,主要研究方向为三维场景仿真。由于Google Maps具有丰富的地图资源,使其在基于地图信息的程序中得到了广泛应用[1-4]。近年来,Unity由于其容易上手、渲染逼真等特点,成为2D 和3D程序开发的热门选择[5-8]。尽管Google提供了Google Maps的应用程序接口(API)[9],以便开发者在程序中集成Google Maps的功能,但其提供c701

本文发布于:2024-09-20 17:22:55,感谢您对本站的认可!

本文链接:https://www.17tex.com/xueshu/501778.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:地图   瓦片   可视化   提供   程序   交互   成为   方法
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议