Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix scale parameter #137

Open
wants to merge 1 commit into
base: nullsafety
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/src/staticmap.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class StaticMap {
final String? zoom;
final String size;
final String? center;
final bool scale;
final int scale;
final Path? path;
final String mapType;

Expand All @@ -37,7 +37,7 @@ class StaticMap {
this.zoom,
this.size = '580x267',
this.center,
this.scale = false,
this.scale = 1,
this.path,
this.mapType = 'roadmap',
}) : assert(
Expand All @@ -58,7 +58,7 @@ class StaticMap {
params['zoom'] = z;
}

if (scale) {
if (scale != 1) {
params['scale'] = scale.toString();
}

Expand Down