Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename method channel to maplibre_gl #440

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
for more information.
* Updated maplibre-native for android to v11.0.0. This version uses
OpenGL ES 3.0.
* Renamed the method channel to `plugins.flutter.io/maplibre_gl_*` in all packages.

## 0.19.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public void onStyleLoaded(@NonNull Style style) {
}

mapViewContainer.addView(mapView);
methodChannel = new MethodChannel(messenger, "plugins.flutter.io/mapbox_maps_" + id);
methodChannel = new MethodChannel(messenger, "plugins.flutter.io/maplibre_gl_" + id);
methodChannel.setMethodCallHandler(this);
}

Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/MapboxMapController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class MapboxMapController: NSObject, FlutterPlatformView, MLNMapViewDelegate, Ma
super.init()

channel = FlutterMethodChannel(
name: "plugins.flutter.io/mapbox_maps_\(viewId)",
name: "plugins.flutter.io/maplibre_gl_\(viewId)",
binaryMessenger: registrar.messenger()
)
channel!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class MethodChannelMaplibreGl extends MapLibreGlPlatform {

@override
Future<void> initPlatform(int id) async {
_channel = MethodChannel('plugins.flutter.io/mapbox_maps_$id');
_channel = MethodChannel('plugins.flutter.io/maplibre_gl_$id');
_channel.setMethodCallHandler(_handleMethodCall);
await _channel.invokeMethod('map#waitForMap');
}
Expand Down