Other Urls are working fine but when I enter the URL which created by me It is not showing the actual map as mapviewer online
// here for the convenience of this tutorial. ArcGISRuntimeEnvironment.setApiKey(Utils.arcGIS_api_key)// create a map with the BasemapStyle topographic val map = ArcGISMap(BasemapStyle.ARCGIS_TOPOGRAPHIC)// create the service feature table val serviceFeatureTable = ServiceFeatureTable("https://services3.arcgis.com/df7XtT0Re4z8S561/arcgis/rest/services/redlist_species_data_7b024e64_0fd8_48a2_adf0_8e43737b5cb3/FeatureServer/0?token=hmhNtwfum0BzR5yrzisjJ8ksx2NDB5TGfEk12zN9vy-Jd3gNfiKqsxQDSc4ifrqiYsFvNR1yD-PAynWTqKYWaEA_PJOoFvO9FEQKwU6kO1ZS0ak6jsgyFsUrGIVSn-Qtf6bTyvWbj6__sWm6xucq4FfufOSnGhu82pKCYjfYiFiANZlEZzm2Y6OFYaKj-ONqYsteLoqXG-wx9nrw2eobHPrLm1WHEPyQ7kXpS5LjPmUrxjzC0w80OZKsNYGoB9Vp")//// val serviceFeatureTable =// ServiceFeatureTable("https://sampleserver6.arcgisonline.com/arcgis/rest/services/Hurricanes/MapServer/0") // create the feature layer using the service feature table val featureLayer = FeatureLayer(serviceFeatureTable) map.operationalLayers.add(featureLayer) mapView.map=map// mapView.setViewpoint(Viewpoint(7.9465, 1.0232, 20000000.0))
I think you shouldn't include the query parameters in the URL. Try simply using this when creating the ServiceFeatureTable.
https://services3.arcgis.com/df7XtT0Re4z8S561/arcgis/rest/services/redlist_species_data_7b024e64_0fd8_48a2_adf0_8e43737b5cb3/FeatureServer/0
Note, you can call loadAsync on the ServiceFeatureTable and see if there's a loadError to help home in on the cause of issues like this. All Runtime classes that work with remote resources will implement the Loadable pattern. See this page for more details.
Hope that helps.
Thank you for the response
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.