google_static_maps_controller
1.1.0, released 3 years ago by klyta.it
Simple and declarative access to the Google Static Maps service.
WASM-ready
What it does
Provides a StaticMap widget and StaticMapController to fetch and render Google Static Maps images in Flutter. Supports markers, paths, custom styles, and encoded polylines out of the box.
AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to display a non-interactive static map image using the Google Static Maps API.
- You need to render markers, paths, and custom styles onto a map image without the overhead of an interactive map widget.
Skip it when
- You need a fully interactive, scrollable, and zoomable map widget.
- You want to use a free or open-source alternative to Google Maps.
Strengths
- Declarative API for building static map URLs and widgets
- Supports markers, paths, circles, and styling features
- Provides both a widget and a controller for image providers
Weaknesses
- Limited to static map images rather than interactive maps
- Requires a valid Google Maps API key
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Requires a Google Maps API key to query the Google Static Maps service.
StaticMap(
googleApiKey: "<REPLACE-WITH-GOOGLE-API-KEY>",
width: 400,
height: 400,
zoom: 14,
visible: const [
GeocodedLocation.address('Santa Monica Pier'),
],
)Alternatives
Packages that do the same job and could replace google_static_maps_controller.
- google_maps_flutter
Pick google_maps_flutter if you need a fully interactive, native map instead of a static map image.
90Compare - flutter_map
Pick flutter_map if you prefer open-source map tiles instead of Google Maps.
90Compare