Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 用户放大或缩小时的Route Me RMMarker缩放标记大小_Objective C_Route Me - Fatal编程技术网

Objective c 用户放大或缩小时的Route Me RMMarker缩放标记大小

Objective c 用户放大或缩小时的Route Me RMMarker缩放标记大小,objective-c,route-me,Objective C,Route Me,我有下面的代码,它工作得很好,显示了一个带有route me的标记,但我正在寻找一种方法,在用户每次从地图放大或缩小时调整标记的大小(例如,放大时标记变大,缩小时标记变小)。我看过“newMarker.contentsSize”的函数,但它似乎没有任何作用 是否有允许此功能的功能 RMMarker *newMarker; NSString *fileLocation; fileLocation = [[NSBundle mainBundle] pathForResource:@"marker-b

我有下面的代码,它工作得很好,显示了一个带有route me的标记,但我正在寻找一种方法,在用户每次从地图放大或缩小时调整标记的大小(例如,放大时标记变大,缩小时标记变小)。我看过“newMarker.contentsSize”的函数,但它似乎没有任何作用

是否有允许此功能的功能

RMMarker *newMarker;
NSString *fileLocation;
fileLocation = [[NSBundle mainBundle] pathForResource:@"marker-blue" ofType:@"png"];
UIImage *startImage = [[UIImage alloc] initWithContentsOfFile:fileLocation];

newLocation.latitude = 47.580;
newLocation.longitude = -122.333;   
newMarker = [[RMMarker alloc] initWithUIImage:startImage anchorPoint:CGPointMake(0.5, 1.0)];
[mv.contents.markerManager addMarker:newMarker AtLatLong:newLocation];
newMarker = nil;

我没有在RMMarkers或RMMapView上设置任何与此相关的选项,但我看到的行为是,放大时标记变小,缩小时标记变大。这与人们想要和期望的行为恰恰相反。我一直在试图找出一种追踪这种行为的方法,但没有任何想法。Phill,你是用一些工具测量图标大小的,还是用你自己的感觉?从视觉上看,这就像你有时说的,但对我来说,真正的标记大小一直是一样的