Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into m0-set-layer-proper…
Browse files Browse the repository at this point in the history
…ties
  • Loading branch information
m0nac0 committed Oct 10, 2023
2 parents 94c12e3 + 4d0f609 commit 95ad362
Show file tree
Hide file tree
Showing 37 changed files with 36 additions and 190 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## upcoming version
* Developers do not need to adapt their Podfile for iOS apps anymore as it was previously described in the Readme. [https://github.com/maplibre/flutter-maplibre-gl/pull/278](https://github.com/maplibre/flutter-maplibre-gl/pull/278)
### Breaking Change:
* `maplibre_gl/mapbox_gl.dart` was renamed to `maplibre_gl/maplibre_gl.dart`. You can do a replace-all from `import 'package:maplibre_gl/mapbox_gl.dart';` to `import 'package:maplibre_gl/maplibre_gl.dart';`
* `useDelayedDisposal` was removed since its now fixed in https://github.com/maplibre/flutter-maplibre-gl/pull/259
* `useHybridCompositionOverride` was removed since it was added in the following fix: https://github.com/maplibre/flutter-maplibre-gl/pull/203 and we reverted the fix and used another approach to fix the actual issue.
* The default for `myLocationRenderMode` was changed from `COMPASS` to `NORMAL` in https://github.com/maplibre/flutter-maplibre-gl/pull/244, since the previous default value of `COMPASS` implicitly enables displaying the location on iOS, which could crash apps that didn't want to display the device location. If you want to continue to use `MyLocationRenderMode.COMPASS`, please explicitly specify it in the constructor like this:
Expand Down
2 changes: 1 addition & 1 deletion example/lib/animate_camera.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/annotation_order_maps.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart'; // ignore: unnecessary_import
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';
import 'util.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/attribution.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/click_annotations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';
import 'util.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/custom_marker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'dart:math';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart'; // ignore: unnecessary_import
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/full_map.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/get_map_informations.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/given_bounds.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/layer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'dart:async';
import 'dart:math';

import 'package:flutter/material.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';
import 'package:maplibre_gl_example/page.dart';

import 'util.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/line.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/local_style.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';
import 'package:path_provider/path_provider.dart';

import 'page.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/localized_map.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:async';

import 'package:flutter/material.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import 'place_batch.dart';
import 'layer.dart';
import 'sources.dart';

import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

final List<ExamplePage> _allPages = <ExamplePage>[
const MapUiPage(),
Expand Down
2 changes: 1 addition & 1 deletion example/lib/map_ui.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'dart:math';

import 'package:flutter/material.dart';
import 'package:collection/collection.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/move_camera.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/no_location_permission_page.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/offline_region_map.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'offline_regions.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/offline_regions.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:collection/collection.dart' show IterableExtension;
import 'package:flutter/material.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'offline_region_map.dart';
import 'page.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/place_batch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';
import 'util.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/place_circle.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'dart:async';
import 'dart:math';

import 'package:flutter/material.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/place_fill.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/place_source.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/place_symbol.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:http/http.dart' as http;
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/scrolling_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart'; // ignore: unnecessary_import
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';
import 'package:maplibre_gl_example/util.dart';

import 'page.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/sources.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

import 'page.dart';
import 'package:maplibre_gl_platform_interface/maplibre_gl_platform_interface.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/util.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/services.dart';
import 'package:maplibre_gl/mapbox_gl.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

/// Adds an asset image to the currently displayed style
Future<void> addImageFromAsset(
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ part 'src/camera.dart';
part 'src/circle.dart';
part 'src/line.dart';
part 'src/location.dart';
part 'src/method_channel_mapbox_gl.dart';
part 'src/method_channel_maplibre_gl.dart';
part 'src/symbol.dart';
part 'src/fill.dart';
part 'src/ui.dart';
part 'src/mapbox_gl_platform_interface.dart';
part 'src/maplibre_gl_platform_interface.dart';
part 'src/source_properties.dart';
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ import 'package:maplibre_gl_web/src/util/evented.dart';

part 'src/convert.dart';

part 'src/mapbox_map_plugin.dart';
part 'src/maplibre_map_plugin.dart';

part 'src/options_sink.dart';

part 'src/mapbox_web_gl_platform.dart';
part 'src/maplibre_web_gl_platform.dart';
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
part of maplibre_gl_web;

class MapboxMapPlugin {
/// Registers this class as the default instance of [MapboxGlPlatform].
class MapLibreMapPlugin {
/// Registers this class as the default instance of [MapLibreGlPlatform].
static void registerWith(Registrar registrar) {
MapLibreGlPlatform.createInstance = () => MaplibreMapController();
}
Expand Down
4 changes: 2 additions & 2 deletions maplibre_gl_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ flutter:
plugin:
platforms:
web:
pluginClass: MapboxMapPlugin
fileName: mapbox_gl_web.dart
pluginClass: MapLibreMapPlugin
fileName: maplibre_gl_web.dart

dependencies:
js: ^0.6.7
Expand Down
Loading

0 comments on commit 95ad362

Please sign in to comment.