-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from mapzen/87-attribution
Add map attribution
- Loading branch information
Showing
6 changed files
with
172 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// TestApplication.swift | ||
// ios-sdk | ||
// | ||
// Created by Sarah Lensing on 2/24/17. | ||
// Copyright © 2017 Mapzen. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
@testable import ios_sdk | ||
|
||
class TestApplication: ApplicationProtocol { | ||
|
||
open var urlToOpen : URL? | ||
|
||
func openURL(_ url: URL) -> Bool { | ||
urlToOpen = url | ||
return false | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// ApplicationExtensions.swift | ||
// ios-sdk | ||
// | ||
// Created by Sarah Lensing on 2/24/17. | ||
// Copyright © 2017 Mapzen. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
protocol ApplicationProtocol { | ||
func openURL(_ url: URL) -> Bool | ||
} | ||
|
||
extension UIApplication: ApplicationProtocol {} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// Dimensions.swift | ||
// ios-sdk | ||
// | ||
// Created by Sarah Lensing on 2/24/17. | ||
// Copyright © 2017 Mapzen. All rights reserved. | ||
// | ||
|
||
import CoreGraphics | ||
|
||
// Holds constant values for UI element properties such as padding and width/height | ||
public class Dimensions { | ||
// Default padding used for map UI elements | ||
public static let defaultPadding : CGFloat = 10.0 | ||
// Size of all square map buttons such as the "find me" button | ||
public static let squareMapBtnSize : CGFloat = 48.0 | ||
} |