google_maps_flutter_web 0.4.0 google_maps_flutter_web: ^0.4.0 copied to clipboard
Web platform implementation of google_maps_flutter
Depend on the package #
This package is not an endorsed implementation of the google_maps_flutter plugin yet, so you'll need to add it explicitly.
Modify web/index.html #
<head> tag of your
<head> <!-- // Other stuff --> <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"></script> </head>
Now you should be able to use the Google Maps plugin normally.
Limitations of the web version #
The following map options are not available in web, because the map doesn't rotate there:
There's no "Map Toolbar" in web, so the
mapToolbarEnabled option is unused.
There's no "My Location" widget in web (tracking issue), so the following options are ignored, for now:
defaultMarkerWithHue in web. If you need colored pins/markers, you may need to use your own asset images.
Indoor and building layers are still not available on the web. Traffic is.
Only Android supports "Lite Mode", so the
liteModeEnabled constructor argument can't be set to
true on web apps.