osm_flutter icon indicating copy to clipboard operation
osm_flutter copied to clipboard

How to scale AssetMarker size?

Open rgtstha opened this issue 2 years ago • 3 comments

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,
          ),
        ),
      ),
    )

rgtstha avatar Jul 01 '22 06:07 rgtstha

on which platform android or ios ?

liodali avatar Jul 01 '22 08:07 liodali

I just checked on Android and it's working fine. This issue is only for iOS.

rgtstha avatar Jul 01 '22 08:07 rgtstha

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

liodali avatar Jul 01 '22 09:07 liodali