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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -