google_maps_flutter_web
0.6.5, released 4 weeks ago by flutter.dev
Web platform implementation of google_maps_flutter.
What it does
Provides the web platform implementation for the google_maps_flutter plugin. It uses the Google Maps JavaScript API to render interactive maps inside Flutter web applications.
AI-written summary of version 0.6.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- Building a Flutter web application that needs to display Google Maps
- Using google_maps_flutter as an endorsed federated plugin which automatically includes web support
Skip it when
- Building a mobile-only application that does not target the web
- Needing features unsupported on the web version such as rotation, tilt, or lite mode
Strengths
- Endorsed federated plugin that works automatically with google_maps_flutter
- Supports advanced markers, custom styling, and marker clustering
Weaknesses
- Certain features like compass, rotation, and tilt are unavailable due to web limitations
- Requires manual addition of Google Maps JavaScript API script tags in web/index.html
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 6
Requires getting an API key for the Google Maps JavaScript API and adding the script tag to the web/index.html file.
// This package is an endorsed federated plugin.
// Simply use google_maps_flutter normally in your cross-platform app:
import 'package:google_maps_flutter/google_maps_flutter.dart';
GoogleMap(
initialCameraPosition: CameraPosition(
target: LatLng(37.4223, -122.0848),
zoom: 11,
),
);Alternatives
Packages that do the same job and could replace google_maps_flutter_web.
- animated_marker
Animate Google Maps markers smoothly between location updates in Flutter.
79Compare - map_location_picker
Google Maps location picker for Flutter with Places API search and typed addresses.
76Compare - google_maps_apis
Dart client library for Google Maps Web Services APIs.
75Compare - google_places_sdk_flutter
Google Places autocomplete for addresses and locations returning coordinates and parsed addresses.
75Compare
Works with
Packages commonly used together with google_maps_flutter_web: ones it builds on, ones built on it, and its own family.
- webgoogle_maps_flutter_web depends on itLightweight bindings for browser APIs via JS interop
- stream_transformgoogle_maps_flutter_web depends on itExtension methods adding common stream transform operators
- google_mapsgoogle_maps_flutter_web depends on itUse the Google Maps JavaScript API directly from Dart scripts.
- sanitize_htmlgoogle_maps_flutter_web depends on itSanitizes HTML to prevent XSS exploits by restricting elements and attributes to a safe subset.
- google_fontsSame familyFlutter package to load Google Fonts at runtime or bundle them as assets
- google_sign_in_iosSame familyiOS and macOS implementation of Google Sign-In for Flutter
- google_sign_in_androidSame familyAndroid implementation of the google_sign_in plugin
- google_sign_inSame familyOfficial Flutter plugin for authenticating users and requesting OAuth scopes via Google Sign-In.