我正在构建一个Android应用程序,我正在使用ARCGIS android库 .
我希望能够从以下位置加载数据:http://tnmap.tn.gov/arcgis/rest/services/COMMUNITY/TN_GOV_PORTAL_LOCATIONS/FeatureServer
进入应用程序 .
我似乎无法弄清楚如何将此REST API与ARCGIS android API结合使用 . 任何帮助,将不胜感激 .
我相信我必须 Build 一个网址但由于某种原因我无法得到任何工作 .
您可以使用以下URL使用arcgis查看器查看 Map :http://www.arcgis.com/home/webmap/viewer.html?url=http%3A%2F%2Ftnmap.tn.gov%2Farcgis%2Frest%2Fservices%2FCOMMUNITY%2FTN_GOV_PORTAL_LOCATIONS%2FFeatureServer&source=sd
我在Android中构建 Map 时尝试使用该URL,但似乎无法正常工作 .
现在我想我必须以某种方式使用Portal类与PortalItem的组合 .
1 回答
随着最近的API更改,我没有意识到我所要做的就是使用ServiceFeatureTable类 .
https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/data/ServiceFeatureTable.html