Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  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));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement