Search code examples
iosgoogle-mapsgoogle-maps-sdk-ios

Little endian bitmaps & "Unable to create GMSGLImageTile due to bad graphics data"


I'm not sure what exactly is going on, but I'm attempting to render radar tiles over a Google Maps map and am receiving the following messages:

  • ((null)) was false: Unable to create GMSGLImageTile due to bad graphics data
  • ((null)) was false: Don't support little endian bitmaps

Is there an easy way to convert a UIImage to a big endian or is there something I need to know about using / subclassing GMSSyncTileLayer?

The images I'm trying to render as tiles are png images.


Solution

  • That error will occur if your PNG images for your tiles are not set to 8-bit color depth.

    Changing the color depth of your images to 8-bits should fix the problem.