本篇记录在arcgis runtime for android10.2.9中加载天地图地图服务。
效果图:
实现思路:
1、在androidstudio中创建应用,编写代码,代码如下:
链接:https://pan.baidu.com/s/1pWL0q_SkDSF4mamj5G5mPA
提取码: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
本文地址:https://blog.csdn.net/gislaozhang/article/details/108562739
您可能感兴趣的文章:
如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!
网友评论