GoogleMaps在Unity中的可视化及交互方法
DOI:
CSTR:
作者:
作者单位:

作者简介:

张绍泽(1985.6—),黑龙江富锦人,博士,主要研究方向为三维场景仿真

通讯作者:

中图分类号:

V241

基金项目:


Visualization and Interaction of Google Maps in Unity
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    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 的平移和缩放。实验结果表明提出的方法可以有效地显示、平移和缩放 Google Maps,并可以在其基础上进行基于 Google Maps 的程序开发。

    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.

    参考文献
    相似文献
    引证文献
引用本文

张绍泽,任磊. GoogleMaps在Unity中的可视化及交互方法[J].现代导航,2019,10(1):34-38

复制
分享
相关视频

文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2022-05-17
  • 出版日期:
文章二维码