Small final bitmaps and "Unable to create GMSGLImageTile due to bad graphics data"

I'm not sure what exactly is happening, but I'm trying to display a radar plate on a Google Maps and I get the following messages:

  • ((null)) was false: unable to create GMSGLImageTile due to bad graphics data
  • ((null)) was false: don't support small endian bitmaps

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

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

+5
source share
3 answers

This error will occur if your PNG images for your fragments are not set to 8-bit color depth.

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

+1
source

If this is just a big little problem, yes. Did you get a bitmap from NSDate or can it be created? If so, convert it to an array of bytes, then replace the bits.

* Edited

I and the other guys made some answers here: fooobar.com/questions/1220407 / ...

+1
source

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


All Articles