Jegan
Jegan

Reputation: 530

Leaflet display .mbTiles files in the map

I have downloaded UAE mbtiles from openmaptiles site. I need to show the map in offline for UAE. I'm using angular 4. I have converted that mbtiles into png image using mbutil. But it shows the image was damaged.

Also converted to pbf and tried. it shows the error "Error: Unimplemented type: 3" even used with "Content-Encoding", "gzip". How to displays the mbutils file in the map?

I'm using "leaflet-vector-tile-layer" package.

Upvotes: 4

Views: 947

Answers (1)

Siroj Matchanov
Siroj Matchanov

Reputation: 141

I had the same issue with pbf files extracted from .mbTiles.

The issue is those pbf files are in fact gzip archives. Consider "ungzipping" them before usage.

Upvotes: 0

Related Questions