天道酬勤,学无止境

ArcGIS for Android

ArcGIS for Android加载GeoServer发布的图层作为底图

/** * http://localhost:8080/geoserver : 固定路径,localhost你发布服务的IP * common : GeoServer工作空间名 * wms?SERVICE=WMS&REQUEST=GetCapabilities :固定请求位置 * wmsLayersName : 图层名称 */ String url = "http://47.108.203.109:8080/geoserver/common/wms?SERVICE=WMS&REQUEST=GetCapabilities"; List<String> wmsLayersName = new ArrayList<String>(); wmsLayersName.add("gddk"); wmsLayersName.add("pewg"); WmsLayer wmsLayer = new WmsLayer(url, wmsLayersName); Log.e("地图测试", wmsLayer.getUri()); Log.e("地图测试", wmsLayer.getLoadStatus().name()); wmsLayer.loadAsync(); basemap.getBaseLayers().add(wmsLayer); mArcGISMap.setBasemap(basemap)

2021-05-12 18:08:52    分类:博客    ArcGIS for Android   geoserver   ArcGIS 加载GeoServer