Blueforcer Well-Known Member Licensed User Longtime User Nov 30, 2015 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Nov 30, 2015 #2 No. You can however add polygons instead of markers. Polygons will be scaled automatically together with the map. Upvote 0
No. You can however add polygons instead of markers. Polygons will be scaled automatically together with the map.
Blueforcer Well-Known Member Licensed User Longtime User Dec 1, 2015 #3 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 Upvote 0
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