Android Question Resize Google maps markers depending on zoom

Blueforcer

Well-Known Member
Licensed User
Longtime User
hi all!
is it possible to make them scale depending on the zoom level of the map? if i zoom out, they should be smaller.

i try this:
B4X:
    Dim relativePixelSize As Int = Round(pixelSizeAtZoom0*(Power(2,zoomLevel)))
B4X:
    b=CreateScaledBitmap(BitmapDrawable1.Bitmap,relativePixelSize,relativePixelSize)

but my icons become bigger than 32bit :D
 

Blueforcer

Well-Known Member
Licensed User
Longtime User
Polygons are not what I need. I need Bitmaps. Because i need to draw in it. Now i need to tweek a little bit, but my solution above works great now.

One picture is zoomlevel 18, the other 13. As you can see the chests are smaller if i zoom in
Screenshot_2015-12-01-12-23-40.png Screenshot_2015-12-01-12-24-02.png
 
Upvote 0
Top