Skip to content

Commit f54b4b9

Browse files
authored
Update documentation to align with parameters (#311)
This resolves the warnings in the objective-c test harness
1 parent 78f21ef commit f54b4b9

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

MapzenSDK/MZMapViewController.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ open class MZMapViewController: UIViewController, LocationManagerDelegate {
542542
Loads a map style synchronously on the main thread. Use the async methods instead of these in production apps.
543543

544544
- parameter style: The map style to load.
545-
- parameter locale: The locale to use for the map's language.
545+
- parameter l: The locale to use for the map's language.
546546
- parameter sceneUpdates: The scene updates to make while loading the map style.
547547
- throws: A MZError `apiKeyNotSet` error if an API Key has not been sent on the MapzenManager class.
548548
*/
@@ -560,7 +560,7 @@ open class MZMapViewController: UIViewController, LocationManagerDelegate {
560560
Loads the map style asynchronously. Recommended for production apps. If you have scene updates to apply, either use the other version of this method that allows you to pass in scene updates during load, or wait until onSceneLoaded is called to apply those updates.
561561

562562
- parameter style: The map style to load.
563-
- parameter onSceneLoaded: Closure called on scene loaded.
563+
- parameter onStyleLoaded: Closure called on scene loaded.
564564
- throws: A MZError `apiKeyNotSet` error if an API Key has not been sent on the MapzenManager class.
565565
*/
566566
open func loadStyleAsync(_ style: MapStyle, onStyleLoaded: OnStyleLoaded?) throws {
@@ -572,7 +572,7 @@ open class MZMapViewController: UIViewController, LocationManagerDelegate {
572572

573573
- parameter style: The map style to load.
574574
- parameter locale: The locale to use for the map's language.
575-
- parameter onSceneLoaded: Closure called on scene loaded.
575+
- parameter onStyleLoaded: Closure called on scene loaded.
576576
- throws: A MZError `apiKeyNotSet` error if an API Key has not been sent on the MapzenManager class.
577577
*/
578578
open func loadStyleAsync(_ style: MapStyle, locale: Locale, onStyleLoaded: OnStyleLoaded?) throws {
@@ -584,7 +584,7 @@ open class MZMapViewController: UIViewController, LocationManagerDelegate {
584584

585585
- parameter style: The map style to load.
586586
- parameter sceneUpdates: The scene updates to make while loading the map style.
587-
- parameter onSceneLoaded: Closure called on scene loaded.
587+
- parameter onStyleLoaded: Closure called on scene loaded.
588588
- throws: A MZError `apiKeyNotSet` error if an API Key has not been sent on the MapzenManager class.
589589
*/
590590
open func loadStyleAsync(_ style: MapStyle, sceneUpdates: [TGSceneUpdate], onStyleLoaded: OnStyleLoaded?) throws {
@@ -601,9 +601,9 @@ open class MZMapViewController: UIViewController, LocationManagerDelegate {
601601
Loads the map style asynchronously. Recommended for production apps. If you have scene updates to apply, either pass in the scene updates at the initial call, or wait until onSceneLoaded is called to apply those updates.
602602

603603
- parameter style: The map style to load.
604-
- parameter locale: The locale to use for the map's language.
604+
- parameter l: The locale to use for the map's language.
605605
- parameter sceneUpdates: The scene updates to make while loading the map style.
606-
- parameter onSceneLoaded: Closure called on scene loaded.
606+
- parameter onStyleLoaded: Closure called on scene loaded.
607607
- throws: A MZError `apiKeyNotSet` error if an API Key has not been sent on the MapzenManager class.
608608
*/
609609
open func loadStyleAsync(_ style: MapStyle, locale l: Locale, sceneUpdates: [TGSceneUpdate], onStyleLoaded: OnStyleLoaded?) throws {

MapzenSDK/Marker.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public protocol GenericPointMarker: GenericMarker {
4242

4343
- parameter coordinates: Coordinates to animate the marker to
4444
- parameter seconds: Duration in seconds of the animation.
45-
- parameter easeType: Easing to use for animation.
45+
- parameter ease: Easing to use for animation.
4646
*/
4747
func setPointEased(_ coordinates: TGGeoPoint, seconds: Float, easeType ease: TGEaseType) -> Bool
4848

@@ -57,7 +57,7 @@ public protocol GenericPointIconMarker: GenericGeometricMarker, GenericPointMark
5757
/**
5858
Initializes a marker with a given size.
5959

60-
- parameter size: The size the marker should be.
60+
- parameter s: The size the marker should be.
6161
*/
6262
init(size s: CGSize)
6363
}
@@ -231,7 +231,7 @@ public class PointMarker : GeometricMarker, GenericPointIconMarker {
231231

232232
- parameter coordinates: Coordinates to animate the marker to
233233
- parameter seconds: Duration in seconds of the animation.
234-
- parameter easeType: Easing to use for animation.
234+
- parameter ease: Easing to use for animation.
235235
*/
236236
public func setPointEased(_ coordinates: TGGeoPoint, seconds: Float, easeType ease: TGEaseType) -> Bool {
237237
return tgMarker.setPointEased(coordinates, seconds: seconds, easeType: ease)
@@ -256,7 +256,7 @@ public class PointMarker : GeometricMarker, GenericPointIconMarker {
256256
/**
257257
Initializes a marker with a given size.
258258

259-
- parameter size: The size the marker should be.
259+
- parameter s: The size the marker should be.
260260
*/
261261
public required init(size s: CGSize) {
262262
size = s
@@ -410,7 +410,7 @@ public class SystemPointMarker : Marker, GenericSystemPointMarker {
410410

411411
- parameter coordinates: Coordinates to animate the marker to
412412
- parameter seconds: Duration in seconds of the animation.
413-
- parameter easeType: Easing to use for animation.
413+
- parameter ease: Easing to use for animation.
414414
*/
415415
public func setPointEased(_ coordinates: TGGeoPoint, seconds: Float, easeType ease: TGEaseType) -> Bool {
416416
return tgMarker.setPointEased(coordinates, seconds: seconds, easeType: ease)
@@ -466,7 +466,7 @@ public class SelectableSystemPointMarker : Marker, GenericSelectableSystemPointM
466466

467467
- parameter coordinates: Coordinates to animate the marker to
468468
- parameter seconds: Duration in seconds of the animation.
469-
- parameter easeType: Easing to use for animation.
469+
- parameter ease: Easing to use for animation.
470470
*/
471471
public func setPointEased(_ coordinates: TGGeoPoint, seconds: Float, easeType ease: TGEaseType) -> Bool {
472472
return tgMarker.setPointEased(coordinates, seconds: seconds, easeType: ease)

MapzenSDK/PeliasMapkitExtensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ open class PeliasMapkitAnnotation: NSObject, MKAnnotation {
9393
/**
9494
Sets a target for the selector which will be invoked when the annotation is clicked.
9595

96-
- parameter target: A target to invoke the selector on when the annotation is clicked
96+
- parameter actionTarget: A target to invoke the selector on when the annotation is clicked
9797
- parameter action: An selector to be invoked on the target when the annotation is clicked
9898
*/
9999
public func setTarget(target actionTarget: UIResponder, action: Selector) {

0 commit comments

Comments
 (0)