Skip to content

Instantly share code, notes, and snippets.

@ricdex
Created March 18, 2016 14:50
Show Gist options
  • Save ricdex/3dff546fde58447b528f to your computer and use it in GitHub Desktop.
Save ricdex/3dff546fde58447b528f to your computer and use it in GitHub Desktop.
Modificar imagen en android para que pese menos
BitmapFactory.Options options1 = new BitmapFactory.Options();
options1.inSampleSize = 5;
Bitmap bitmap1 = BitmapFactory.decodeResource(getResources(), R.drawable.mapa0x, options1);
BitmapDescriptor descriptor1 = BitmapDescriptorFactory.fromBitmap(bitmap1);
mGroundOverlay = mMap.addGroundOverlay(new GroundOverlayOptions()
.image(descriptor1).anchor(0, 1)
.position(new LatLng(-12.089886, -76.975777), options1.outWidth/3, options1.outHeight/3));
@ricdex
Copy link
Author

ricdex commented Mar 28, 2016

Se agrega como groundoverlay para google maps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment