AliFlux / VectorTileRenderer

A comprehensive Vector Map Tile Renderer for .Net/C#
MIT License
183 stars 51 forks source link

Rendering PBF from Azure Maps only shows background #12

Closed Skleni closed 5 years ago

Skleni commented 5 years ago

Hi,

I tried using your library to render a vector tile from Azure Maps, but I only get an empty image with a background color. I debugged through the code and the condition in line 228 of https://github.com/AliFlux/VectorTileRenderer/blob/master/VectorTileRenderer/Renderer.cs is never true. Do you have any ideas? I can provide the PBF file if that helps.

Thank you!

AliFlux commented 5 years ago

Azure Map tiles are only compatible with the Azure Map styles. Make sure that you're using appropriate style as well. If you are, please share a project file so that I can debug the issue in detail.

Skleni commented 5 years ago

Okay, thanks! I'll have to figure out a way to get these styles and try that.

rbrundritt commented 5 years ago

To help point you in the right direction, the road map tiles in Azure Maps come from TomTom. The source layers in the tiles are documented here: https://developer.tomtom.com/maps-api/maps-api-documentation-vector/tile

The Azure Maps web SDK currently breaks the styles into three layer groups and uses 3 files. If you watch the network traffic, look for base.json, transit.json and labels.json.

Skleni commented 5 years ago

Thanks!