Select to view content in your preferred language

ArcGIS add features (Feature Service) does not load map in Android

234
0
10-13-2022 02:21 AM
Faizan_poran
New Contributor

I published the service using ArcGIS server and can load it successfully with JS API.

var layerss = new FeatureLayer({
    url: "https://hbsyb.booway.com.cn/arcgis/rest/services/zjsxyd/sichuanxianjixingzhengqu/MapServer/0",
    outFields : ["*"],
    opacity : 0.5
});
map.add(layerss);

When I want to load it with Android Runtime SdK 100.15.0(FeatureLayer) it doesn't work.

final ServiceFeatureTable serviceFeatureTable = new ServiceFeatureTable("https://hbsyb.booway.com.cn/arcgis/rest/services/zjsxyd/sichuanxianjixingzhengqu/MapServer/0");

final FeatureLayer featureLayer = new FeatureLayer(serviceFeatureTable);
featureLayer.setSelectionColor(Color.BLUE);
featureLayer.setSelectionWidth(10);
map.getOperationalLayers().add(featureLayer);

 

0 Kudos
0 Replies