使用产品:iclient 8c for ios
问题详细描述:
我要实现的效果是在wms图层上显示路网及中文标注
实现过程是 用RMWMSSource 创建的RMMapContents ,然后添加天地图SMTianDiTuTileSource
结果 程序抛异常
代码如下
sm_wms = [[RMWMS alloc] init];
[sm_wms setCrs:@"EPSG:3857"];
[sm_wms setService:@"WMS"];
sm_wms.queryable = TRUE ;
[sm_wms setUrlPrefix:@"
http://tile1.1010earth.com:9292/map/jixi/wms"];
[sm_wms setLayers:@"mi_mc-pl-5m-20170701_20170730-jixi-am-0public,heilongjiang:mt_mc-farmland_change-20160701_20170730-jixi-p-0public"];
sm_wmsSource = [[RMWMSSource alloc] init];
[sm_wmsSource setWms:sm_wms];
sm_mapContents = [[RMMapContents alloc] initWithView:sm_mapView tilesource:sm_wmsSource];
self.tianditu = [[SMTianDiTuTileSource alloc] init];
[sm_mapContents addTileSource:tianditu];
程序抛异常