Skip to content

Commit 212849e

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 822a8ed commit 212849e

File tree

7 files changed

+34
-0
lines changed

7 files changed

+34
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Mapbox welcomes participation and contributions from everyone.
1212
* Added experimental `MapOptions.Builder.scaleFactor()` for scaling icons and texts.
1313
* Add click gesture support to `Marker` composable with `onClick` parameter
1414
* Introduced `ScaleBarSettings.distanceUnits` property supporting metric, imperial, and nautical units, replacing the boolean `isMetricUnits` property.
15+
* 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).
1516

1617

1718
# 11.16.0 October 21, 2025

extension-compose/api/Release/metalava.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5204,6 +5204,7 @@ package com.mapbox.maps.extension.compose.style.standard {
52045204
method public com.mapbox.maps.extension.compose.style.ColorValue getColorRoads();
52055205
method public com.mapbox.maps.extension.compose.style.ColorValue getColorTrunks();
52065206
method public com.mapbox.maps.extension.compose.style.DoubleValue getDensityPointOfInterestLabels();
5207+
method public com.mapbox.maps.extension.compose.style.StringValue getFuelingStationModePointOfInterestLabels();
52075208
method public com.mapbox.maps.extension.compose.style.DoubleValue getRoadsBrightness();
52085209
method public com.mapbox.maps.extension.compose.style.BooleanValue getShowAdminBoundaries();
52095210
method public com.mapbox.maps.extension.compose.style.BooleanValue getShowPedestrianRoads();
@@ -5220,6 +5221,7 @@ package com.mapbox.maps.extension.compose.style.standard {
52205221
method public void setColorRoads(com.mapbox.maps.extension.compose.style.ColorValue);
52215222
method public void setColorTrunks(com.mapbox.maps.extension.compose.style.ColorValue);
52225223
method public void setDensityPointOfInterestLabels(com.mapbox.maps.extension.compose.style.DoubleValue);
5224+
method public void setFuelingStationModePointOfInterestLabels(com.mapbox.maps.extension.compose.style.StringValue);
52235225
method public void setRoadsBrightness(com.mapbox.maps.extension.compose.style.DoubleValue);
52245226
method public void setShowAdminBoundaries(com.mapbox.maps.extension.compose.style.BooleanValue);
52255227
method public void setShowPedestrianRoads(com.mapbox.maps.extension.compose.style.BooleanValue);
@@ -5236,6 +5238,7 @@ package com.mapbox.maps.extension.compose.style.standard {
52365238
property public final com.mapbox.maps.extension.compose.style.ColorValue colorRoads;
52375239
property public final com.mapbox.maps.extension.compose.style.ColorValue colorTrunks;
52385240
property public final com.mapbox.maps.extension.compose.style.DoubleValue densityPointOfInterestLabels;
5241+
property public final com.mapbox.maps.extension.compose.style.StringValue fuelingStationModePointOfInterestLabels;
52395242
property public final com.mapbox.maps.extension.compose.style.DoubleValue roadsBrightness;
52405243
property public final com.mapbox.maps.extension.compose.style.BooleanValue showAdminBoundaries;
52415244
property public final com.mapbox.maps.extension.compose.style.BooleanValue showPedestrianRoads;
@@ -5274,6 +5277,7 @@ package com.mapbox.maps.extension.compose.style.standard {
52745277
method public com.mapbox.maps.extension.compose.style.ColorValue getColorTrunks();
52755278
method public com.mapbox.maps.extension.compose.style.ColorValue getColorWater();
52765279
method public com.mapbox.maps.extension.compose.style.DoubleValue getDensityPointOfInterestLabels();
5280+
method public com.mapbox.maps.extension.compose.style.StringValue getFuelingStationModePointOfInterestLabels();
52775281
method public com.mapbox.maps.extension.compose.style.DoubleValue getRoadsBrightness();
52785282
method public com.mapbox.maps.extension.compose.style.BooleanValue getShow3dObjects();
52795283
method public com.mapbox.maps.extension.compose.style.BooleanValue getShowAdminBoundaries();
@@ -5298,6 +5302,7 @@ package com.mapbox.maps.extension.compose.style.standard {
52985302
method public void setColorTrunks(com.mapbox.maps.extension.compose.style.ColorValue);
52995303
method public void setColorWater(com.mapbox.maps.extension.compose.style.ColorValue);
53005304
method public void setDensityPointOfInterestLabels(com.mapbox.maps.extension.compose.style.DoubleValue);
5305+
method public void setFuelingStationModePointOfInterestLabels(com.mapbox.maps.extension.compose.style.StringValue);
53015306
method public void setRoadsBrightness(com.mapbox.maps.extension.compose.style.DoubleValue);
53025307
method public void setShow3dObjects(com.mapbox.maps.extension.compose.style.BooleanValue);
53035308
method public void setShowAdminBoundaries(com.mapbox.maps.extension.compose.style.BooleanValue);
@@ -5322,6 +5327,7 @@ package com.mapbox.maps.extension.compose.style.standard {
53225327
property public final com.mapbox.maps.extension.compose.style.ColorValue colorTrunks;
53235328
property public final com.mapbox.maps.extension.compose.style.ColorValue colorWater;
53245329
property public final com.mapbox.maps.extension.compose.style.DoubleValue densityPointOfInterestLabels;
5330+
property public final com.mapbox.maps.extension.compose.style.StringValue fuelingStationModePointOfInterestLabels;
53255331
property public final com.mapbox.maps.extension.compose.style.DoubleValue roadsBrightness;
53265332
property public final com.mapbox.maps.extension.compose.style.BooleanValue show3dObjects;
53275333
property public final com.mapbox.maps.extension.compose.style.BooleanValue showAdminBoundaries;

extension-compose/api/extension-compose.api

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4411,6 +4411,7 @@ public final class com/mapbox/maps/extension/compose/style/standard/StandardSate
44114411
public final fun getColorRoads ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
44124412
public final fun getColorTrunks ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
44134413
public final fun getDensityPointOfInterestLabels ()Lcom/mapbox/maps/extension/compose/style/DoubleValue;
4414+
public final fun getFuelingStationModePointOfInterestLabels ()Lcom/mapbox/maps/extension/compose/style/StringValue;
44144415
public final fun getRoadsBrightness ()Lcom/mapbox/maps/extension/compose/style/DoubleValue;
44154416
public final fun getShowAdminBoundaries ()Lcom/mapbox/maps/extension/compose/style/BooleanValue;
44164417
public final fun getShowPedestrianRoads ()Lcom/mapbox/maps/extension/compose/style/BooleanValue;
@@ -4427,6 +4428,7 @@ public final class com/mapbox/maps/extension/compose/style/standard/StandardSate
44274428
public final fun setColorRoads (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
44284429
public final fun setColorTrunks (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
44294430
public final fun setDensityPointOfInterestLabels (Lcom/mapbox/maps/extension/compose/style/DoubleValue;)V
4431+
public final fun setFuelingStationModePointOfInterestLabels (Lcom/mapbox/maps/extension/compose/style/StringValue;)V
44304432
public final fun setRoadsBrightness (Lcom/mapbox/maps/extension/compose/style/DoubleValue;)V
44314433
public final fun setShowAdminBoundaries (Lcom/mapbox/maps/extension/compose/style/BooleanValue;)V
44324434
public final fun setShowPedestrianRoads (Lcom/mapbox/maps/extension/compose/style/BooleanValue;)V
@@ -4463,6 +4465,7 @@ public final class com/mapbox/maps/extension/compose/style/standard/StandardStyl
44634465
public final fun getColorTrunks ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
44644466
public final fun getColorWater ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
44654467
public final fun getDensityPointOfInterestLabels ()Lcom/mapbox/maps/extension/compose/style/DoubleValue;
4468+
public final fun getFuelingStationModePointOfInterestLabels ()Lcom/mapbox/maps/extension/compose/style/StringValue;
44664469
public final fun getRoadsBrightness ()Lcom/mapbox/maps/extension/compose/style/DoubleValue;
44674470
public final fun getShow3dObjects ()Lcom/mapbox/maps/extension/compose/style/BooleanValue;
44684471
public final fun getShowAdminBoundaries ()Lcom/mapbox/maps/extension/compose/style/BooleanValue;
@@ -4487,6 +4490,7 @@ public final class com/mapbox/maps/extension/compose/style/standard/StandardStyl
44874490
public final fun setColorTrunks (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
44884491
public final fun setColorWater (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
44894492
public final fun setDensityPointOfInterestLabels (Lcom/mapbox/maps/extension/compose/style/DoubleValue;)V
4493+
public final fun setFuelingStationModePointOfInterestLabels (Lcom/mapbox/maps/extension/compose/style/StringValue;)V
44904494
public final fun setRoadsBrightness (Lcom/mapbox/maps/extension/compose/style/DoubleValue;)V
44914495
public final fun setShow3dObjects (Lcom/mapbox/maps/extension/compose/style/BooleanValue;)V
44924496
public final fun setShowAdminBoundaries (Lcom/mapbox/maps/extension/compose/style/BooleanValue;)V

extension-compose/src/main/java/com/mapbox/maps/extension/compose/style/standard/MapboxStandardSatelliteStyle.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,9 @@ public fun MapboxStandardSatelliteStyle(
394394
if (densityPointOfInterestLabels.isNotInitial()) {
395395
config(StandardSatelliteStyleConfigurationState.CONFIG_DENSITY_POINT_OF_INTEREST_LABELS, densityPointOfInterestLabels.value)
396396
}
397+
if (fuelingStationModePointOfInterestLabels.isNotInitial()) {
398+
config(StandardSatelliteStyleConfigurationState.CONFIG_FUELING_STATION_MODE_POINT_OF_INTEREST_LABELS, fuelingStationModePointOfInterestLabels.value)
399+
}
397400
if (roadsBrightness.isNotInitial()) {
398401
config(StandardSatelliteStyleConfigurationState.CONFIG_ROADS_BRIGHTNESS, roadsBrightness.value)
399402
}

extension-compose/src/main/java/com/mapbox/maps/extension/compose/style/standard/MapboxStandardStyle.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ public fun MapboxStandardStyle(
258258
if (densityPointOfInterestLabels.isNotInitial()) {
259259
config(StandardStyleConfigurationState.CONFIG_DENSITY_POINT_OF_INTEREST_LABELS, densityPointOfInterestLabels.value)
260260
}
261+
if (fuelingStationModePointOfInterestLabels.isNotInitial()) {
262+
config(StandardStyleConfigurationState.CONFIG_FUELING_STATION_MODE_POINT_OF_INTEREST_LABELS, fuelingStationModePointOfInterestLabels.value)
263+
}
261264
if (roadsBrightness.isNotInitial()) {
262265
config(StandardStyleConfigurationState.CONFIG_ROADS_BRIGHTNESS, roadsBrightness.value)
263266
}

extension-compose/src/main/java/com/mapbox/maps/extension/compose/style/standard/StandardSatelliteStyleConfigurationState.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import androidx.compose.runtime.setValue
99
import com.mapbox.maps.extension.compose.style.BooleanValue
1010
import com.mapbox.maps.extension.compose.style.ColorValue
1111
import com.mapbox.maps.extension.compose.style.DoubleValue
12+
import com.mapbox.maps.extension.compose.style.StringValue
1213

1314
/**
1415
* The state holder for the StandardSatelliteState's configurations.
@@ -29,6 +30,7 @@ public class StandardSatelliteStyleConfigurationState private constructor(
2930
initialColorRoads: ColorValue,
3031
initialColorTrunks: ColorValue,
3132
initialDensityPointOfInterestLabels: DoubleValue,
33+
initialFuelingStationModePointOfInterestLabels: StringValue,
3234
initialRoadsBrightness: DoubleValue,
3335
initialShowAdminBoundaries: BooleanValue
3436
) : BaseStyleConfigurationState() {
@@ -51,6 +53,7 @@ public class StandardSatelliteStyleConfigurationState private constructor(
5153
initialColorRoads = ColorValue.INITIAL,
5254
initialColorTrunks = ColorValue.INITIAL,
5355
initialDensityPointOfInterestLabels = DoubleValue.INITIAL,
56+
initialFuelingStationModePointOfInterestLabels = StringValue.INITIAL,
5457
initialRoadsBrightness = DoubleValue.INITIAL,
5558
initialShowAdminBoundaries = BooleanValue.INITIAL
5659
)
@@ -125,6 +128,11 @@ public class StandardSatelliteStyleConfigurationState private constructor(
125128
*/
126129
public var densityPointOfInterestLabels: DoubleValue by mutableStateOf(initialDensityPointOfInterestLabels)
127130

131+
/**
132+
* Control the visibility of fuel and electric charging station POI labels. Default displays both types.
133+
*/
134+
public var fuelingStationModePointOfInterestLabels: StringValue by mutableStateOf(initialFuelingStationModePointOfInterestLabels)
135+
128136
/**
129137
* Control how bright road network appear in dark styles.
130138
*/
@@ -156,6 +164,7 @@ public class StandardSatelliteStyleConfigurationState private constructor(
156164
internal const val CONFIG_COLOR_ROADS = "colorRoads"
157165
internal const val CONFIG_COLOR_TRUNKS = "colorTrunks"
158166
internal const val CONFIG_DENSITY_POINT_OF_INTEREST_LABELS = "densityPointOfInterestLabels"
167+
internal const val CONFIG_FUELING_STATION_MODE_POINT_OF_INTEREST_LABELS = "fuelingStationModePointOfInterestLabels"
159168
internal const val CONFIG_ROADS_BRIGHTNESS = "roadsBrightness"
160169
internal const val CONFIG_SHOW_ADMIN_BOUNDARIES = "showAdminBoundaries"
161170
}

extension-compose/src/main/java/com/mapbox/maps/extension/compose/style/standard/StandardStyleConfigurationState.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public class StandardStyleConfigurationState private constructor(
3535
initialColorTrunks: ColorValue,
3636
initialColorWater: ColorValue,
3737
initialDensityPointOfInterestLabels: DoubleValue,
38+
initialFuelingStationModePointOfInterestLabels: StringValue,
3839
initialRoadsBrightness: DoubleValue,
3940
initialShowAdminBoundaries: BooleanValue,
4041
initialShowLandmarkIconLabels: BooleanValue,
@@ -65,6 +66,7 @@ public class StandardStyleConfigurationState private constructor(
6566
initialColorTrunks = ColorValue.INITIAL,
6667
initialColorWater = ColorValue.INITIAL,
6768
initialDensityPointOfInterestLabels = DoubleValue.INITIAL,
69+
initialFuelingStationModePointOfInterestLabels = StringValue.INITIAL,
6870
initialRoadsBrightness = DoubleValue.INITIAL,
6971
initialShowAdminBoundaries = BooleanValue.INITIAL,
7072
initialShowLandmarkIconLabels = BooleanValue.INITIAL,
@@ -167,6 +169,11 @@ public class StandardStyleConfigurationState private constructor(
167169
*/
168170
public var densityPointOfInterestLabels: DoubleValue by mutableStateOf(initialDensityPointOfInterestLabels)
169171

172+
/**
173+
* Control the visibility of fuel and electric charging station POI labels. Default displays both types.
174+
*/
175+
public var fuelingStationModePointOfInterestLabels: StringValue by mutableStateOf(initialFuelingStationModePointOfInterestLabels)
176+
170177
/**
171178
* Control how bright roads appear in dark styles.
172179
*/
@@ -218,6 +225,7 @@ public class StandardStyleConfigurationState private constructor(
218225
internal const val CONFIG_COLOR_TRUNKS = "colorTrunks"
219226
internal const val CONFIG_COLOR_WATER = "colorWater"
220227
internal const val CONFIG_DENSITY_POINT_OF_INTEREST_LABELS = "densityPointOfInterestLabels"
228+
internal const val CONFIG_FUELING_STATION_MODE_POINT_OF_INTEREST_LABELS = "fuelingStationModePointOfInterestLabels"
221229
internal const val CONFIG_ROADS_BRIGHTNESS = "roadsBrightness"
222230
internal const val CONFIG_SHOW_ADMIN_BOUNDARIES = "showAdminBoundaries"
223231
internal const val CONFIG_SHOW_LANDMARK_ICON_LABELS = "showLandmarkIconLabels"

0 commit comments

Comments
 (0)