Skip to content

Commit 3d50ce8

Browse files
committed
publish: flutter_osm_interface-v1.3.2
1 parent e0e805f commit 3d50ce8

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

flutter_osm_interface/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
## 1.3.2:
12
## 1.3.1:
23
## 1.3.0:
34
## 1.1.0:

flutter_osm_interface/lib/src/channel/osm_method_channel.dart

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import 'dart:async';
22
import 'dart:collection';
3-
import 'dart:io';
43
import 'dart:ui' as ui;
54

65
import 'package:flutter/foundation.dart';
@@ -33,8 +32,7 @@ class MethodChannelOSM extends MobileOSMPlatform {
3332
if (_streamController.isClosed) {
3433
_streamController = StreamController<EventOSM>.broadcast();
3534
}
36-
_channels[idOSM] =
37-
MethodChannel('plugins.dali.hamza/osmview_$idOSM');
35+
_channels[idOSM] = MethodChannel('plugins.dali.hamza/osmview_$idOSM');
3836
setGeoPointHandler(idOSM);
3937
}
4038
/*if (!_eventsChannels.containsKey(idOSM)) {
@@ -319,7 +317,7 @@ class MethodChannelOSM extends MobileOSMPlatform {
319317
"point": listGeos,
320318
});
321319
} on PlatformException catch (e) {
322-
debugPrint(e.message);
320+
debugPrint(e.message);
323321
}
324322
}
325323

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

flutter_osm_interface/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_osm_interface
22
description: osm flutter controller and utilities.
3-
version: 1.3.1
3+
version: 1.3.2
44
homepage: https://github.com/liodali/osm_flutter
55

66
environment:

0 commit comments

Comments
 (0)