Skip to content

Commit e52e21a

Browse files
dserebriakovgithub-actions[bot]
authored andcommitted
[MAPSNAT-2285] Propagate scale factor param to platform SDKs
GitOrigin-RevId: c78091ceb8359e063c994d37caf3974ee9f6ce4a
1 parent 3fc9953 commit e52e21a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

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

1111
## Features ✨ and improvements 🏁
1212
* Update target and compile SDK version to 35
13+
* Added experimental `MapOptions.Builder.scaleFactor()` for scaling icons and texts.
1314
* Added support for `LandmarkIcons` featureset in Mapbox Standard Style. Query and interact with landmark building icons that appear on the map, accessing properties including landmark ID, name, type, and localized names through the `StandardLandmarkIconsFeature` class.
1415
* Enhanced `MapboxStandardStyle()` and `MapboxStandardSatelliteStyle()` Compose functions with comprehensive configuration options:
1516
- **Color customization**: Set custom colors for roads, motorways, water, greenspaces, administrative boundaries, and more

maps-sdk/src/test/java/com/mapbox/maps/MapInitOptionsTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class MapInitOptionsTest {
5656
mapboxMapOptions.mapOptions.glyphsRasterizationOptions!!.fontFamily
5757
)
5858
assertEquals(1f, mapboxMapOptions.mapOptions.pixelRatio)
59+
assertEquals(1f, mapboxMapOptions.mapOptions.scaleFactor)
5960
assertEquals(
6061
ConstrainMode.HEIGHT_ONLY,
6162
mapboxMapOptions.mapOptions.constrainMode

0 commit comments

Comments
 (0)