简体   繁体   中英

Android Google Maps V2 marker color

I know I can set the hue of a Marker added to a GoogleMap with

gmap.addMarker(new MarkerOptions().icon(BitmapDescriptorFactory.defaultMarker(95)));

but this doesn't let me set the saturation and lightness. I need to have markers in a special color. 1. Is there any possibility to do that programmatically, and if not 2. can I download the default marker icon somewhere to color it myself?

Is there any possibility to do that programmatically

No.

can I download the default marker icon somewhere to color it myself?

Maybe the drawable is inside GooglePlayServices.APK or maybe it is created programatically. If it is there it might not be legal to copy it to your project.

Anyway I would suggest posting a feature request on gmaps-api-issues if you want it implemented.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM