@interface RMSMTileSource : NSObject <RMTileSource>
SuperMap iServer地图服务
| RMSMTileSource | SuperMap iServer地图服务 |
| Properties | |
| isUseCache | {BOOL} 用于判断在加载地图是是否使用本地缓存 |
| Constructor | |
| initWithInfo | RMSMTileSource用于在iOS上加载iServer地图服务,方便的将iServer发布的地图服务显示在地图框架中 |
| initWithInfo | RMSMTileSource用于在iOS上加载iServer地图服务,方便的将iServer发布的地图服务显示在地图框架中 |
| initWithInfo | RMSMTileSource用于在iOS上加载iServer地图服务,方便的将iServer发布的地图服务显示在地图框架中 |
| Functions | |
| tileSideLength | 获取该地图服务每一个Tile瓦片的像素大小,默认为256像素 |
| setTileSideLength | 指定每一个Tile瓦片的像素大小 |
| Properties | |
| minZoom | {float} 当前地图最小显示层级。 |
| maxZoom | {float} 当前地图最大显示层级。 |
RMSMTileSource用于在iOS上加载iServer地图服务,方便的将iServer发布的地图服务显示在地图框架中
//字符串为SuperMap iServer地图服务的url链接 NSString *mapUrl = @"/iserver/services/map-china400/rest/maps/China"; //创建地图服务配置信息,参数为地图名和链接地址 RMSMLayerInfo* info = [[RMSMLayerInfo alloc] initWithTile:@"China" linkurl:mapUrl]; // 创建iServer地图服务 RMSMTileSource* smSource = [[RMSMTileSource alloc] initWithInfo:info]; // 加载该地图服务 RMMapContents *newContents = [[RMMapContents alloc] initWithView:self tilesource:smSource];
| info | {RMSMLayerInfo} 地图服务属性信息。 |
SuperMap iServer地图服务
@interface RMSMTileSource : NSObject <RMTileSource>
获取该地图服务每一个Tile瓦片的像素大小,默认为256像素
-( int ) tileSideLength
指定每一个Tile瓦片的像素大小
-( void ) setTileSideLength: (NSUInteger) aTileSideLength