Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mymarker = googleMap;
- LatLng markerPosition = new LatLng(Lat, Long);
- BitmapDrawable dr = (BitmapDrawable) getResources().getDrawable(R.drawable.my_image);
- Bitmap bitmapD = Bitmap.createScaledBitmap(dr.getBitmap(), 200, 200, false);
- Mymarker.addMarker(new MarkerOptions().snippet("My Snippet").icon(BitmapDescriptorFactory.fromBitmap(bitmapD)).position(markerPosition).title("Marker"));
- Mymarker.moveCamera(CameraUpdateFactory.newLatLng(markerPosition));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement