├── PolyLineRenderTest.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── rob.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── rob.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── PolyLineRenderTest.xcscheme │ └── xcschememanagement.plist ├── PolyLineRenderTest ├── AppDelegate.swift ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── SimplePolylineViewController.swift └── ViewController.swift ├── PolyLineRenderTestTests ├── Info.plist └── PolyLineRenderTestTests.swift ├── README.md └── images └── PolyLineTest_iPadAir.jpg /PolyLineRenderTest.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | D4DF81021A9A3D41008FA560 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4DF81011A9A3D41008FA560 /* AppDelegate.swift */; }; 11 | D4DF81041A9A3D41008FA560 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4DF81031A9A3D41008FA560 /* ViewController.swift */; }; 12 | D4DF81071A9A3D41008FA560 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D4DF81051A9A3D41008FA560 /* Main.storyboard */; }; 13 | D4DF81091A9A3D41008FA560 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D4DF81081A9A3D41008FA560 /* Images.xcassets */; }; 14 | D4DF810C1A9A3D41008FA560 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = D4DF810A1A9A3D41008FA560 /* LaunchScreen.xib */; }; 15 | D4DF81181A9A3D41008FA560 /* PolyLineRenderTestTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4DF81171A9A3D41008FA560 /* PolyLineRenderTestTests.swift */; }; 16 | D4DF81221A9A3F96008FA560 /* MapKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D4DF81211A9A3F96008FA560 /* MapKit.framework */; }; 17 | D4DF81241A9AB783008FA560 /* SimplePolylineViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4DF81231A9AB783008FA560 /* SimplePolylineViewController.swift */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | D4DF81121A9A3D41008FA560 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = D4DF80F41A9A3D40008FA560 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = D4DF80FB1A9A3D41008FA560; 26 | remoteInfo = PolyLineRenderTest; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | D4DF80FC1A9A3D41008FA560 /* PolyLineRenderTest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PolyLineRenderTest.app; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | D4DF81001A9A3D41008FA560 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 33 | D4DF81011A9A3D41008FA560 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 34 | D4DF81031A9A3D41008FA560 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 35 | D4DF81061A9A3D41008FA560 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 36 | D4DF81081A9A3D41008FA560 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 37 | D4DF810B1A9A3D41008FA560 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 38 | D4DF81111A9A3D41008FA560 /* PolyLineRenderTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PolyLineRenderTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | D4DF81161A9A3D41008FA560 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 40 | D4DF81171A9A3D41008FA560 /* PolyLineRenderTestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PolyLineRenderTestTests.swift; sourceTree = ""; }; 41 | D4DF81211A9A3F96008FA560 /* MapKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MapKit.framework; path = System/Library/Frameworks/MapKit.framework; sourceTree = SDKROOT; }; 42 | D4DF81231A9AB783008FA560 /* SimplePolylineViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SimplePolylineViewController.swift; sourceTree = ""; }; 43 | /* End PBXFileReference section */ 44 | 45 | /* Begin PBXFrameworksBuildPhase section */ 46 | D4DF80F91A9A3D41008FA560 /* Frameworks */ = { 47 | isa = PBXFrameworksBuildPhase; 48 | buildActionMask = 2147483647; 49 | files = ( 50 | D4DF81221A9A3F96008FA560 /* MapKit.framework in Frameworks */, 51 | ); 52 | runOnlyForDeploymentPostprocessing = 0; 53 | }; 54 | D4DF810E1A9A3D41008FA560 /* Frameworks */ = { 55 | isa = PBXFrameworksBuildPhase; 56 | buildActionMask = 2147483647; 57 | files = ( 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | /* End PBXFrameworksBuildPhase section */ 62 | 63 | /* Begin PBXGroup section */ 64 | D4DF80F31A9A3D40008FA560 = { 65 | isa = PBXGroup; 66 | children = ( 67 | D4DF81211A9A3F96008FA560 /* MapKit.framework */, 68 | D4DF80FE1A9A3D41008FA560 /* PolyLineRenderTest */, 69 | D4DF81141A9A3D41008FA560 /* PolyLineRenderTestTests */, 70 | D4DF80FD1A9A3D41008FA560 /* Products */, 71 | ); 72 | sourceTree = ""; 73 | }; 74 | D4DF80FD1A9A3D41008FA560 /* Products */ = { 75 | isa = PBXGroup; 76 | children = ( 77 | D4DF80FC1A9A3D41008FA560 /* PolyLineRenderTest.app */, 78 | D4DF81111A9A3D41008FA560 /* PolyLineRenderTestTests.xctest */, 79 | ); 80 | name = Products; 81 | sourceTree = ""; 82 | }; 83 | D4DF80FE1A9A3D41008FA560 /* PolyLineRenderTest */ = { 84 | isa = PBXGroup; 85 | children = ( 86 | D4DF81011A9A3D41008FA560 /* AppDelegate.swift */, 87 | D4DF81031A9A3D41008FA560 /* ViewController.swift */, 88 | D4DF81051A9A3D41008FA560 /* Main.storyboard */, 89 | D4DF81081A9A3D41008FA560 /* Images.xcassets */, 90 | D4DF810A1A9A3D41008FA560 /* LaunchScreen.xib */, 91 | D4DF80FF1A9A3D41008FA560 /* Supporting Files */, 92 | D4DF81231A9AB783008FA560 /* SimplePolylineViewController.swift */, 93 | ); 94 | path = PolyLineRenderTest; 95 | sourceTree = ""; 96 | }; 97 | D4DF80FF1A9A3D41008FA560 /* Supporting Files */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | D4DF81001A9A3D41008FA560 /* Info.plist */, 101 | ); 102 | name = "Supporting Files"; 103 | sourceTree = ""; 104 | }; 105 | D4DF81141A9A3D41008FA560 /* PolyLineRenderTestTests */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | D4DF81171A9A3D41008FA560 /* PolyLineRenderTestTests.swift */, 109 | D4DF81151A9A3D41008FA560 /* Supporting Files */, 110 | ); 111 | path = PolyLineRenderTestTests; 112 | sourceTree = ""; 113 | }; 114 | D4DF81151A9A3D41008FA560 /* Supporting Files */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | D4DF81161A9A3D41008FA560 /* Info.plist */, 118 | ); 119 | name = "Supporting Files"; 120 | sourceTree = ""; 121 | }; 122 | /* End PBXGroup section */ 123 | 124 | /* Begin PBXNativeTarget section */ 125 | D4DF80FB1A9A3D41008FA560 /* PolyLineRenderTest */ = { 126 | isa = PBXNativeTarget; 127 | buildConfigurationList = D4DF811B1A9A3D41008FA560 /* Build configuration list for PBXNativeTarget "PolyLineRenderTest" */; 128 | buildPhases = ( 129 | D4DF80F81A9A3D41008FA560 /* Sources */, 130 | D4DF80F91A9A3D41008FA560 /* Frameworks */, 131 | D4DF80FA1A9A3D41008FA560 /* Resources */, 132 | ); 133 | buildRules = ( 134 | ); 135 | dependencies = ( 136 | ); 137 | name = PolyLineRenderTest; 138 | productName = PolyLineRenderTest; 139 | productReference = D4DF80FC1A9A3D41008FA560 /* PolyLineRenderTest.app */; 140 | productType = "com.apple.product-type.application"; 141 | }; 142 | D4DF81101A9A3D41008FA560 /* PolyLineRenderTestTests */ = { 143 | isa = PBXNativeTarget; 144 | buildConfigurationList = D4DF811E1A9A3D41008FA560 /* Build configuration list for PBXNativeTarget "PolyLineRenderTestTests" */; 145 | buildPhases = ( 146 | D4DF810D1A9A3D41008FA560 /* Sources */, 147 | D4DF810E1A9A3D41008FA560 /* Frameworks */, 148 | D4DF810F1A9A3D41008FA560 /* Resources */, 149 | ); 150 | buildRules = ( 151 | ); 152 | dependencies = ( 153 | D4DF81131A9A3D41008FA560 /* PBXTargetDependency */, 154 | ); 155 | name = PolyLineRenderTestTests; 156 | productName = PolyLineRenderTestTests; 157 | productReference = D4DF81111A9A3D41008FA560 /* PolyLineRenderTestTests.xctest */; 158 | productType = "com.apple.product-type.bundle.unit-test"; 159 | }; 160 | /* End PBXNativeTarget section */ 161 | 162 | /* Begin PBXProject section */ 163 | D4DF80F41A9A3D40008FA560 /* Project object */ = { 164 | isa = PBXProject; 165 | attributes = { 166 | LastSwiftMigration = 0700; 167 | LastSwiftUpdateCheck = 0700; 168 | LastUpgradeCheck = 0700; 169 | ORGANIZATIONNAME = "Mobile Toolworks, LLC"; 170 | TargetAttributes = { 171 | D4DF80FB1A9A3D41008FA560 = { 172 | CreatedOnToolsVersion = 6.1.1; 173 | }; 174 | D4DF81101A9A3D41008FA560 = { 175 | CreatedOnToolsVersion = 6.1.1; 176 | TestTargetID = D4DF80FB1A9A3D41008FA560; 177 | }; 178 | }; 179 | }; 180 | buildConfigurationList = D4DF80F71A9A3D40008FA560 /* Build configuration list for PBXProject "PolyLineRenderTest" */; 181 | compatibilityVersion = "Xcode 3.2"; 182 | developmentRegion = English; 183 | hasScannedForEncodings = 0; 184 | knownRegions = ( 185 | en, 186 | Base, 187 | ); 188 | mainGroup = D4DF80F31A9A3D40008FA560; 189 | productRefGroup = D4DF80FD1A9A3D41008FA560 /* Products */; 190 | projectDirPath = ""; 191 | projectRoot = ""; 192 | targets = ( 193 | D4DF80FB1A9A3D41008FA560 /* PolyLineRenderTest */, 194 | D4DF81101A9A3D41008FA560 /* PolyLineRenderTestTests */, 195 | ); 196 | }; 197 | /* End PBXProject section */ 198 | 199 | /* Begin PBXResourcesBuildPhase section */ 200 | D4DF80FA1A9A3D41008FA560 /* Resources */ = { 201 | isa = PBXResourcesBuildPhase; 202 | buildActionMask = 2147483647; 203 | files = ( 204 | D4DF81071A9A3D41008FA560 /* Main.storyboard in Resources */, 205 | D4DF810C1A9A3D41008FA560 /* LaunchScreen.xib in Resources */, 206 | D4DF81091A9A3D41008FA560 /* Images.xcassets in Resources */, 207 | ); 208 | runOnlyForDeploymentPostprocessing = 0; 209 | }; 210 | D4DF810F1A9A3D41008FA560 /* Resources */ = { 211 | isa = PBXResourcesBuildPhase; 212 | buildActionMask = 2147483647; 213 | files = ( 214 | ); 215 | runOnlyForDeploymentPostprocessing = 0; 216 | }; 217 | /* End PBXResourcesBuildPhase section */ 218 | 219 | /* Begin PBXSourcesBuildPhase section */ 220 | D4DF80F81A9A3D41008FA560 /* Sources */ = { 221 | isa = PBXSourcesBuildPhase; 222 | buildActionMask = 2147483647; 223 | files = ( 224 | D4DF81041A9A3D41008FA560 /* ViewController.swift in Sources */, 225 | D4DF81021A9A3D41008FA560 /* AppDelegate.swift in Sources */, 226 | D4DF81241A9AB783008FA560 /* SimplePolylineViewController.swift in Sources */, 227 | ); 228 | runOnlyForDeploymentPostprocessing = 0; 229 | }; 230 | D4DF810D1A9A3D41008FA560 /* Sources */ = { 231 | isa = PBXSourcesBuildPhase; 232 | buildActionMask = 2147483647; 233 | files = ( 234 | D4DF81181A9A3D41008FA560 /* PolyLineRenderTestTests.swift in Sources */, 235 | ); 236 | runOnlyForDeploymentPostprocessing = 0; 237 | }; 238 | /* End PBXSourcesBuildPhase section */ 239 | 240 | /* Begin PBXTargetDependency section */ 241 | D4DF81131A9A3D41008FA560 /* PBXTargetDependency */ = { 242 | isa = PBXTargetDependency; 243 | target = D4DF80FB1A9A3D41008FA560 /* PolyLineRenderTest */; 244 | targetProxy = D4DF81121A9A3D41008FA560 /* PBXContainerItemProxy */; 245 | }; 246 | /* End PBXTargetDependency section */ 247 | 248 | /* Begin PBXVariantGroup section */ 249 | D4DF81051A9A3D41008FA560 /* Main.storyboard */ = { 250 | isa = PBXVariantGroup; 251 | children = ( 252 | D4DF81061A9A3D41008FA560 /* Base */, 253 | ); 254 | name = Main.storyboard; 255 | sourceTree = ""; 256 | }; 257 | D4DF810A1A9A3D41008FA560 /* LaunchScreen.xib */ = { 258 | isa = PBXVariantGroup; 259 | children = ( 260 | D4DF810B1A9A3D41008FA560 /* Base */, 261 | ); 262 | name = LaunchScreen.xib; 263 | sourceTree = ""; 264 | }; 265 | /* End PBXVariantGroup section */ 266 | 267 | /* Begin XCBuildConfiguration section */ 268 | D4DF81191A9A3D41008FA560 /* Debug */ = { 269 | isa = XCBuildConfiguration; 270 | buildSettings = { 271 | ALWAYS_SEARCH_USER_PATHS = NO; 272 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 273 | CLANG_CXX_LIBRARY = "libc++"; 274 | CLANG_ENABLE_MODULES = YES; 275 | CLANG_ENABLE_OBJC_ARC = YES; 276 | CLANG_WARN_BOOL_CONVERSION = YES; 277 | CLANG_WARN_CONSTANT_CONVERSION = YES; 278 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 279 | CLANG_WARN_EMPTY_BODY = YES; 280 | CLANG_WARN_ENUM_CONVERSION = YES; 281 | CLANG_WARN_INT_CONVERSION = YES; 282 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 283 | CLANG_WARN_UNREACHABLE_CODE = YES; 284 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 285 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 286 | COPY_PHASE_STRIP = NO; 287 | ENABLE_STRICT_OBJC_MSGSEND = YES; 288 | ENABLE_TESTABILITY = YES; 289 | GCC_C_LANGUAGE_STANDARD = gnu99; 290 | GCC_DYNAMIC_NO_PIC = NO; 291 | GCC_OPTIMIZATION_LEVEL = 0; 292 | GCC_PREPROCESSOR_DEFINITIONS = ( 293 | "DEBUG=1", 294 | "$(inherited)", 295 | ); 296 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 297 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 298 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 299 | GCC_WARN_UNDECLARED_SELECTOR = YES; 300 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 301 | GCC_WARN_UNUSED_FUNCTION = YES; 302 | GCC_WARN_UNUSED_VARIABLE = YES; 303 | IPHONEOS_DEPLOYMENT_TARGET = 8.1; 304 | MTL_ENABLE_DEBUG_INFO = YES; 305 | ONLY_ACTIVE_ARCH = YES; 306 | SDKROOT = iphoneos; 307 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 308 | TARGETED_DEVICE_FAMILY = 2; 309 | }; 310 | name = Debug; 311 | }; 312 | D4DF811A1A9A3D41008FA560 /* Release */ = { 313 | isa = XCBuildConfiguration; 314 | buildSettings = { 315 | ALWAYS_SEARCH_USER_PATHS = NO; 316 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 317 | CLANG_CXX_LIBRARY = "libc++"; 318 | CLANG_ENABLE_MODULES = YES; 319 | CLANG_ENABLE_OBJC_ARC = YES; 320 | CLANG_WARN_BOOL_CONVERSION = YES; 321 | CLANG_WARN_CONSTANT_CONVERSION = YES; 322 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 323 | CLANG_WARN_EMPTY_BODY = YES; 324 | CLANG_WARN_ENUM_CONVERSION = YES; 325 | CLANG_WARN_INT_CONVERSION = YES; 326 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 327 | CLANG_WARN_UNREACHABLE_CODE = YES; 328 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 329 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 330 | COPY_PHASE_STRIP = YES; 331 | ENABLE_NS_ASSERTIONS = NO; 332 | ENABLE_STRICT_OBJC_MSGSEND = YES; 333 | GCC_C_LANGUAGE_STANDARD = gnu99; 334 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 335 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 336 | GCC_WARN_UNDECLARED_SELECTOR = YES; 337 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 338 | GCC_WARN_UNUSED_FUNCTION = YES; 339 | GCC_WARN_UNUSED_VARIABLE = YES; 340 | IPHONEOS_DEPLOYMENT_TARGET = 8.1; 341 | MTL_ENABLE_DEBUG_INFO = NO; 342 | SDKROOT = iphoneos; 343 | TARGETED_DEVICE_FAMILY = 2; 344 | VALIDATE_PRODUCT = YES; 345 | }; 346 | name = Release; 347 | }; 348 | D4DF811C1A9A3D41008FA560 /* Debug */ = { 349 | isa = XCBuildConfiguration; 350 | buildSettings = { 351 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 352 | INFOPLIST_FILE = PolyLineRenderTest/Info.plist; 353 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 354 | PRODUCT_BUNDLE_IDENTIFIER = "com.mobiletoolworks.$(PRODUCT_NAME:rfc1034identifier)"; 355 | PRODUCT_NAME = "$(TARGET_NAME)"; 356 | }; 357 | name = Debug; 358 | }; 359 | D4DF811D1A9A3D41008FA560 /* Release */ = { 360 | isa = XCBuildConfiguration; 361 | buildSettings = { 362 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 363 | INFOPLIST_FILE = PolyLineRenderTest/Info.plist; 364 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 365 | PRODUCT_BUNDLE_IDENTIFIER = "com.mobiletoolworks.$(PRODUCT_NAME:rfc1034identifier)"; 366 | PRODUCT_NAME = "$(TARGET_NAME)"; 367 | }; 368 | name = Release; 369 | }; 370 | D4DF811F1A9A3D41008FA560 /* Debug */ = { 371 | isa = XCBuildConfiguration; 372 | buildSettings = { 373 | BUNDLE_LOADER = "$(TEST_HOST)"; 374 | FRAMEWORK_SEARCH_PATHS = ( 375 | "$(SDKROOT)/Developer/Library/Frameworks", 376 | "$(inherited)", 377 | ); 378 | GCC_PREPROCESSOR_DEFINITIONS = ( 379 | "DEBUG=1", 380 | "$(inherited)", 381 | ); 382 | INFOPLIST_FILE = PolyLineRenderTestTests/Info.plist; 383 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 384 | PRODUCT_BUNDLE_IDENTIFIER = "com.mobiletoolworks.$(PRODUCT_NAME:rfc1034identifier)"; 385 | PRODUCT_NAME = "$(TARGET_NAME)"; 386 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PolyLineRenderTest.app/PolyLineRenderTest"; 387 | }; 388 | name = Debug; 389 | }; 390 | D4DF81201A9A3D41008FA560 /* Release */ = { 391 | isa = XCBuildConfiguration; 392 | buildSettings = { 393 | BUNDLE_LOADER = "$(TEST_HOST)"; 394 | FRAMEWORK_SEARCH_PATHS = ( 395 | "$(SDKROOT)/Developer/Library/Frameworks", 396 | "$(inherited)", 397 | ); 398 | INFOPLIST_FILE = PolyLineRenderTestTests/Info.plist; 399 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 400 | PRODUCT_BUNDLE_IDENTIFIER = "com.mobiletoolworks.$(PRODUCT_NAME:rfc1034identifier)"; 401 | PRODUCT_NAME = "$(TARGET_NAME)"; 402 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PolyLineRenderTest.app/PolyLineRenderTest"; 403 | }; 404 | name = Release; 405 | }; 406 | /* End XCBuildConfiguration section */ 407 | 408 | /* Begin XCConfigurationList section */ 409 | D4DF80F71A9A3D40008FA560 /* Build configuration list for PBXProject "PolyLineRenderTest" */ = { 410 | isa = XCConfigurationList; 411 | buildConfigurations = ( 412 | D4DF81191A9A3D41008FA560 /* Debug */, 413 | D4DF811A1A9A3D41008FA560 /* Release */, 414 | ); 415 | defaultConfigurationIsVisible = 0; 416 | defaultConfigurationName = Release; 417 | }; 418 | D4DF811B1A9A3D41008FA560 /* Build configuration list for PBXNativeTarget "PolyLineRenderTest" */ = { 419 | isa = XCConfigurationList; 420 | buildConfigurations = ( 421 | D4DF811C1A9A3D41008FA560 /* Debug */, 422 | D4DF811D1A9A3D41008FA560 /* Release */, 423 | ); 424 | defaultConfigurationIsVisible = 0; 425 | defaultConfigurationName = Release; 426 | }; 427 | D4DF811E1A9A3D41008FA560 /* Build configuration list for PBXNativeTarget "PolyLineRenderTestTests" */ = { 428 | isa = XCConfigurationList; 429 | buildConfigurations = ( 430 | D4DF811F1A9A3D41008FA560 /* Debug */, 431 | D4DF81201A9A3D41008FA560 /* Release */, 432 | ); 433 | defaultConfigurationIsVisible = 0; 434 | defaultConfigurationName = Release; 435 | }; 436 | /* End XCConfigurationList section */ 437 | }; 438 | rootObject = D4DF80F41A9A3D40008FA560 /* Project object */; 439 | } 440 | -------------------------------------------------------------------------------- /PolyLineRenderTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /PolyLineRenderTest.xcodeproj/project.xcworkspace/xcuserdata/rob.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robkerr/PolyLineRenderTest/c64620df43fef1ef94aeb56579807792415cd04e/PolyLineRenderTest.xcodeproj/project.xcworkspace/xcuserdata/rob.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /PolyLineRenderTest.xcodeproj/xcuserdata/rob.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /PolyLineRenderTest.xcodeproj/xcuserdata/rob.xcuserdatad/xcschemes/PolyLineRenderTest.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /PolyLineRenderTest.xcodeproj/xcuserdata/rob.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | PolyLineRenderTest.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | D4DF80FB1A9A3D41008FA560 16 | 17 | primary 18 | 19 | 20 | D4DF81101A9A3D41008FA560 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /PolyLineRenderTest/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // PolyLineRenderTest 4 | // 5 | // Created by Rob Kerr on 2/22/15. 6 | // Copyright (c) 2015 Mobile Toolworks, LLC. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /PolyLineRenderTest/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /PolyLineRenderTest/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /PolyLineRenderTest/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "ipad", 5 | "size" : "29x29", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "ipad", 10 | "size" : "29x29", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "ipad", 15 | "size" : "40x40", 16 | "scale" : "1x" 17 | }, 18 | { 19 | "idiom" : "ipad", 20 | "size" : "40x40", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "idiom" : "ipad", 25 | "size" : "76x76", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "idiom" : "ipad", 30 | "size" : "76x76", 31 | "scale" : "2x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /PolyLineRenderTest/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations~ipad 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationPortraitUpsideDown 37 | UIInterfaceOrientationLandscapeLeft 38 | UIInterfaceOrientationLandscapeRight 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /PolyLineRenderTest/SimplePolylineViewController.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import MapKit 3 | 4 | class SimplePolylineViewController: UIViewController, MKMapViewDelegate { 5 | 6 | @IBOutlet var map : MKMapView! 7 | 8 | override func viewDidLoad() { 9 | super.viewDidLoad() 10 | createTestPolyLine() 11 | } 12 | 13 | func createTestPolyLine(){ 14 | let locations = [ 15 | CLLocation(latitude: 32.7767, longitude: -96.7970), /* San Francisco, CA */ 16 | CLLocation(latitude: 37.7833, longitude: -122.4167), /* Dallas, TX */ 17 | CLLocation(latitude: 42.2814, longitude: -83.7483), /* Ann Arbor, MI */ 18 | CLLocation(latitude: 32.7767, longitude: -96.7970) /* San Francisco, CA */ 19 | ] 20 | 21 | addPolyLineToMap(locations) 22 | } 23 | 24 | func addPolyLineToMap(locations: [CLLocation!]) 25 | { 26 | //var locations = [CLLocation(latitude: -84.0, longitude: 125.0), CLLocation(latitude: -84.0, longitude: 125.0), CLLocation(latitude: -84.0, longitude: 125.0)] 27 | 28 | var coordinates = locations.map({ (location: CLLocation!) -> CLLocationCoordinate2D in 29 | return location.coordinate 30 | }) 31 | 32 | let polyline = MKPolyline(coordinates: &coordinates, count: locations.count) 33 | self.map.addOverlay(polyline) 34 | } 35 | 36 | func mapView(mapView: MKMapView!, viewForOverlay overlay: MKOverlay!) -> MKOverlayRenderer! { 37 | 38 | if (overlay is MKPolyline) { 39 | let pr = MKPolylineRenderer(overlay: overlay); 40 | pr.strokeColor = UIColor.redColor().colorWithAlphaComponent(0.5); 41 | pr.lineWidth = 5; 42 | return pr; 43 | } 44 | 45 | return nil 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /PolyLineRenderTest/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // PolyLineRenderTest 4 | // 5 | // Created by Rob Kerr on 2/22/15. 6 | // Copyright (c) 2015 Mobile Toolworks, LLC. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import MapKit 11 | 12 | class ViewController: UIViewController, NSURLConnectionDataDelegate, MKMapViewDelegate { 13 | 14 | @IBOutlet var map : MKMapView! 15 | 16 | var data = NSMutableData() 17 | 18 | override func viewDidLoad() { 19 | super.viewDidLoad() 20 | } 21 | /* 22 | func testPolygon(){ 23 | var locations = [ 24 | CLLocation(latitude: 32.7767, longitude: -96.7970), 25 | CLLocation(latitude: 37.7833, longitude: -122.4167), 26 | CLLocation(latitude: 42.2814, longitude: -83.7483), 27 | CLLocation(latitude: 32.7767, longitude: -96.7970) 28 | ] 29 | 30 | addPolyLineToMap(locations) 31 | } 32 | */ 33 | override func viewWillAppear(animated: Bool) { 34 | map.setRegion(MKCoordinateRegionMakeWithDistance(CLLocation(latitude: 40.7127, longitude: -74.0059).coordinate, 20000, 20000), animated: true) 35 | map.mapType = .Hybrid 36 | startConnection() 37 | } 38 | 39 | //**************************************************************************************** 40 | // 41 | // Function: viewForOverlay 42 | // Description: Delegate callback that returns a MapOverlayRenderer for a polyline 43 | // 44 | //**************************************************************************************** 45 | func mapView(mapView: MKMapView!, viewForOverlay overlay: MKOverlay!) -> MKOverlayRenderer! { 46 | print("rendererForOverlay called"); 47 | 48 | if (overlay is MKPolyline) { 49 | let pr = MKPolylineRenderer(overlay: overlay); 50 | pr.strokeColor = UIColor.redColor().colorWithAlphaComponent(0.5); 51 | pr.lineWidth = 12; 52 | return pr; 53 | } 54 | 55 | return nil 56 | } 57 | 58 | //**************************************************************************************** 59 | // 60 | // Function: startConnection 61 | // Description: Opens a connection to the web service to initiate a transfer of GeoJSON 62 | // 63 | //**************************************************************************************** 64 | func startConnection(){ 65 | 66 | print("Starting connection") 67 | 68 | let urlPath: String = "http://10.1.10.28:8888/getcityboundary.php?city=New York&state=NY".stringByAddingPercentEscapesUsingEncoding(NSUTF8StringEncoding)! 69 | let url: NSURL = NSURL(string: urlPath)! 70 | let request: NSURLRequest = NSURLRequest(URL: url) 71 | let connection: NSURLConnection = NSURLConnection(request: request, delegate: self, startImmediately: false)! 72 | connection.start() 73 | 74 | } 75 | 76 | //**************************************************************************************** 77 | // 78 | // Function: didReceiveData 79 | // Description: called each time a bit of data comes down from the web connection 80 | // 81 | //**************************************************************************************** 82 | func connection(connection: NSURLConnection, didReceiveData data: NSData){ 83 | self.data.appendData(data) 84 | } 85 | 86 | //**************************************************************************************** 87 | // 88 | // Function: addPolyLineToMap 89 | // Description: Accepts an array of CLLocation, converts it 90 | // 91 | //**************************************************************************************** 92 | func addPolyLineToMap(locations: [CLLocation!]) 93 | { 94 | //var locations = [CLLocation(latitude: -84.0, longitude: 125.0), CLLocation(latitude: -84.0, longitude: 125.0), CLLocation(latitude: -84.0, longitude: 125.0)] 95 | 96 | var coordinates = locations.map({ (location: CLLocation!) -> CLLocationCoordinate2D in 97 | return location.coordinate 98 | }) 99 | 100 | let polyline = MKPolyline(coordinates: &coordinates, count: locations.count) 101 | self.map.addOverlay(polyline) 102 | } 103 | 104 | //**************************************************************************************** 105 | // 106 | // Function: connectionDidFinishLoading 107 | // Description: called when the GeoJSON result is competely returned 108 | // 109 | //**************************************************************************************** 110 | func connectionDidFinishLoading(connection: NSURLConnection) { 111 | 112 | if let jsonResult: AnyObject = 113 | try? NSJSONSerialization.JSONObjectWithData(data,options:[]) { 114 | if jsonResult is NSDictionary { 115 | let myDict: NSDictionary = jsonResult as! NSDictionary 116 | 117 | if myDict["coordinates"] != nil 118 | && (myDict["type"] as! String) == "MultiPolygon" { 119 | 120 | // it's a MultiPolygon type, which is an array of polygons 121 | let multiPolygon = myDict["coordinates"] as! NSArray 122 | for (polygonOuter) in multiPolygon { 123 | for (polygon) in (polygonOuter as! NSArray) { 124 | // Start accumulating a polygon from the MultiPolygon collection 125 | var locations : [CLLocation] = [] 126 | 127 | // Create a CLLocation for each lat/long received 128 | for (latlong) in (polygon as! NSArray) { 129 | let loc = CLLocation(latitude: (latlong[1] as! Double), longitude: (latlong[0] as! Double)) 130 | print("coordinate item:\(loc.coordinate.latitude) | \(loc.coordinate.longitude)") 131 | locations.append(loc) 132 | } 133 | // Call routine to add the polygon to the map 134 | addPolyLineToMap(locations) 135 | } 136 | } 137 | } // If result is a MultiPolygon 138 | } // if result is a Dictionary 139 | } // if object returned from HTTP call 140 | } // func 141 | } 142 | 143 | -------------------------------------------------------------------------------- /PolyLineRenderTestTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /PolyLineRenderTestTests/PolyLineRenderTestTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PolyLineRenderTestTests.swift 3 | // PolyLineRenderTestTests 4 | // 5 | // Created by Rob Kerr on 2/22/15. 6 | // Copyright (c) 2015 Mobile Toolworks, LLC. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import XCTest 11 | 12 | class PolyLineRenderTestTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | XCTAssert(true, "Pass") 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measureBlock() { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

