Missing MapView maps

Any thoughts on what this might be?

enter image description here

The only manipulation I did with the overlay was to draw a pointer in the middle.

The code follows

public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { super.draw(canvas, mapView, shadow); Point myScreenCoords = new Point(); mapView.getProjection().toPixels(point, myScreenCoords); Paint paint = new Paint(); paint.setARGB(255, 255, 255, 255); Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.google_maps_marker); canvas.drawBitmap(bmp, myScreenCoords.x - (float)(bmp.getWidth() * 0.50), myScreenCoords.y - bmp.getHeight(), paint); return true; } 
+2
source share
1 answer

I found the solution in another post (I had the same problem).

MapView display with missing fragments with the "x" in the center

I commented on my setStreetView (true) and fixed it.

+1
source

Source: https://habr.com/ru/post/1412545/


All Articles