A | |
addCache, RMTileCache | |
addLineToLatLong, RMPath | |
addLineToScreenPoint, RMPath | |
addLineToXY, RMPath | |
addMarker, RMMarkerManager | |
addTile, RMTileCache | |
addTiles, RMTileImageSet | |
addTileSource, RMMapContents | |
C | |
cachedImage, RMTileCache | |
calculateDpi, RMSMLayerInfo | |
castToDict | |
changeLabelUsingText, RMMarker | |
closePath, RMPath | |
constrainPointToBounds, RMProjection | |
createTempLayer, RMSMLayerInfo | |
D | |
defaultFont, RMMarker | |
deleteTempLayer, RMSMLayerInfo | |
G | |
getResolutionFromScaleDpi, RMSMLayerInfo | |
getScaleFromResolutionDpi, RMSMLayerInfo | |
H | |
hideAllMarkers, RMMarkerManager | |
hideLabel, RMMarker | |
I | |
initStrParams, RMSMLayerInfo | |
L | |
latitudeLongitudeBoundingBoxFor, RMMapContents | |
latLongToPoint, RMProjection | |
latLongToProjectedPoint, RMMapContents | |
layerInfo, RMSMLayerInfo | |
M | |
mapViewRegionDidChange, RMMapViewDelegate | |
markers, RMMarkerManager | |
movePoint, RMMercatorToScreenProjection | |
moveRect, RMMercatorToScreenProjection | |
moveScreenBy, RMMercatorToScreenProjection | |
moveToLatLong | |
moveToProjectedPoint | |
moveToScreenPoint, RMPath | |
moveToXY, RMPath | |
O | |
orderLayers, RMLayerCollection | |
P | |
pixelToProjectedPoint, RMMapContents | |
pointToLatLong, RMProjection | |
processAsync | |
processAsync4PathWithPoints: | |
processAsync4SolutionWithParam: | |
ProcessAsync4StopsWithKeyWord: | |
projectedBounds, RMMercatorToScreenProjection | |
projectedPointToLatLong, RMMapContents | |
projectXYPoint, RMMercatorToScreenProjection | |
projectXYRect, RMMercatorToScreenProjection | |
R | |
refreshMap, RMMapContents | |
removeAllCachedImages | |
removeMarker, RMMarkerManager | |
removeMarkers, RMMarkerManager | |
removeSublayer, RMLayerCollection | |
removeSublayers, RMLayerCollection | |
removeTileSource, RMMapContents | |
RMTileHash | |
RMTileKey | |
RMTileRectRound |
Add another cache to the chain
-( void )addCache: (id<RMTileCache>)cache
设置线段的终点,创建了一条线段,起点是设置的起点或所创建的前一条线段的终点。此终点为RMLatLong。
- ( void ) addLineToLatLong: (RMLatLong) point
设置线段的终点,创建了一条线段,起点是设置的起点或所创建的前一条线段的终点。此终点为CGPoint。
- ( void ) addLineToScreenPoint: (CGPoint) point
设置线段的终点,创建了一条线段,起点是设置的起点或所创建的前一条线段的终点。此终点为RMProjectedPoint。
- ( void ) addLineToXY: (RMProjectedPoint) point
在一地理坐标上添加Marker
- ( void )addMarker:(RMMarker *)marker atProjectedPoint:(RMProjectedPoint)projectedPoint
Add tile to cache
-( void )addTile: (RMTile)tile WithImage: (RMTileImage*)image
Add tiles inside rect protected to bounds.
-( CGRect ) addTiles: (RMTileRect)rect ToDisplayIn:(CGRect)bounds
添加叠加图层
- ( void )addTileSource:(id <RMTileSource>)newTileSource
Returns the cached image if it exists.
-( RMTileImage* ) cachedImage:(RMTile)tile
计算当前地图服务DPI。
- ( double )calculateDpi:(double)viewBoundsWidth rvbheight:(double)viewBoundsHeight rvWidth:(int)nWidth rcHeight:(int)nHeight scale:(double)dScale
返回一个字典,用于转换为json格式数据。
-( NSDictionary * )castToDict
转换为字典,只返回endStopIndex,lineID,startStopIndex三个键值对,用做Path服务请求参数
-( NSMutableDictionary * )castToDict
将对象转换为一个字典,用于转换为json格式数据。
-( NSDictionary * )castToDict
改变marker上的UILabel所显示的文本内容,即改变属性label的值。
- ( void ) changeLabelUsingText: (NSString*)text
闭合多边形,连接多边形的起点和最后一个点为一条线段。
- ( void ) closePath
applies #wrapPointHorizontally to aPoint, and then clamps northing (Y coordinate) to projection’s planetBounds
- ( RMProjectedPoint ) constrainPointToBounds: (RMProjectedPoint) aPoint
创建临时图层
-( BOOL ) createTempLayer
labels默认的字体,其值是[UIFont systemFontOfSize:15]。
+ ( UIFont * )defaultFont
根删除临时图层
- ( BOOL ) deleteTempLayer
根据指定的比例尺,返回对应的分辨率。
-( NSString* ) getResolutionFromScaleDpi:(double)dScale
根据指定的分辨率,返回对应的比例尺。
-( NSString* ) getScaleFromResolutionDpi:(double)dResolution
隐藏所有的Marker
- ( void ) hideAllMarkers
隐藏marker上的UILabel
- ( void ) hideLabel
初始化StrParams参数
- ( void ) initStrParams:(NSMutableDictionary*) params
返回包含整个屏幕的最小边界框
- ( RMSphericalTrapezium ) latitudeLongitudeBoundingBoxForScreen
forward project latitude/longitude, return meters deprecated: rename pending after 0.5
- ( RMProjectedPoint )latLongToPoint:(RMLatLong)aLatLong
将经纬度坐标转换为投影坐标
- ( RMProjectedPoint )latLongToProjectedPoint:(CLLocationCoordinate2D)latlong
临时图层信息,主要用于初始化tempLayerInfo变量。
- ( BOOL )layerInfo
Tells the delegate that the region displayed by the map view just changed.
- ( void )mapViewRegionDidChange:(RMMapView *)mapView
获取所有的Marker
- ( NSArray * )markers
Deltas in screen coordinates.
- ( RMProjectedPoint )movePoint: (RMProjectedPoint)aPoint by:(CGSize) delta
Deltas in screen coordinates.
- ( RMProjectedRect )moveRect: (RMProjectedRect)aRect by:(CGSize) delta
Move the screen.
- ( void ) moveScreenBy: (CGSize) delta
重置地图的中心点,该中心点为经纬度坐标。
- ( void )moveToLatLong: (CLLocationCoordinate2D)latlong
设置点,或设置线、多边形的起点。此点为RMLatLong。
- ( void ) moveToLatLong: (RMLatLong) point
重置地图的中心点,该中心点为平面坐标。
- ( void )moveToProjectedPoint: (RMProjectedPoint)aPoint
用于重置地图的中心点
- ( void )moveToProjectedPoint: (RMProjectedPoint)aPoint
设置点,或设置线、多边形的起点。此点为CGPoint。
- ( void ) moveToScreenPoint: (CGPoint) point
设置点,或设置线、多边形的起点。此点为RMProjectedPoint。
- ( void ) moveToXY: (RMProjectedPoint) point
图层排序。根据图层在map的位置排序,但优先RMMarker的实例或其子类。
- ( void )orderLayers
将像素坐标转换为当前地图的地理坐标
- ( RMProjectedPoint )pixelToProjectedPoint:(CGPoint)aPixel
inverse project meters, return latitude/longitude deprecated: rename pending after 0.5
- ( RMLatLong )pointToLatLong:(RMProjectedPoint)aPoint
负责将客户端的查询参数传递到服务端。 请求成功通知标识为”findPathCompleted”
-( void ) processAsync:(FindPathParameters*)parameters
负责将客户端的查询参数传递到服务端。 请求成功通知标识为”generateSpatialCompleted”,失败为”generateSpatialFailed”
-( void ) processAsync:(GenerateSpatialDataParameters*)parameters
负责将客户端的量算参数传递到服务端。 请求成功通知标识为”queryCompleted”
-( void ) processAsync:(QueryParameters*)params
负责将客户端的量算参数传递到服务端。 请求成功通知标识为”measureComplete”,失败为”measureError”
- ( void ) processAsync:(RMSMMeasureParameters*)para
负责将客户端的专题图参数传递到服务端。 请求成功通知标识为”themeCompleted”,失败为”themeFailed”
-( void ) processAsync:(ThemeParameters*)parameters
视图内地理范围
- ( RMProjectedRect ) projectedBounds
将投影坐标转换为经纬度坐标
- ( CLLocationCoordinate2D )projectedPointToLatLong:(RMProjectedPoint)projectedPoint
Project -> screen coordinates.
- ( CGPoint )projectXYPoint:(RMProjectedPoint)aPoint withMetersPerPixel:(float)aScale
Project -> screen coordinates.
- ( CGRect ) projectXYRect: (RMProjectedRect) aRect
刷新瓦片地图
- ( void )refreshMap
删除tileSource缓存机制所缓存的所有图片。
-( void )removeAllCachedImages
removes all tile images from the memory and disk subcaches
-( void )removeAllCachedImages
移除marker
- ( void ) removeMarker:(RMMarker *)marker
移除所有的Marker
- ( void ) removeMarkers
移除图层
- ( void )removeSublayer:(CALayer *)layer
移除图层集合
- ( void )removeSublayers:(NSArray *)layers
移除叠加图层 底图不能被移除。
- ( void )removeTileSource:(id <RMTileSource>)tileSource
Return a hash of the tile, used to override the NSObject hash method for RMTile.
uint64_t RMTileHash( RMTile tile )
Returns a unique key of the tile for use in the SQLite cache
uint64_t RMTileKey( RMTile tile )
Round the rectangle to whole numbers of tiles
RMTileRect RMTileRectRound( RMTileRect rect )