android - How to scale bitmap before showing it on the map? -
i want set icon marker, big want scale down.
mapfragment.this.map.addmarker(new markeroptions().position(new latlng(lat, lng)) .icon(bitmapdescriptorfactory.fromresource(r.drawable.guest_icon)));
this duplicate question. see: change marker size in google maps api v2
simply put, resize bitmap prior passing markeroptions object you're creating, referencing newly sized image. it's worth noting if it's large resource, might want resizing in asynctask or thread. see thread example: android , createscaledbitmap slow when creating multiple bitmaps
Comments
Post a Comment