osm_flutter
osm_flutter copied to clipboard
How to scale AssetMarker size?
No matter how big the image icon is, it is displaying smaller in the map. Am I doing something wrong?
Here is what I have tried: My asset directory -icons/marker.png -icons/1.5x/marker.png -icons/2.0x/marker.png
OSMFlutter(
mapIsLoading: Center(
child: Image.asset(
'assets/images/loading.gif',
height: 50,
)),
controller: mapController,
onMapIsReady: onMapIsReady,
showZoomController: true,
initZoom: 19,
markerOption: MarkerOption(
defaultMarker: MarkerIcon(
assetMarker: AssetMarker(
image: AssetImage(
'assets/icons/marker.png',
),
scaleAssetImage: 2.0,
),
),
),
)
on which platform android or ios ?
I just checked on Android and it's working fine. This issue is only for iOS.
yeah for ios i made with fix size because im using diff sdk
without size marker will not be shown in the map
i will add size marker for ios or i will do it internally i will see how to fix
i know about the probelm i already create issue for it thanks
for remind me about it