static_map_service

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

static map service

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.

Google Static Map API
Apple Maps Web 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
copied to clipboard
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
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.