Skip to content

Commit

Permalink
publish: flutter_osm_interface-v1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
liodali committed Sep 19, 2024
1 parent e0e805f commit 3d50ce8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions flutter_osm_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## 1.3.2:
## 1.3.1:
## 1.3.0:
## 1.1.0:
Expand Down
12 changes: 6 additions & 6 deletions flutter_osm_interface/lib/src/channel/osm_method_channel.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:async';
import 'dart:collection';
import 'dart:io';
import 'dart:ui' as ui;

import 'package:flutter/foundation.dart';
Expand Down Expand Up @@ -33,8 +32,7 @@ class MethodChannelOSM extends MobileOSMPlatform {
if (_streamController.isClosed) {
_streamController = StreamController<EventOSM>.broadcast();
}
_channels[idOSM] =
MethodChannel('plugins.dali.hamza/osmview_$idOSM');
_channels[idOSM] = MethodChannel('plugins.dali.hamza/osmview_$idOSM');
setGeoPointHandler(idOSM);
}
/*if (!_eventsChannels.containsKey(idOSM)) {
Expand Down Expand Up @@ -319,7 +317,7 @@ class MethodChannelOSM extends MobileOSMPlatform {
"point": listGeos,
});
} on PlatformException catch (e) {
debugPrint(e.message);
debugPrint(e.message);
}
}

Expand Down Expand Up @@ -635,8 +633,10 @@ class MethodChannelOSM extends MobileOSMPlatform {
@override
Future<void> changeTileLayer(int idOSM, CustomTile? tile) async {
//osmTileURL
final argTile =
tile?.toMap() ?? (Platform.isIOS ? CustomTile.osm().toMap() : null);
final argTile = tile?.toMap() ??
(defaultTargetPlatform == TargetPlatform.iOS
? CustomTile.osm().toMap()
: null);
await _channels[idOSM]!.invokeMethod("change#tile", argTile);
}

Expand Down
2 changes: 1 addition & 1 deletion flutter_osm_interface/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_osm_interface
description: osm flutter controller and utilities.
version: 1.3.1
version: 1.3.2
homepage: https://github.com/liodali/osm_flutter

environment:
Expand Down

0 comments on commit 3d50ce8

Please sign in to comment.