ThinkGeo.com    |     Documentation    |     Premium Support

MVT and MBTiles problems

I wanted to investigate connecting to a local MVT server by adapting the How-To sample, but couldn’t get anything to render - I can see the tile IDs and wireframe changing as I zoom and pan, but just a plain old solid fill. A quick html-based test with maplibre-gl confirmed the server was set up and serving tiles as expected.

I didn’t see the tile requests incrementing on the server and on investigation it seems the MvtTilesAsyncLayer.SendingHttpRequest never fires so I can’t tell what it’s doing (or not).

Is there any way to tell what it’s trying to do? Or why it’s failing?

Instead I decided to try using the mbtiles files behind the server directly but again, just a blank control. If I select “No Style” I can see the map, albeit in shades of orange. Tried several mbtiles files from different providers, same result every time. The only combination I see working is that shipped in the sample.

Figuring it was the style included in the sample being specific to the tileset, and following the instructions in the documentation, visited Maputnik and without changing anything saved the “Basic” style and tried that. Nothing. Tried several other styles, some crashed the sample immediately or prevented the layer from opening (without an error btw!) which also crashed the sample, but none of them rendered anything.

Is there something special required to get mbtiles styling/rendering working?

Cheers

Hi Kev,

Can you send me

  1. the version of ThinkGeo you are using
  2. the stylejson that works with your data in Maputnik, but not in ThinkGeo

Also can you try XYZ Based Layers -> Display Vector from MVT Server see if they are working fine on your side?

Thanks,
Ben