This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)drawDashedLineOnMapBetweenOrigin:(CLLocation *)originLocation destination:(CLLocation *)destinationLocation { | |
[self.mapView clear]; | |
CGFloat distance = [originLocation distanceFromLocation:destinationLocation]; | |
if (distance < kMinimalDistance) return; | |
// works for segmentLength 22 at zoom level 16; to have different length, | |
// calculate the new lengthFactor as 1/(24^2 * newLength) | |
CGFloat lengthFactor = 2.7093020352450285e-09; | |
CGFloat zoomFactor = pow(2, self.mapView.camera.zoom + 8); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// KIFUITestActor+Helper.h | |
// | |
// Created by Max Chuquimia on 10/04/2014. | |
// | |
// | |
#import "KIFUITestActor.h" | |
@interface KIFUITestActor (Helper) |