Adding a MKPolyLine overlay using Swift to an iOS MapKit Map

2 | 3 |

One of the features mobile users love is to see information conveyed right on a map surface. Weather, driving directions and customer locations are just more richly explained when superimposed on a map.

4 | 5 |

In this post I'll walk through the steps to draw a MKPolyLine on a MapKit map using the Swift programming language. PolyLines are useful in many scenarios:

6 | 7 |
    8 |
  • Tracing driving or walking directions 9 | Showing the outside edge of a political boundary (e.g. a city or state)
  • 10 |
  • Drawing a border around some other map annotation
  • 11 |
12 | 13 |

The methodology for drawing PolyLines in recent versions of iOS has changed, so that the older MKOverlayView methodology is deprecated beginning with iOS 7, and the newer MKOverlayRenderer technique is now preferred (and when using Swift is required).

14 | 15 |

Let's look at the process by talking through a UIViewController class that draws a PolyLine overlay. This class is very simple so that it just illustrates the technique with the most simple code possible to draw a static line over a default map.

16 | 17 |
import UIKit  
18 | import MapKit
19 | 
20 | class SimplePolylineViewController:  
21 |    UIViewController, MKMapViewDelegate {
22 | 
23 | 24 |

In Line 2 above we import the MapKit framework, and at the end of line 5 declare that our class conforms to the MKMapViewDelegate protocol. This protocol is what ensures our viewForOverlay function will be called appropriately (defined later).

25 | 26 |
@IBOutlet var map : MKMapView!
27 | 
28 |     override func viewDidLoad() {
29 |         super.viewDidLoad()
30 |         createTestPolyLine()
31 |     }
32 | 
33 |     func createTestPolyLine(){
34 |         var locations = [
35 |         CLLocation(latitude: 32.7767, longitude: -96.7970),         /* San Francisco, CA */
36 |         CLLocation(latitude: 37.7833, longitude: -122.4167),        /* Dallas, TX */
37 |         CLLocation(latitude: 42.2814, longitude: -83.7483),         /* Ann Arbor, MI */
38 |         CLLocation(latitude: 32.7767, longitude: -96.7970)          /* San Francisco, CA */
39 |         ]
40 | 
41 |         addPolyLineToMap(locations)
42 |     }
43 | 
44 | 45 |

Line 1 is the outlet that connects the class back to the MKMapView placed on the form using Interface Builder.

46 | 47 |

In viewDidLoad, we call a routine to create a test PolyLine. The PolyLine can be created or removed at any time (it doesn't have to be in the viewDidLoad). In this example, I've simply added a PolyLine that draws a triangle between three US cities.

48 | 49 |

The createTestPolyLine routine defined on line 8 simply creates an array of CLLocation, and then passes that to the addPolyLineToMap function (defined below).

50 | 51 |
func addPolyLineToMap(locations: [CLLocation!])  
52 |     {
53 |         var coordinates = locations.map({ (location: CLLocation!) -> CLLocationCoordinate2D in
54 |             return location.coordinate
55 |         })
56 | 
57 |         var polyline = MKPolyline(coordinates: &coordinates, count: locations.count)
58 |         self.map.addOverlay(polyline)
59 |     }
60 | 
61 | 62 |

This routine accepts an array of CLLocation, and uses the .map routine to iterate over the location array to generate the array of coordinates expected by MapKit's addOverlay function.

63 | 64 |

At this point we've done all the work we need to to add the PolyLine to the Map. But the Map still hasn't drawn our PolyLine (it just knows we want it). Later, when the Map is ready to display our line, it will callback the following routine, which will return a PolyLineRenderer. Since we've only added one object to the form, it will only be called once in this case.

65 | 66 |
func mapView(mapView: MKMapView!, viewForOverlay overlay: MKOverlay!) -> MKOverlayRenderer! {
67 | 
68 |         if (overlay is MKPolyline) {
69 |             var pr = MKPolylineRenderer(overlay: overlay);
70 |             pr.strokeColor = UIColor.redColor().colorWithAlphaComponent(0.5);
71 |             pr.lineWidth = 5;
72 |             return pr;
73 |         }
74 | 
75 |         return nil
76 |     }
77 | 
78 | 79 |

And that's it! At this point we've supplied everything we need to do in code to define and display a PolyLine on a MapKit map using Swift as the development language.

80 | 81 |

Here's what the program's output looks like:
82 |

83 | -------------------------------------------------------------------------------- /images/PolyLineTest_iPadAir.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/robkerr/PolyLineRenderTest/c64620df43fef1ef94aeb56579807792415cd04e/images/PolyLineTest_iPadAir.jpg --------------------------------------------------------------------------------