atlas
1.0.10, released 3 years ago by bmwtech.dev
An extensible map abstraction for Flutter with support for multiple map providers
What it does
Provides an abstract mapping interface for Flutter that allows applications to switch between different underlying map providers by implementing a custom Atlas provider. It includes support for markers, polygons, polylines, camera positions, and gestures.
AI-written summary of version 1.0.10, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to write map-agnostic code that can swap map providers without changing your UI code.
- You want a unified abstraction layer for map views, markers, and camera controls in Flutter.
Skip it when
- You just want to use Google Maps or a single specific map provider directly without abstraction.
- You need ready-to-use out-of-the-box map rendering without writing or supplying a custom provider package.
Strengths
- Provider-agnostic design allows swapping map implementations.
- Supports a wide array of map features like markers, polylines, circles, and tracking.
Weaknesses
- Requires a separate concrete provider implementation (e.g., custom atlas provider) to render maps.
- Documentation on how to build a custom provider from scratch is limited in the readme.
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 0
Requires assigning an AtlasProvider instance in main() before running the app.
import 'package:flutter/material.dart';
import 'package:atlas/atlas.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
final _initialCameraPosition = LatLng(
latitude: 37.42796133580664,
longitude: -122.085749655962,
);
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Atlas(
initialCameraPosition: _initialCameraPosition,
),
),
);
}
}Alternatives
Packages that do the same job and could replace atlas.
- google_maps_flutter
If you specifically want Google Maps without an abstraction layer.
90Compare - flutter_map
If you want a complete, ready-to-use OpenStreetMap-based mapping solution for Flutter.
90Compare