Skip to content

Commit

Permalink
Cp prepare v2.5.0 (#819)
Browse files Browse the repository at this point in the history
* Mark ClipLayer as stable (#814)
* Prepare release 2.5.0 (#818)
---------

Co-authored-by: Roman Laitarenko <[email protected]>
  • Loading branch information
maios and evil159 authored Dec 19, 2024
1 parent c678118 commit fec76ec
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 46 deletions.
28 changes: 13 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
### 2.5.0-rc.1
# main

Updated our generated code to align with iOS and Android platforms. Specifically, the changes:
### 2.5.0

* Mark `ClipLayer` as stable.
* Updated our generated code to align with iOS and Android platforms. Specifically, the changes:
* Update experimental `symbolElevationReference` property on `SymbolLayer`.
* Introduce `backgroundPitchAlignment` property on `BackgroundLayer`.
* Introduce experimental `fillZOffset` property on `FillLayer`.
Expand All @@ -11,20 +14,15 @@ Updated our generated code to align with iOS and Android platforms. Specifically
* Add a property `emphasisCircleGlowRange` to `LocationIndicatorLayer` to control the glow effect of the emphasis circle – from the solid start to the fully transparent end.
* Add experimental `ZOffset` properties to `PolylineAnnotationMessenger`, `PolygonAnnotationMessenger`, and `PointAnnotationMessenger`.
* Introduce `FillExtrusionBaseAlignment` and `FillExtrusionHeightAlignment`, and `BackgroundPitchAlignment` enums.
* Bump Maps SDK to 11.9.0-rc.1

### 2.5.0-beta.1

* Added viewport support to `MapWidget`. Control the camera’s initial position and behavior by specifying a ViewportState subclass in the viewport parameter. This allows for centering on specific locations, following the user’s position, or showing an overview of a geometry. If no viewport is provided, the map uses its default camera settings.
```dart
MapWidget(
viewport: CameraViewportState(
center: Point(coordinates: Position(-117.918976, 33.812092)),
zoom: 15.0,
),
);
```
* Update Turf dependency to `4.0.0-beta.1`
```dart
MapWidget(
viewport: CameraViewportState(
center: Point(coordinates: Position(-117.918976, 33.812092)),
zoom: 15.0,
),
);
```

### 2.4.1

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Mapbox Maps SDK Flutter SDK

The Mapbox Maps SDK Flutter SDK is an officially developed solution from Mapbox that enables use of our latest Maps SDK product (v11.9.0-rc.1). The SDK allows developers to embed highly-customized maps using a Flutter widget on Android and iOS.
The Mapbox Maps SDK Flutter SDK is an officially developed solution from Mapbox that enables use of our latest Maps SDK product (v11.9.0). The SDK allows developers to embed highly-customized maps using a Flutter widget on Android and iOS.

Web and desktop are not supported.

Expand Down Expand Up @@ -98,7 +98,7 @@ To use the Maps Flutter SDK add the git dependency to the pubspec.yaml:

```
dependencies:
mapbox_maps_flutter: ^2.5.0-rc.1
mapbox_maps_flutter: ^2.5.0
```

### Configure permissions
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if (file("$rootDir/gradle/ktlint.gradle").exists() && file("$rootDir/gradle/lint
}

dependencies {
implementation "com.mapbox.maps:android:11.9.0-rc.1"
implementation "com.mapbox.maps:android:11.9.0"

implementation "androidx.annotation:annotation:1.5.0"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,11 @@ data class LocationPuck3D(
*/
val modelScaleMode: ModelScaleMode? = null,
/**
* Strength of the emission. There is no emission for value 0. For value 1.0, only emissive component (no shading) is displayed and values above 1.0 produce light contribution to surrounding area, for some of the parts (e.g. doors).
* Strength of the emission. There is no emission for value 0. For value 1.0, only emissive component (no shading) is displayed and values above 1.0 produce light contribution to surrounding area, for some of the parts (e.g. doors). Expressions that depend on measure-light are only supported as a global layer value (and not for each feature) when using GeoJSON or vector tile as the model layer source.
* Default value: 1. Value range: [0, 5]
*/
val modelEmissiveStrength: Double? = null,
/** Strength of the emission as Expression string, note that when [modelEmissiveStrengthExpression] is specified, it will overwrite the [modelEmissiveStrength] property. There is no emission for value 0. For value 1.0, only emissive component (no shading) is displayed and values above 1.0 produce light contribution to surrounding area, for some of the parts (e.g. doors). */
/** The emissive strength expression of the model, which will overwrite the default model emissive strength. */
val modelEmissiveStrengthExpression: String? = null
) {
companion object {
Expand Down
32 changes: 16 additions & 16 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ PODS:
- Flutter
- mapbox_maps_flutter (2.5.0-rc.1):
- Flutter
- MapboxMaps (~> 11.9.0-rc.1)
- Turf (= 4.0.0-beta.1)
- MapboxCommon (24.9.0-rc.1):
- Turf (= 4.0.0-beta.1)
- MapboxCoreMaps (11.9.0-rc.1):
- MapboxCommon (~> 24.9.0-rc)
- MapboxMaps (11.9.0-rc.1):
- MapboxCommon (= 24.9.0-rc.1)
- MapboxCoreMaps (= 11.9.0-rc.1)
- Turf (= 4.0.0-beta.1)
- MapboxMaps (~> 11.9.0)
- Turf (= 4.0.0)
- MapboxCommon (24.9.0):
- Turf (= 4.0.0)
- MapboxCoreMaps (11.9.0):
- MapboxCommon (~> 24.9)
- MapboxMaps (11.9.0):
- MapboxCommon (= 24.9.0)
- MapboxCoreMaps (= 11.9.0)
- Turf (= 4.0.0)
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- permission_handler_apple (9.1.1):
- Flutter
- Turf (4.0.0-beta.1)
- Turf (4.0.0)

DEPENDENCIES:
- Flutter (from `Flutter`)
Expand Down Expand Up @@ -50,13 +50,13 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
integration_test: 252f60fa39af5e17c3aa9899d35d908a0721b573
mapbox_maps_flutter: 93690cb438321f2af9da34647971837cc3425f8e
MapboxCommon: 8e2385f687c0d926629edf6944bed76e97005aea
MapboxCoreMaps: 158ef71e718bc444b1bdfc9fd672ff6d6f8ff6d4
MapboxMaps: 977580c694c4fed58ad0d73d2c30818396d53ae2
mapbox_maps_flutter: 290cae0dc6bc16c6fe29b2cc26b0f9018ac29aa6
MapboxCommon: 678bfc4b477a804244fd7323c79cc7f2402f844e
MapboxCoreMaps: 5cd77c7251dea10903135e8427c788212bd26346
MapboxMaps: 2ce57c4ec89d8f05eacfebdd39b01216e0c06168
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6
Turf: ce90b58ad96b4f71cf03b1ba80f71753ee586932
Turf: c9eb11a65d96af58cac523460fd40fec5061b081

PODFILE CHECKSUM: e9395e37b54f3250ebce302f8de7800b2ba2b828

Expand Down
4 changes: 2 additions & 2 deletions ios/Classes/Generated/Settings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,10 @@ struct LocationPuck3D {
/// Defines scaling mode. Only applies to location-indicator type layers.
/// Default value: "map".
var modelScaleMode: ModelScaleMode?
/// Strength of the emission. There is no emission for value 0. For value 1.0, only emissive component (no shading) is displayed and values above 1.0 produce light contribution to surrounding area, for some of the parts (e.g. doors).
/// Strength of the emission. There is no emission for value 0. For value 1.0, only emissive component (no shading) is displayed and values above 1.0 produce light contribution to surrounding area, for some of the parts (e.g. doors). Expressions that depend on measure-light are only supported as a global layer value (and not for each feature) when using GeoJSON or vector tile as the model layer source.
/// Default value: 1. Value range: [0, 5]
var modelEmissiveStrength: Double?
/// Strength of the emission as Expression string, note that when [modelEmissiveStrengthExpression] is specified, it will overwrite the [modelEmissiveStrength] property. There is no emission for value 0. For value 1.0, only emissive component (no shading) is displayed and values above 1.0 produce light contribution to surrounding area, for some of the parts (e.g. doors).
/// The emissive strength expression of the model, which will overwrite the default model emissive strength.
var modelEmissiveStrengthExpression: String?

// swift-format-ignore: AlwaysUseLowerCamelCase
Expand Down
6 changes: 3 additions & 3 deletions ios/mapbox_maps_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'mapbox_maps_flutter'
s.version = '2.5.0-rc.1'
s.version = '2.5.0'

s.summary = 'Mapbox Maps SDK Flutter Plugin.'
s.description = 'An officially developed solution from Mapbox that enables use of our latest Maps SDK product.'
Expand All @@ -17,8 +17,8 @@ Pod::Spec.new do |s|
s.dependency 'Flutter'
s.platform = :ios, '12.0'

s.dependency 'MapboxMaps', '~> 11.9.0-rc.1'
s.dependency 'Turf', '4.0.0-beta.1'
s.dependency 'MapboxMaps', '~> 11.9.0'
s.dependency 'Turf', '4.0.0'

# Flutter.framework does not contain a i386 slice.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
Expand Down
2 changes: 1 addition & 1 deletion lib/src/map_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class _MapWidgetState extends State<MapWidget> {
'textureView': widget.textureView,
'styleUri': widget.styleUri,
'channelSuffix': _mapboxMapsPlatform.channelSuffix,
'mapboxPluginVersion': '2.5.0-rc.1',
'mapboxPluginVersion': '2.5.0',
'eventTypes': _events.eventTypes.map((e) => e.index).toList(),
};
_events.subscribedEventTypes = _events.eventTypes;
Expand Down
4 changes: 2 additions & 2 deletions lib/src/pigeons/settings.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion lib/src/style/layer/clip_layer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
part of mapbox_maps_flutter;

/// Layer that removes 3D content from map.
@experimental
class ClipLayer extends Layer {
ClipLayer({
required String id,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: mapbox_maps_flutter
description: Interactive, thoroughly customizable maps powered by Mapbox Maps mobile SDKs.
version: 2.5.0-rc.1
version: 2.5.0
homepage: https://github.com/mapbox/mapbox-maps-flutter

environment:
Expand Down

0 comments on commit fec76ec

Please sign in to comment.