File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -238,8 +238,12 @@ class _MapWidgetState extends State<MapWidget> {
238
238
}
239
239
240
240
void onPlatformViewCreated (int id) {
241
- final MapboxMap controller =
242
- MapboxMap (mapboxMapsPlatform: _mapboxMapsPlatform);
241
+ final MapboxMap controller = MapboxMap (
242
+ mapboxMapsPlatform: _mapboxMapsPlatform,
243
+ onMapTapListener: widget.onTapListener,
244
+ onMapLongTapListener: widget.onLongTapListener,
245
+ onMapScrollListener: widget.onScrollListener,
246
+ );
243
247
_controller.complete (controller);
244
248
if (widget.onMapCreated != null ) {
245
249
widget.onMapCreated !(controller);
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ part of mapbox_maps_flutter;
4
4
class MapboxMap extends ChangeNotifier {
5
5
MapboxMap ({
6
6
required _MapboxMapsPlatform mapboxMapsPlatform,
7
+ this .onMapTapListener,
8
+ this .onMapLongTapListener,
9
+ this .onMapScrollListener,
7
10
}) : _mapboxMapsPlatform = mapboxMapsPlatform {
8
11
_proxyBinaryMessenger = _mapboxMapsPlatform.binaryMessenger;
9
12
You can’t perform that action at this time.
0 commit comments