Android - Get polyline as image
问题 How do you get polyline that already plotted on Google Map as image? Only the polyline, without the map layout. I have plotted the polyline on the Google Map and I want to get the polyline as an image. So it only show the red line without any map https://i.stack.imgur.com/vUqS3.png 回答1: I manage to solve this by changing the coordinate to point private Bitmap createPolylineBitmap() { Bitmap bitmap = Bitmap.createBitmap(mapFragment.getView().getWidth(), mapFragment.getView().getHeight(),