Skip to content

Commit 42e85bc

Browse files
pjleonard37github-actions[bot]
authored andcommitted
Add new Standard Style v5 Configuration Options (#8359)
### Summary Adds 11 new configuration parameters to the Standard style for fine-grained control over appearance. Additionally, makes several minor updates to code generation templates ### New Configuration Options #### Color Controls (7): - colorBuildings - 3D & 2D buildings - colorCommercial - Commercial areas - colorEducation - Education areas - colorIndustrial - Industrial areas - colorLand - Land terrain - colorMedical - Medical areas - colorSnow - Snow coverage #### 3D Object Controls (4): - show3dBuildings - Toggle 3D buildings - show3dFacades - Toggle building facades - show3dLandmarks - Toggle landmark buildings - show3dTrees - Toggle 3D trees GitOrigin-RevId: 089946f9701dfc9702a63304fa81f3cbe8318ee9
1 parent 40ac1af commit 42e85bc

File tree

5 files changed

+180
-1
lines changed

5 files changed

+180
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ Mapbox welcomes participation and contributions from everyone.
55
> **16 KB Page Size Support:** Starting with version 11.7.0 and 10.19.0, **NDK 27 is supported** with dedicated artifacts that include [support for 16 KB page sizes](https://developer.android.com/guide/practices/page-sizes). If your app does not require 16 KB page size support, you can keep using our default artifacts without `-ndk27` suffix. For more information about our NDK support, see https://docs.mapbox.com/android/maps/guides/#ndk-support
66
77
# main
8+
89
## Breaking changes ⚠️
910
* Remove line-cutout-width and change line-cutout-opacity default to 1.0
1011

12+
* Add Standard Style color and 3D configuration options: `colorBuildings`, `colorCommercial`, `colorEducation`, `colorIndustrial`, `colorLand`, `colorMedical`, `colorSnow`, `show3dBuildings`, `show3dFacades`, `show3dLandmarks`, and `show3dTrees`.
13+
1114
# 11.17.0-rc.3 November 28, 2025
1215
## Features ✨ and improvements 🏁
1316
* Promote Geofencing APIs to stable, remove `MapboxExperimental` annotations from Geofencing APIs.

extension-compose/api/Release/metalava.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5309,7 +5309,13 @@ package com.mapbox.maps.extension.compose.style.standard {
53095309
method public com.mapbox.maps.extension.compose.style.ColorValue getColorAdminBoundaries();
53105310
method public com.mapbox.maps.extension.compose.style.ColorValue getColorBuildingHighlight();
53115311
method public com.mapbox.maps.extension.compose.style.ColorValue getColorBuildingSelect();
5312+
method public com.mapbox.maps.extension.compose.style.ColorValue getColorBuildings();
5313+
method public com.mapbox.maps.extension.compose.style.ColorValue getColorCommercial();
5314+
method public com.mapbox.maps.extension.compose.style.ColorValue getColorEducation();
53125315
method public com.mapbox.maps.extension.compose.style.ColorValue getColorGreenspace();
5316+
method public com.mapbox.maps.extension.compose.style.ColorValue getColorIndustrial();
5317+
method public com.mapbox.maps.extension.compose.style.ColorValue getColorLand();
5318+
method public com.mapbox.maps.extension.compose.style.ColorValue getColorMedical();
53135319
method public com.mapbox.maps.extension.compose.style.standard.ColorModePointOfInterestLabelsValue getColorModePointOfInterestLabels();
53145320
method public com.mapbox.maps.extension.compose.style.ColorValue getColorMotorways();
53155321
method public com.mapbox.maps.extension.compose.style.ColorValue getColorPlaceLabelHighlight();
@@ -5318,12 +5324,17 @@ package com.mapbox.maps.extension.compose.style.standard {
53185324
method public com.mapbox.maps.extension.compose.style.ColorValue getColorPointOfInterestLabels();
53195325
method public com.mapbox.maps.extension.compose.style.ColorValue getColorRoadLabels();
53205326
method public com.mapbox.maps.extension.compose.style.ColorValue getColorRoads();
5327+
method public com.mapbox.maps.extension.compose.style.ColorValue getColorSnow();
53215328
method public com.mapbox.maps.extension.compose.style.ColorValue getColorTrunks();
53225329
method public com.mapbox.maps.extension.compose.style.ColorValue getColorWater();
53235330
method public com.mapbox.maps.extension.compose.style.DoubleValue getDensityPointOfInterestLabels();
53245331
method public com.mapbox.maps.extension.compose.style.StringValue getFuelingStationModePointOfInterestLabels();
53255332
method public com.mapbox.maps.extension.compose.style.DoubleValue getRoadsBrightness();
5333+
method public com.mapbox.maps.extension.compose.style.BooleanValue getShow3dBuildings();
5334+
method public com.mapbox.maps.extension.compose.style.BooleanValue getShow3dFacades();
5335+
method public com.mapbox.maps.extension.compose.style.BooleanValue getShow3dLandmarks();
53265336
method public com.mapbox.maps.extension.compose.style.BooleanValue getShow3dObjects();
5337+
method public com.mapbox.maps.extension.compose.style.BooleanValue getShow3dTrees();
53275338
method public com.mapbox.maps.extension.compose.style.BooleanValue getShowAdminBoundaries();
53285339
method public com.mapbox.maps.extension.compose.style.BooleanValue getShowLandmarkIconLabels();
53295340
method public com.mapbox.maps.extension.compose.style.BooleanValue getShowLandmarkIcons();
@@ -5334,7 +5345,13 @@ package com.mapbox.maps.extension.compose.style.standard {
53345345
method public void setColorAdminBoundaries(com.mapbox.maps.extension.compose.style.ColorValue);
53355346
method public void setColorBuildingHighlight(com.mapbox.maps.extension.compose.style.ColorValue);
53365347
method public void setColorBuildingSelect(com.mapbox.maps.extension.compose.style.ColorValue);
5348+
method public void setColorBuildings(com.mapbox.maps.extension.compose.style.ColorValue);
5349+
method public void setColorCommercial(com.mapbox.maps.extension.compose.style.ColorValue);
5350+
method public void setColorEducation(com.mapbox.maps.extension.compose.style.ColorValue);
53375351
method public void setColorGreenspace(com.mapbox.maps.extension.compose.style.ColorValue);
5352+
method public void setColorIndustrial(com.mapbox.maps.extension.compose.style.ColorValue);
5353+
method public void setColorLand(com.mapbox.maps.extension.compose.style.ColorValue);
5354+
method public void setColorMedical(com.mapbox.maps.extension.compose.style.ColorValue);
53385355
method public void setColorModePointOfInterestLabels(com.mapbox.maps.extension.compose.style.standard.ColorModePointOfInterestLabelsValue);
53395356
method public void setColorMotorways(com.mapbox.maps.extension.compose.style.ColorValue);
53405357
method public void setColorPlaceLabelHighlight(com.mapbox.maps.extension.compose.style.ColorValue);
@@ -5343,12 +5360,17 @@ package com.mapbox.maps.extension.compose.style.standard {
53435360
method public void setColorPointOfInterestLabels(com.mapbox.maps.extension.compose.style.ColorValue);
53445361
method public void setColorRoadLabels(com.mapbox.maps.extension.compose.style.ColorValue);
53455362
method public void setColorRoads(com.mapbox.maps.extension.compose.style.ColorValue);
5363+
method public void setColorSnow(com.mapbox.maps.extension.compose.style.ColorValue);
53465364
method public void setColorTrunks(com.mapbox.maps.extension.compose.style.ColorValue);
53475365
method public void setColorWater(com.mapbox.maps.extension.compose.style.ColorValue);
53485366
method public void setDensityPointOfInterestLabels(com.mapbox.maps.extension.compose.style.DoubleValue);
53495367
method public void setFuelingStationModePointOfInterestLabels(com.mapbox.maps.extension.compose.style.StringValue);
53505368
method public void setRoadsBrightness(com.mapbox.maps.extension.compose.style.DoubleValue);
5369+
method public void setShow3dBuildings(com.mapbox.maps.extension.compose.style.BooleanValue);
5370+
method public void setShow3dFacades(com.mapbox.maps.extension.compose.style.BooleanValue);
5371+
method public void setShow3dLandmarks(com.mapbox.maps.extension.compose.style.BooleanValue);
53515372
method public void setShow3dObjects(com.mapbox.maps.extension.compose.style.BooleanValue);
5373+
method public void setShow3dTrees(com.mapbox.maps.extension.compose.style.BooleanValue);
53525374
method public void setShowAdminBoundaries(com.mapbox.maps.extension.compose.style.BooleanValue);
53535375
method public void setShowLandmarkIconLabels(com.mapbox.maps.extension.compose.style.BooleanValue);
53545376
method public void setShowLandmarkIcons(com.mapbox.maps.extension.compose.style.BooleanValue);
@@ -5359,7 +5381,13 @@ package com.mapbox.maps.extension.compose.style.standard {
53595381
property public final com.mapbox.maps.extension.compose.style.ColorValue colorAdminBoundaries;
53605382
property public final com.mapbox.maps.extension.compose.style.ColorValue colorBuildingHighlight;
53615383
property public final com.mapbox.maps.extension.compose.style.ColorValue colorBuildingSelect;
5384+
property public final com.mapbox.maps.extension.compose.style.ColorValue colorBuildings;
5385+
property public final com.mapbox.maps.extension.compose.style.ColorValue colorCommercial;
5386+
property public final com.mapbox.maps.extension.compose.style.ColorValue colorEducation;
53625387
property public final com.mapbox.maps.extension.compose.style.ColorValue colorGreenspace;
5388+
property public final com.mapbox.maps.extension.compose.style.ColorValue colorIndustrial;
5389+
property public final com.mapbox.maps.extension.compose.style.ColorValue colorLand;
5390+
property public final com.mapbox.maps.extension.compose.style.ColorValue colorMedical;
53635391
property public final com.mapbox.maps.extension.compose.style.standard.ColorModePointOfInterestLabelsValue colorModePointOfInterestLabels;
53645392
property public final com.mapbox.maps.extension.compose.style.ColorValue colorMotorways;
53655393
property public final com.mapbox.maps.extension.compose.style.ColorValue colorPlaceLabelHighlight;
@@ -5368,12 +5396,17 @@ package com.mapbox.maps.extension.compose.style.standard {
53685396
property public final com.mapbox.maps.extension.compose.style.ColorValue colorPointOfInterestLabels;
53695397
property public final com.mapbox.maps.extension.compose.style.ColorValue colorRoadLabels;
53705398
property public final com.mapbox.maps.extension.compose.style.ColorValue colorRoads;
5399+
property public final com.mapbox.maps.extension.compose.style.ColorValue colorSnow;
53715400
property public final com.mapbox.maps.extension.compose.style.ColorValue colorTrunks;
53725401
property public final com.mapbox.maps.extension.compose.style.ColorValue colorWater;
53735402
property public final com.mapbox.maps.extension.compose.style.DoubleValue densityPointOfInterestLabels;
53745403
property public final com.mapbox.maps.extension.compose.style.StringValue fuelingStationModePointOfInterestLabels;
53755404
property public final com.mapbox.maps.extension.compose.style.DoubleValue roadsBrightness;
5405+
property public final com.mapbox.maps.extension.compose.style.BooleanValue show3dBuildings;
5406+
property public final com.mapbox.maps.extension.compose.style.BooleanValue show3dFacades;
5407+
property public final com.mapbox.maps.extension.compose.style.BooleanValue show3dLandmarks;
53765408
property public final com.mapbox.maps.extension.compose.style.BooleanValue show3dObjects;
5409+
property public final com.mapbox.maps.extension.compose.style.BooleanValue show3dTrees;
53775410
property public final com.mapbox.maps.extension.compose.style.BooleanValue showAdminBoundaries;
53785411
property public final com.mapbox.maps.extension.compose.style.BooleanValue showLandmarkIconLabels;
53795412
property public final com.mapbox.maps.extension.compose.style.BooleanValue showLandmarkIcons;

extension-compose/api/extension-compose.api

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4491,7 +4491,13 @@ public final class com/mapbox/maps/extension/compose/style/standard/StandardStyl
44914491
public final fun getColorAdminBoundaries ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
44924492
public final fun getColorBuildingHighlight ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
44934493
public final fun getColorBuildingSelect ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
4494+
public final fun getColorBuildings ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
4495+
public final fun getColorCommercial ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
4496+
public final fun getColorEducation ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
44944497
public final fun getColorGreenspace ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
4498+
public final fun getColorIndustrial ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
4499+
public final fun getColorLand ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
4500+
public final fun getColorMedical ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
44954501
public final fun getColorModePointOfInterestLabels ()Lcom/mapbox/maps/extension/compose/style/standard/ColorModePointOfInterestLabelsValue;
44964502
public final fun getColorMotorways ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
44974503
public final fun getColorPlaceLabelHighlight ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
@@ -4500,12 +4506,17 @@ public final class com/mapbox/maps/extension/compose/style/standard/StandardStyl
45004506
public final fun getColorPointOfInterestLabels ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
45014507
public final fun getColorRoadLabels ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
45024508
public final fun getColorRoads ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
4509+
public final fun getColorSnow ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
45034510
public final fun getColorTrunks ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
45044511
public final fun getColorWater ()Lcom/mapbox/maps/extension/compose/style/ColorValue;
45054512
public final fun getDensityPointOfInterestLabels ()Lcom/mapbox/maps/extension/compose/style/DoubleValue;
45064513
public final fun getFuelingStationModePointOfInterestLabels ()Lcom/mapbox/maps/extension/compose/style/StringValue;
45074514
public final fun getRoadsBrightness ()Lcom/mapbox/maps/extension/compose/style/DoubleValue;
4515+
public final fun getShow3dBuildings ()Lcom/mapbox/maps/extension/compose/style/BooleanValue;
4516+
public final fun getShow3dFacades ()Lcom/mapbox/maps/extension/compose/style/BooleanValue;
4517+
public final fun getShow3dLandmarks ()Lcom/mapbox/maps/extension/compose/style/BooleanValue;
45084518
public final fun getShow3dObjects ()Lcom/mapbox/maps/extension/compose/style/BooleanValue;
4519+
public final fun getShow3dTrees ()Lcom/mapbox/maps/extension/compose/style/BooleanValue;
45094520
public final fun getShowAdminBoundaries ()Lcom/mapbox/maps/extension/compose/style/BooleanValue;
45104521
public final fun getShowLandmarkIconLabels ()Lcom/mapbox/maps/extension/compose/style/BooleanValue;
45114522
public final fun getShowLandmarkIcons ()Lcom/mapbox/maps/extension/compose/style/BooleanValue;
@@ -4516,7 +4527,13 @@ public final class com/mapbox/maps/extension/compose/style/standard/StandardStyl
45164527
public final fun setColorAdminBoundaries (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
45174528
public final fun setColorBuildingHighlight (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
45184529
public final fun setColorBuildingSelect (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
4530+
public final fun setColorBuildings (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
4531+
public final fun setColorCommercial (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
4532+
public final fun setColorEducation (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
45194533
public final fun setColorGreenspace (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
4534+
public final fun setColorIndustrial (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
4535+
public final fun setColorLand (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
4536+
public final fun setColorMedical (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
45204537
public final fun setColorModePointOfInterestLabels (Lcom/mapbox/maps/extension/compose/style/standard/ColorModePointOfInterestLabelsValue;)V
45214538
public final fun setColorMotorways (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
45224539
public final fun setColorPlaceLabelHighlight (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
@@ -4525,12 +4542,17 @@ public final class com/mapbox/maps/extension/compose/style/standard/StandardStyl
45254542
public final fun setColorPointOfInterestLabels (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
45264543
public final fun setColorRoadLabels (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
45274544
public final fun setColorRoads (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
4545+
public final fun setColorSnow (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
45284546
public final fun setColorTrunks (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
45294547
public final fun setColorWater (Lcom/mapbox/maps/extension/compose/style/ColorValue;)V
45304548
public final fun setDensityPointOfInterestLabels (Lcom/mapbox/maps/extension/compose/style/DoubleValue;)V
45314549
public final fun setFuelingStationModePointOfInterestLabels (Lcom/mapbox/maps/extension/compose/style/StringValue;)V
45324550
public final fun setRoadsBrightness (Lcom/mapbox/maps/extension/compose/style/DoubleValue;)V
4551+
public final fun setShow3dBuildings (Lcom/mapbox/maps/extension/compose/style/BooleanValue;)V
4552+
public final fun setShow3dFacades (Lcom/mapbox/maps/extension/compose/style/BooleanValue;)V
4553+
public final fun setShow3dLandmarks (Lcom/mapbox/maps/extension/compose/style/BooleanValue;)V
45334554
public final fun setShow3dObjects (Lcom/mapbox/maps/extension/compose/style/BooleanValue;)V
4555+
public final fun setShow3dTrees (Lcom/mapbox/maps/extension/compose/style/BooleanValue;)V
45344556
public final fun setShowAdminBoundaries (Lcom/mapbox/maps/extension/compose/style/BooleanValue;)V
45354557
public final fun setShowLandmarkIconLabels (Lcom/mapbox/maps/extension/compose/style/BooleanValue;)V
45364558
public final fun setShowLandmarkIcons (Lcom/mapbox/maps/extension/compose/style/BooleanValue;)V

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,30 @@ public fun MapboxStandardStyle(
219219
if (colorBuildingHighlight.isNotInitial()) {
220220
config(StandardStyleConfigurationState.CONFIG_COLOR_BUILDING_HIGHLIGHT, colorBuildingHighlight.value)
221221
}
222+
if (colorBuildings.isNotInitial()) {
223+
config(StandardStyleConfigurationState.CONFIG_COLOR_BUILDINGS, colorBuildings.value)
224+
}
222225
if (colorBuildingSelect.isNotInitial()) {
223226
config(StandardStyleConfigurationState.CONFIG_COLOR_BUILDING_SELECT, colorBuildingSelect.value)
224227
}
228+
if (colorCommercial.isNotInitial()) {
229+
config(StandardStyleConfigurationState.CONFIG_COLOR_COMMERCIAL, colorCommercial.value)
230+
}
231+
if (colorEducation.isNotInitial()) {
232+
config(StandardStyleConfigurationState.CONFIG_COLOR_EDUCATION, colorEducation.value)
233+
}
225234
if (colorGreenspace.isNotInitial()) {
226235
config(StandardStyleConfigurationState.CONFIG_COLOR_GREENSPACE, colorGreenspace.value)
227236
}
237+
if (colorIndustrial.isNotInitial()) {
238+
config(StandardStyleConfigurationState.CONFIG_COLOR_INDUSTRIAL, colorIndustrial.value)
239+
}
240+
if (colorLand.isNotInitial()) {
241+
config(StandardStyleConfigurationState.CONFIG_COLOR_LAND, colorLand.value)
242+
}
243+
if (colorMedical.isNotInitial()) {
244+
config(StandardStyleConfigurationState.CONFIG_COLOR_MEDICAL, colorMedical.value)
245+
}
228246
if (colorModePointOfInterestLabels.notInitial) {
229247
config(StandardStyleConfigurationState.CONFIG_COLOR_MODE_POINT_OF_INTEREST_LABELS, colorModePointOfInterestLabels.value)
230248
}
@@ -249,6 +267,9 @@ public fun MapboxStandardStyle(
249267
if (colorRoads.isNotInitial()) {
250268
config(StandardStyleConfigurationState.CONFIG_COLOR_ROADS, colorRoads.value)
251269
}
270+
if (colorSnow.isNotInitial()) {
271+
config(StandardStyleConfigurationState.CONFIG_COLOR_SNOW, colorSnow.value)
272+
}
252273
if (colorTrunks.isNotInitial()) {
253274
config(StandardStyleConfigurationState.CONFIG_COLOR_TRUNKS, colorTrunks.value)
254275
}
@@ -264,6 +285,18 @@ public fun MapboxStandardStyle(
264285
if (roadsBrightness.isNotInitial()) {
265286
config(StandardStyleConfigurationState.CONFIG_ROADS_BRIGHTNESS, roadsBrightness.value)
266287
}
288+
if (show3dBuildings.isNotInitial()) {
289+
config(StandardStyleConfigurationState.CONFIG_SHOW3D_BUILDINGS, show3dBuildings.value)
290+
}
291+
if (show3dFacades.isNotInitial()) {
292+
config(StandardStyleConfigurationState.CONFIG_SHOW3D_FACADES, show3dFacades.value)
293+
}
294+
if (show3dLandmarks.isNotInitial()) {
295+
config(StandardStyleConfigurationState.CONFIG_SHOW3D_LANDMARKS, show3dLandmarks.value)
296+
}
297+
if (show3dTrees.isNotInitial()) {
298+
config(StandardStyleConfigurationState.CONFIG_SHOW3D_TREES, show3dTrees.value)
299+
}
267300
if (showAdminBoundaries.isNotInitial()) {
268301
config(StandardStyleConfigurationState.CONFIG_SHOW_ADMIN_BOUNDARIES, showAdminBoundaries.value)
269302
}

0 commit comments

Comments
 (0)