static_map_service 0.0.2 copy "static_map_service: ^0.0.2" to clipboard
static_map_service: ^0.0.2 copied to clipboard

A Dart package for generating static map images url from Google Maps, Apple Snapshots.

A Dart package for generating static map images url from Google Maps, Apple Snapshots.

Features #

Generate static map images url from Google Maps, Apple Snapshots.

Getting started #

const url = GoogleMapService.center(
  key: 'your_api_key',
  center: MapLagLng(
    latitude: 37.7749,
    longitude: -122.4194,
  ),
  zoom: 12,
  size: GoogleMapSize(
    width: 400,
    height: 400,
  ),
).url;

print(url); // show the generated url

If you need url with digital signature, you can use GoogleMapService.signedUrl method.

final url = GoogleMapService.center(
  key: 'your_api_key',
  center: MapLagLng(
    latitude: 37.7749,
    longitude: -122.4194,
  ),
  zoom: 12,
  size: GoogleMapSize(
    width: 400,
    height: 400,
  ),
  signatureFunction: (pathAndParams) {
    final signature = compute(pathAndrParams, 'your_secret');
    return signature;
  },
).url;

print(url); // show the generated url with digital signature
1
likes
150
points
286
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart package for generating static map images url from Google Maps, Apple Snapshots.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on static_map_service