Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BitmapDescriptor custom markers #59

Open
hsynksahin opened this issue Jul 23, 2024 · 0 comments
Open

BitmapDescriptor custom markers #59

hsynksahin opened this issue Jul 23, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@hsynksahin
Copy link

I've tryed to add a custom marker on the map. I can clearly say that some applications using something just like BitmapDescriptor.markerAnnotation but there is a custom black icon in the middle of it. Thoose apps written by swift I can say. But if there is a custom marker option, we can do the same too via flutter.

Why not add a constructor for marker that has parameters of hue, icon, size of icon (customizations for icon) etc.


Also there is a problem about BitmapDescriptor.fromAssetImage and byte version of it. That we can not change the size of the image we are using. After examined the package's code I've tryed this Bitmap to make scale work:

BitmapDescriptor.fromAssetImage(
      const ImageConfiguration(
        devicePixelRatio: 0.00001,
      ),
      'assets/images/logo/brand/black.png',
      mipmaps: false,
    ).then((bitmap) {
      _bitmap = bitmap;

      setState(() {});
    });

But there is no differance at all! that image is 230x230 pixels and its covering the half of the screen no mather what I do. I clearly need a scaling function or differant sizes of this asset for every single device pixel ratio...

@hsynksahin hsynksahin added the enhancement New feature or request label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants