cordova-plugin-googlemaps icon indicating copy to clipboard operation
cordova-plugin-googlemaps copied to clipboard

maxWidth not respected when passing image into marker

Open FuzzyTree opened this issue 10 years ago • 1 comments

The maxWidth is not respected when the passed in image is wider

Changing the following in GoogleMaps.java (around line 1827)

    if (maxWidth > 0) {
      imageView.setMaxWidth(maxWidth);
    }

to

    if (maxWidth > 0) {
      imageView.setMaxWidth(maxWidth);
      imageView.setAdjustViewBounds(true);
    }

resolves the issue for me

FuzzyTree avatar Dec 19 '15 19:12 FuzzyTree

Please provide a PR

hirbod avatar Dec 19 '15 20:12 hirbod