In my app i need to make a big map. I used this code to load image of map to the Google map as a ground overlay.
GroundOverlayOptions newarkMap = new GroundOverlayOptions()
.position(new LatLng(0, 0), 27000000f, 12735849f)
.image(BitmapDescriptorFactory.fromResource(R.drawable.map3));
googleMap.addGroundOverlay(newarkMap);
However, after several entries to the fragment with the map, i get OOM exception.
java.lang.OutOfMemoryError: Failed to allocate a 134217740 byte allocation with 16777216 free bytes and 37MB until OOM
So, is there any way to load large images to the Google map?