FMKLocateCoordTransformer Class Reference
Inherits from | NSObject |
---|---|
Declared in | FMKLocateCoordTransformer.h |
+ geographicCoordinate2MercatorWithCoordinate:
经纬度转墨卡托坐标
+ (FMKMapPoint)geographicCoordinate2MercatorWithCoordinate:(FMKMapPoint)coordinate
Parameters
coordinate |
经纬度坐标 |
---|
Return Value
转化后的墨卡托坐标
Declared In
FMKLocateCoordTransformer.h
– setLocateOrigin:locateRange:
设置定位系统参数
- (void)setLocateOrigin:(CGPoint)origin locateRange:(CGPoint)range
Parameters
origin |
定位系统原点坐标 |
---|---|
range |
定位系统范围,如图片像素宽高 |
Declared In
FMKLocateCoordTransformer.h
– setFengmapOrigin:fmXLimitPoint:fmYLimitPoint:
设置对应fengmap参数
- (void)setFengmapOrigin:(FMKMapPoint)origin fmXLimitPoint:(FMKMapPoint)xLimitPoint fmYLimitPoint:(FMKMapPoint)yLimitPoint
Parameters
origin |
定位系统原点坐标对应到fengmap的坐标点 |
---|---|
xLimitPoint |
沿X轴增大的fengmap边界点坐标 |
yLimitPoint |
沿Y轴增大的fengmap边界点坐标 |
Declared In
FMKLocateCoordTransformer.h
– transformWithLocatePoint:
定位坐标转化到fengmap坐标 在转化之前必须设置好定位系统和fengmap相关参数,否则返回{0, 0}
- (FMKMapPoint)transformWithLocatePoint:(CGPoint)locatePoint
Parameters
locatePoint |
定位坐标点 |
---|
Return Value
转化完成的fengmap坐标
Declared In
FMKLocateCoordTransformer.h