Skip to content

Commit 3799e38

Browse files
pjleonard37github-actions[bot]
authored andcommitted
Add fuelingStationModePointOfInterestLabels config to Standard and Standard Satellite (#7637)
Adds a new `fuelingStationModePointOfInterestLabels` configuration option to Mapbox Standard and Standard Satellite styles that allows control over the visibility of fuel station and electric charging station POI labels. ### Options - `default` - Shows both fuel stations and charging stations (default behavior) - `fuel` - Shows only fuel stations - `electric` - Shows only electric charging stations - `none` - Hides both types cc @mapbox/maps-ios cc @mapbox/maps-android cc @mapbox/sdk-ci GitOrigin-RevId: b55eb69d0778d3d1db39f75d2c5c254a8bd7e066
1 parent 7036f21 commit 3799e38

File tree

5 files changed

+40
-1
lines changed

5 files changed

+40
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Mapbox welcomes participation and contributions from everyone.
66

77
* Introduced `ScaleBarViewOptions.units` property supporting metric, imperial, and nautical units, replacing the boolean `useMetricUnits` property.
88
* Fix crash in `OrnamentsManager` when setting attribution color.
9+
* Added `fuelingStationModePointOfInterestLabels` configuration option to Mapbox Standard and Standard Satellite styles. Control the visibility of fuel station and electric charging station POI labels with options: `default` (shows both), `fuel` (fuel stations only), `electric` (charging stations only), or `none` (hides both).
910
* Introduce `MapInitOptions.mapStyle` property. Use it to initialize map with a custom style.
1011
```swift
1112
// Before

Sources/MapboxMaps/Documentation.docc/API Catalogs/Style.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
- ``StandardFont``
2525
- ``StandardBackgroundPointOfInterestLabels``
2626
- ``StandardColorModePointOfInterestLabels``
27+
- ``StandardFuelingStationModePointOfInterestLabels``
2728
- ``StyleProjection``
2829
- ``StyleProjectionName``
2930
- ``CancelError``

Sources/MapboxMaps/Style/Generated/MapStyle+Standard.swift

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/MapboxMaps/Style/Generated/MapStyle+StandardSatellite.swift

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/api-compatibility-check/breakage_allowlist.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2195,4 +2195,14 @@ Constructor MapSnapshotOptions.init(size:pixelRatio:glyphsRasterizationOptions:s
21952195
Constructor ScaleBarViewOptions.init(position:margins:visibility:useMetricUnits:) has been removed
21962196

21972197
// Documentation for Marker
2198-
Struct Marker is now with @_documentation
2198+
Struct Marker is now with @_documentation
2199+
2200+
Func MapStyle.standard(theme:lightPreset:font:showPointOfInterestLabels:showTransitLabels:showPlaceLabels:showRoadLabels:showPedestrianRoads:show3dObjects:backgroundPointOfInterestLabels:colorAdminBoundaries:colorBuildingHighlight:colorBuildingSelect:colorGreenspace:colorModePointOfInterestLabels:colorMotorways:colorPlaceLabelHighlight:colorPlaceLabels:colorPlaceLabelSelect:colorPointOfInterestLabels:colorRoadLabels:colorRoads:colorTrunks:colorWater:densityPointOfInterestLabels:roadsBrightness:showAdminBoundaries:showLandmarkIconLabels:showLandmarkIcons:themeData:) has been renamed to Func standard(theme:lightPreset:font:showPointOfInterestLabels:showTransitLabels:showPlaceLabels:showRoadLabels:showPedestrianRoads:show3dObjects:backgroundPointOfInterestLabels:colorAdminBoundaries:colorBuildingHighlight:colorBuildingSelect:colorGreenspace:colorModePointOfInterestLabels:colorMotorways:colorPlaceLabelHighlight:colorPlaceLabels:colorPlaceLabelSelect:colorPointOfInterestLabels:colorRoadLabels:colorRoads:colorTrunks:colorWater:densityPointOfInterestLabels:fuelingStationModePointOfInterestLabels:roadsBrightness:showAdminBoundaries:showLandmarkIconLabels:showLandmarkIcons:themeData:)
2201+
Func MapStyle.standardSatellite(lightPreset:font:showPointOfInterestLabels:showTransitLabels:showPlaceLabels:showRoadLabels:showRoadsAndTransit:showPedestrianRoads:backgroundPointOfInterestLabels:colorAdminBoundaries:colorModePointOfInterestLabels:colorMotorways:colorPlaceLabelHighlight:colorPlaceLabels:colorPlaceLabelSelect:colorPointOfInterestLabels:colorRoadLabels:colorRoads:colorTrunks:densityPointOfInterestLabels:roadsBrightness:showAdminBoundaries:) has been renamed to Func standardSatellite(lightPreset:font:showPointOfInterestLabels:showTransitLabels:showPlaceLabels:showRoadLabels:showRoadsAndTransit:showPedestrianRoads:backgroundPointOfInterestLabels:colorAdminBoundaries:colorModePointOfInterestLabels:colorMotorways:colorPlaceLabelHighlight:colorPlaceLabels:colorPlaceLabelSelect:colorPointOfInterestLabels:colorRoadLabels:colorRoads:colorTrunks:densityPointOfInterestLabels:fuelingStationModePointOfInterestLabels:roadsBrightness:showAdminBoundaries:)
2202+
2203+
/* Type Changes */
2204+
Func MapStyle.standard(theme:lightPreset:font:showPointOfInterestLabels:showTransitLabels:showPlaceLabels:showRoadLabels:showPedestrianRoads:show3dObjects:backgroundPointOfInterestLabels:colorAdminBoundaries:colorBuildingHighlight:colorBuildingSelect:colorGreenspace:colorModePointOfInterestLabels:colorMotorways:colorPlaceLabelHighlight:colorPlaceLabels:colorPlaceLabelSelect:colorPointOfInterestLabels:colorRoadLabels:colorRoads:colorTrunks:colorWater:densityPointOfInterestLabels:roadsBrightness:showAdminBoundaries:showLandmarkIconLabels:showLandmarkIcons:themeData:) has parameter 25 type change from Swift.Double? to MapboxMaps.StandardFuelingStationModePointOfInterestLabels?
2205+
Func MapStyle.standard(theme:lightPreset:font:showPointOfInterestLabels:showTransitLabels:showPlaceLabels:showRoadLabels:showPedestrianRoads:show3dObjects:backgroundPointOfInterestLabels:colorAdminBoundaries:colorBuildingHighlight:colorBuildingSelect:colorGreenspace:colorModePointOfInterestLabels:colorMotorways:colorPlaceLabelHighlight:colorPlaceLabels:colorPlaceLabelSelect:colorPointOfInterestLabels:colorRoadLabels:colorRoads:colorTrunks:colorWater:densityPointOfInterestLabels:roadsBrightness:showAdminBoundaries:showLandmarkIconLabels:showLandmarkIcons:themeData:) has parameter 26 type change from Swift.Bool? to Swift.Double?
2206+
Func MapStyle.standard(theme:lightPreset:font:showPointOfInterestLabels:showTransitLabels:showPlaceLabels:showRoadLabels:showPedestrianRoads:show3dObjects:backgroundPointOfInterestLabels:colorAdminBoundaries:colorBuildingHighlight:colorBuildingSelect:colorGreenspace:colorModePointOfInterestLabels:colorMotorways:colorPlaceLabelHighlight:colorPlaceLabels:colorPlaceLabelSelect:colorPointOfInterestLabels:colorRoadLabels:colorRoads:colorTrunks:colorWater:densityPointOfInterestLabels:roadsBrightness:showAdminBoundaries:showLandmarkIconLabels:showLandmarkIcons:themeData:) has parameter 29 type change from Swift.String? to Swift.Bool?
2207+
Func MapStyle.standardSatellite(lightPreset:font:showPointOfInterestLabels:showTransitLabels:showPlaceLabels:showRoadLabels:showRoadsAndTransit:showPedestrianRoads:backgroundPointOfInterestLabels:colorAdminBoundaries:colorModePointOfInterestLabels:colorMotorways:colorPlaceLabelHighlight:colorPlaceLabels:colorPlaceLabelSelect:colorPointOfInterestLabels:colorRoadLabels:colorRoads:colorTrunks:densityPointOfInterestLabels:roadsBrightness:showAdminBoundaries:) has parameter 20 type change from Swift.Double? to MapboxMaps.StandardFuelingStationModePointOfInterestLabels?
2208+
Func MapStyle.standardSatellite(lightPreset:font:showPointOfInterestLabels:showTransitLabels:showPlaceLabels:showRoadLabels:showRoadsAndTransit:showPedestrianRoads:backgroundPointOfInterestLabels:colorAdminBoundaries:colorModePointOfInterestLabels:colorMotorways:colorPlaceLabelHighlight:colorPlaceLabels:colorPlaceLabelSelect:colorPointOfInterestLabels:colorRoadLabels:colorRoads:colorTrunks:densityPointOfInterestLabels:roadsBrightness:showAdminBoundaries:) has parameter 21 type change from Swift.Bool? to Swift.Double?

0 commit comments

Comments
 (0)