staticmap.dart 552 Bytes
library google_maps_webservice.staticmap.example;

import 'dart:io';

import 'package:google_maps_webservice/places.dart';
import 'package:google_maps_webservice/staticmap.dart';

final apiKey = Platform.environment['API_KEY'] ?? '';

void main() {
  final staticMap = StaticMap(
    apiKey,
    markers: List.from([
      Location(lat: 23.721160, lng: 90.394435),
      Location(lat: 23.732322, lng: 90.385142),
    ]),
    path: Path(
      enc: 'svh~F`j}uOusC`bD',
      color: 'black',
    ),
    scale: false,
  );

  print(staticMap.getUrl());
}