Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] - use float for pixelratio when creating a snapshotter
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrun committed Mar 2, 2018
1 parent 6ca4949 commit 4152c30
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public interface ErrorHandler {
* MapSnapshotter options
*/
public static class Options {
private int pixelRatio = 1;
private float pixelRatio = 1;
private int width;
private int height;
private String styleUrl = Style.MAPBOX_STREETS;
Expand Down Expand Up @@ -125,7 +125,7 @@ public Options withRegion(LatLngBounds region) {
* @param pixelRatio the pixel ratio to use (default: 1)
* @return the mutated {@link Options}
*/
public Options withPixelRatio(int pixelRatio) {
public Options withPixelRatio(float pixelRatio) {
this.pixelRatio = pixelRatio;
return this;
}
Expand Down Expand Up @@ -167,7 +167,7 @@ public int getHeight() {
/**
* @return the pixel ratio
*/
public int getPixelRatio() {
public float getPixelRatio() {
return pixelRatio;
}

Expand Down

0 comments on commit 4152c30

Please sign in to comment.