[core][ios][osx][android] fix icons with non-integer width/height

ref #3031
ref #2198

For example, an icon that has:
- a pixel width of 10
- a pixel ratio of 3
- a scaled with of 3.333
is now supported.
This commit is contained in:
Ansis Brammanis
2016-01-14 17:11:25 -08:00
parent 9b62661b07
commit 26faa6a5ad
9 changed files with 39 additions and 43 deletions

View File

@@ -2314,8 +2314,8 @@ public final class MapView extends FrameLayout {
mNativeMapView.addAnnotationIcon(
id,
(int) (bitmap.getWidth() / scale),
(int) (bitmap.getHeight() / scale),
bitmap.getWidth(),
bitmap.getHeight(),
scale, buffer.array());
}