0

I try to add MapView to Canvas. But when i do mapView.draw(canvas); there is no map that appear.

Trying manually using xml and it can appear no problem. But when i set content view with canvas class, mapview not appear even though already passing the object

PageFlipView mPageFlipView = new PageFlipView(context)
setContentView(mPageFlipView);

class PageFlipView

public class PageFlipView extends GLSurfaceView implements Renderer {

How to do that?

Thanks in advance

Cookie
  • 43
  • 6

1 Answers1

0

Probably you can do it in two steps:

1) get MapView snapshot like in this answer;

2) draw on Canvas not MapView but snapshot Bitmap.

Andrii Omelchenko
  • 13,183
  • 12
  • 43
  • 79