a guest Jun 25th, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Mymarker = googleMap;
  2.             LatLng markerPosition = new LatLng(Lat, Long);
  3.             BitmapDrawable dr = (BitmapDrawable) getResources().getDrawable(R.drawable.my_image);
  4.             Bitmap bitmapD = Bitmap.createScaledBitmap(dr.getBitmap(), 200, 200, false);
  5.             Mymarker.addMarker(new MarkerOptions().snippet("My Snippet").icon(BitmapDescriptorFactory.fromBitmap(bitmapD)).position(markerPosition).title("Marker"));
  6.             Mymarker.moveCamera(CameraUpdateFactory.newLatLng(markerPosition));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand