用户登录
用户注册

分享至

runtime for android10.2.x加载天地图服务

  • 作者: 亖呉?盀
  • 来源: 51数据库
  • 2021-09-02

本篇记录在arcgis runtime for android10.2.9中加载天地图地图服务。

效果图:

实现思路:

1、在androidstudio中创建应用,编写代码,代码如下:

链接:http://www.all.com/files/Articles/416/0/159/159932_20210618150549104.jpg?
提取码:eflt

2、生成发布者SHA1

参考此链接:https://blog.csdn.net/qq_29269233/article/details/53725865

https://blog.csdn.net/qq_30304193/article/details/81781914

3、天地图官网申请密钥。访问天地图的地图服务现在需要密钥。

提交后会自动生成一个key

4、将天地图中应用的密钥填写在代码中。

5、在androidstudio运行应用程序。

我在我的华为真机上运行这个程序没有运行成功,直接闪退,然后我创建了虚拟机(如下图),需要是X86的,运行成功了。

参考资料:

https://blog.csdn.net/qq_30304193/article/details/81781914
https://blog.csdn.net/qq_29269233/article/details/53725865
https://blog.csdn.net/sqj199567/article/details/86526856

软件
前端设计
程序设计
Java相关