Journey Static Maps is currently in private beta. To get started, create an account in our dashboard and generate an API key to use in your application.
Then, initialize the SDK with your API key. You can do this in your main function:
lib/main.dart
Copy
import 'package:static_map/static_map.dart';void main() { // Initialize the SDK with your API key StaticMap.initialize(apiKey: '12345678'); runApp(MyApp());}
To generate a static map, use the StaticMapImage widget. You can customize the map by passing in various parameters, such as the center, zoom level, markers, and paths.