Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Getting "Failed to decode tile" when trying to load a raster map #20

@royherma

Description

@royherma

When debugging and trying to load a tile of a valid url (we check and it even just displays an image of the tile directly from url), as so:

https://maps.xxxx.com/data/satellite/1/1/1.jpg

However, when loading the tiles in our app we are getting errors and unsuccessfully loading/displaying them in the map view.

Our logic for loading is simple:

/* Satellite Layer */
    NTTileDataSource* satelliteDataSource =
    [[NTHTTPTileDataSource alloc] initWithMinZoom:0 maxZoom:14 baseURL:kSatelliteMapURL];
    NTRasterTileLayer *satelliteLayer = [[NTRasterTileLayer alloc]initWithDataSource:satelliteDataSource];

The errors we are getting in the console log are a variety of these:

HTTPTileDataSource::loadTile: Loading https://maps.xxxx.com/data/satellite/1/1/1.jpg
Aug 20 17:40:31  xxxx[916] <Info>: HTTPTileDataSource::loadTile: Loading https://maps.xxxx.com/data/satellite/1/1/1.jpg
2018-08-20 17:40:32.012338+0300 xxxx[916:212385] Bitmap::loadFromCompressedBytes: Unsupported image format
Aug 20 17:40:32  xxxx[916] <Error>: Bitmap::loadFromCompressedBytes: Unsupported image format
2018-08-20 17:40:32.012542+0300 xxxx[916:212385] RasterTileLayer::FetchTask: Failed to decode tile
Aug 20 17:40:32  xxxx[916] <Error>: RasterTileLayer::FetchTask: Failed to decode tile

We have confirmed that this logic works for our android and web app, but not for ios - with the same link and everything.

Any ideas on why this is happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions