[android] - use float for pixelratio when creating a snapshotter

This commit is contained in:
Tobrun
2018-03-02 10:21:43 +01:00
committed by Tobrun
parent 69dfd1ed3e
commit 804738fe14

View File

@@ -82,7 +82,7 @@ public class MapSnapshotter {
* 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;
@@ -122,7 +122,7 @@ public class MapSnapshotter {
* @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;
}
@@ -164,7 +164,7 @@ public class MapSnapshotter {
/**
* @return the pixel ratio
*/
public int getPixelRatio() {
public float getPixelRatio() {
return pixelRatio;
}