File tree 3 files changed +8
-7
lines changed
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.3.2:
1
2
## 1.3.1:
2
3
## 1.3.0:
3
4
## 1.1.0:
Original file line number Diff line number Diff line change 1
1
import 'dart:async' ;
2
2
import 'dart:collection' ;
3
- import 'dart:io' ;
4
3
import 'dart:ui' as ui;
5
4
6
5
import 'package:flutter/foundation.dart' ;
@@ -33,8 +32,7 @@ class MethodChannelOSM extends MobileOSMPlatform {
33
32
if (_streamController.isClosed) {
34
33
_streamController = StreamController <EventOSM >.broadcast ();
35
34
}
36
- _channels[idOSM] =
37
- MethodChannel ('plugins.dali.hamza/osmview_$idOSM ' );
35
+ _channels[idOSM] = MethodChannel ('plugins.dali.hamza/osmview_$idOSM ' );
38
36
setGeoPointHandler (idOSM);
39
37
}
40
38
/*if (!_eventsChannels.containsKey(idOSM)) {
@@ -319,7 +317,7 @@ class MethodChannelOSM extends MobileOSMPlatform {
319
317
"point" : listGeos,
320
318
});
321
319
} on PlatformException catch (e) {
322
- debugPrint (e.message);
320
+ debugPrint (e.message);
323
321
}
324
322
}
325
323
@@ -635,8 +633,10 @@ class MethodChannelOSM extends MobileOSMPlatform {
635
633
@override
636
634
Future <void > changeTileLayer (int idOSM, CustomTile ? tile) async {
637
635
//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 );
640
640
await _channels[idOSM]! .invokeMethod ("change#tile" , argTile);
641
641
}
642
642
Original file line number Diff line number Diff line change 1
1
name : flutter_osm_interface
2
2
description : osm flutter controller and utilities.
3
- version : 1.3.1
3
+ version : 1.3.2
4
4
homepage : https://github.com/liodali/osm_flutter
5
5
6
6
environment :
You can’t perform that action at this time.
0 commit comments