3

What are the limits on GMSGroundOverlay? This would be things like file size, resolution, etc..

I'm using Google Maps SDK 1.5. I created a ground overlay from an image that was 4836x5557 72 dpi 6.6 MB. That image did not show up. When I reduced the image to 3481x4000 72 dpi 4.5 MB, that overlay image did show up.

I did try some permutations of resolutions and file sizes but couldn't nail down the pattern. I did not see any documentation of limits in the docs nor headers.

This is important to me as we have customers who use want map overlays, and to be able to provide them up front with the constraints for the overlay graphics is useful and saves much time for all involved.

Thank you.

4

1 回答 1

1

Overlay 使用 OpenGL 作为单个纹理进行渲染,因此其大小的限制可能与 OpenGL 纹理大小的限制相同。

在最新设备上,最大纹理大小为 4096×4096: https ://apptyrant.com/2014/04/19/max-opengl-texture-sizes-for-various-ios-devices/

解决方案是限制覆盖大小或使用Tiles API

于 2017-04-04T07:24:10.193 回答