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

Use float for pixelratio when creating a snapshotter #11367

Merged
merged 1 commit into from
Mar 2, 2018
Merged
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
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 @@ -122,7 +122,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 @@ -164,7 +164,7 @@ public int getHeight() {
/**
* @return the pixel ratio
*/
public int getPixelRatio() {
public float getPixelRatio() {
return pixelRatio;
}

Expand Down