Skip to content

Commit

Permalink
use flutter_web_plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
josxha committed Nov 22, 2024
1 parent 710f454 commit 21dbdcd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import 'package:flutter_map_plugins_example/flutter_map_mbtiles/page.dart';
import 'package:flutter_map_plugins_example/flutter_map_pmtiles/page.dart';
import 'package:flutter_map_plugins_example/vector_map_tiles_mbtiles/page.dart';
import 'package:flutter_map_plugins_example/vector_map_tiles_pmtiles/page.dart';
import 'package:flutter_web_plugins/url_strategy.dart';
import 'package:url_launcher/url_launcher_string.dart';
import 'package:url_strategy/url_strategy.dart';

void main() {
setPathUrlStrategy();
usePathUrlStrategy();
runApp(const MyApp());
}

Expand Down
9 changes: 8 additions & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ dependencies:
flutter:
sdk: flutter
flutter_map: ^7.0.0
flutter_web_plugins:
sdk: flutter
latlong2: ^0.9.0
url_launcher: ^6.2.4
url_strategy: ^0.3.0
connectivity_plus: ^6.0.0
path_provider: ^2.0.15
dio: ^5.2.0+1
Expand Down Expand Up @@ -44,6 +45,12 @@ dependencies:
dev_dependencies:
very_good_analysis: ^6.0.0

override_dependencies:
maplibre:
git:
url: https://github.com/josxha/maplibre
ref: fix/use-lock-for-moveCamera

flutter:
uses-material-design: true
assets:
Expand Down
2 changes: 0 additions & 2 deletions flutter_map_maplibre/lib/src/maplibre_layer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ class _MapLibreLayerState extends State<MapLibreLayer> {
MapController? _controller;
StreamSubscription<fm.MapEvent>? _streamSub;

MapLibreMap? _map;

Position? initCenter;
double? initZoom;
double? initBearing;
Expand Down

0 comments on commit 21dbdcd

Please sign in to comment.