From bc3b5bad02f3d7db552563a7df1fd6741c206a9b Mon Sep 17 00:00:00 2001 From: Aleksei Sapitskii <45671572+aleksproger@users.noreply.github.com> Date: Tue, 13 Aug 2024 15:03:27 +0300 Subject: [PATCH] Add missing doc and fix extra return (#2261) --- Sources/MapboxMaps/Foundation/CameraOptions.swift | 1 - Sources/MapboxMaps/Style/MapStyle.swift | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/MapboxMaps/Foundation/CameraOptions.swift b/Sources/MapboxMaps/Foundation/CameraOptions.swift index d327d9ca0a98..d1c7d2c00f88 100644 --- a/Sources/MapboxMaps/Foundation/CameraOptions.swift +++ b/Sources/MapboxMaps/Foundation/CameraOptions.swift @@ -41,7 +41,6 @@ public struct CameraOptions: Codable, Hashable { - Parameter zoom: The zoom level of the map. - Parameter bearing: The bearing of the map, measured in degrees clockwise from true north. - Parameter pitch: Pitch toward the horizon measured in degrees, with 0 degrees resulting in a top-down view for a two-dimensional map. - - Returns: A `CameraOptions` that contains all configuration information the map will use to determine which part of the map to render. */ public init(center: CLLocationCoordinate2D? = nil, padding: UIEdgeInsets? = nil, diff --git a/Sources/MapboxMaps/Style/MapStyle.swift b/Sources/MapboxMaps/Style/MapStyle.swift index 80ff94a47dce..e9796825187d 100644 --- a/Sources/MapboxMaps/Style/MapStyle.swift +++ b/Sources/MapboxMaps/Style/MapStyle.swift @@ -185,6 +185,8 @@ public struct MapStyle: Equatable { /// - showTransitLabels: Shows or hides all transit icons and text. Default value is `true`. /// - showPlaceLabels: Shows and hides place label layers, such as house numbers. Default value is `true`. /// - showRoadLabels: Shows and hides all road labels, including road shields. Default value is `true`. + /// - showRoadsAndTransit: Show and hide all roads and transits. Default values is `true`. + /// - showPedestrianRoads: Show and hide pedestrian roads. Default value is `true`. public static func standardSatellite( lightPreset: StandardLightPreset? = nil, font: String? = nil,