구글맵 마커 사이즈 조절하기

반응형

int height = 200;

int width = 200;

BitmapDrawable bitmapdraw=(BitmapDrawable)getResources().getDrawable(R.mipmap.marker);

Bitmap b=bitmapdraw.getBitmap();

Bitmap smallMarker = Bitmap.createScaledBitmap(b, width, height, false);


map.addMarker(new MarkerOptions()

                .position(POSITION)

                .title("Your title")

                .icon(BitmapDescriptorFactory.fromBitmap(smallMarker))

                );



[출처] https://stackoverflow.com/questions/14851641/change-marker-size-in-google-maps-api-v2 



반응형

댓글()