RMSMTileSource

@interface RMSMTileSource : NSObject <RMTileSource>

SuperMap iServer地图服务

Summary
RMSMTileSourceSuperMap iServer地图服务
Properties
isUseCache{BOOL} 用于判断在加载地图是是否使用本地缓存
Constructor
initWithInfoRMSMTileSource用于在iOS上加载iServer地图服务,方便的将iServer发布的地图服务显示在地图框架中
initWithInfoRMSMTileSource用于在iOS上加载iServer地图服务,方便的将iServer发布的地图服务显示在地图框架中
initWithInfoRMSMTileSource用于在iOS上加载iServer地图服务,方便的将iServer发布的地图服务显示在地图框架中
Functions
tileSideLength获取该地图服务每一个Tile瓦片的像素大小,默认为256像素
setTileSideLength指定每一个Tile瓦片的像素大小
Properties
minZoom{float} 当前地图最小显示层级。
maxZoom{float} 当前地图最大显示层级。

Properties

isUseCache

{BOOL} 用于判断在加载地图是是否使用本地缓存

Constructor

initWithInfo

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];

Parameters

info{RMSMLayerInfo} 地图服务属性信息。

initWithInfo

RMSMTileSource用于在iOS上加载iServer地图服务,方便的将iServer发布的地图服务显示在地图框架中

Parameters

info{RMSMLayerInfo} 地图服务属性信息。
resolutions{NSMutableArray} 指定分辨率数组。

initWithInfo

RMSMTileSource用于在iOS上加载iServer地图服务,方便的将iServer发布的地图服务显示在地图框架中

Parameters

info{RMSMLayerInfo} 地图服务属性信息。
scales{NSMutableArray} 指定比例尺数组。

Functions

tileSideLength

-(int) tileSideLength

获取该地图服务每一个Tile瓦片的像素大小,默认为256像素

Returns

{<int>} 获取该地图服务每一个Tile瓦片的像素大小,默认为256像素。

setTileSideLength

-(void) setTileSideLength: (NSUInteger) aTileSideLength

指定每一个Tile瓦片的像素大小

Parameters

aTileSideLength{NSUInteger} 指定的像素大小。

Properties

minZoom

{float} 当前地图最小显示层级。

maxZoom

{float} 当前地图最大显示层级。

@interface RMSMTileSource : NSObject <RMTileSource>
SuperMap iServer地图服务
-(int) tileSideLength
获取该地图服务每一个Tile瓦片的像素大小,默认为256像素
-(void) setTileSideLength: (NSUInteger) aTileSideLength
指定每一个Tile瓦片的像素大小
Close