本篇记录在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运行应用程序。
如果在cpu为64位的android设备上运行应用程序闪退,在32位的android设备上运行成功,可以参考这篇博客解决64位android设备闪退的问题。链接:https://blog.csdn.net/gislaozhang/article/details/116092070
参考资料:
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