Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Unimplemented type: 4,6,7 error #29

Closed
Alphatiger opened this issue Jul 20, 2015 · 12 comments
Closed

Uncaught Error: Unimplemented type: 4,6,7 error #29

Alphatiger opened this issue Jul 20, 2015 · 12 comments

Comments

@Alphatiger
Copy link

I am trying to achieve this

Pre render all mapbox vector files (.pbf) files using tilemaker https://github.com/systemed/tilemaker from planet OSM downloaded data and then serving them through apache server.

When i tried to use leaflet i see the error Unimplemented type: 4, Unimplemented type: 6 errors.

Any ideas, and also is there any GUI tool where i can open and check the PBF files.

@apollolm
Copy link
Member

Does tilemaker .gzip the files when they're created?

The library is expecting unzipped .pbfs - if you were using Mapbox Studio to make your vector tiles, they come out gzipped and inside of an .mbtiles container. The tile server then has the responsibility of extracting and then sending out the .pbf files with the correct gzip header so the browser knows to unzip the file when it gets there.

So - you might need to add a header to your web service response indicating whether or not the file is gzipped.

Here's an example of how TileStream does it (this example is from PGRestAPI, based on the TileStream ecosystem: https://github.com/spatialdev/PGRestAPI/blob/master/endpoints/tiles/mbtileserver.js#L427

If you want to reference the tiles NOT using a server, but instead from a folder on your workstation (for example), you can unzip them as described here.

Here are some related links:
mapbox/vector-tile-js#3
#15

I'm not sure of a GUI to check the .PBF tiles.

@Alphatiger
Copy link
Author

I am using apache server and gzip is not enabled, tilemaker simply breaks the osm files into vector files (pbf) and these are served in apache like z/x/y format , just like raster .png tiles.
I am sure the gzip is not enabled as i have tested for gzip compression.

if you are interested i can send few tiles for testing purpose which are produced from tilemaker

@apollolm
Copy link
Member

Yes, please send over some sample files.

@Alphatiger
Copy link
Author

@apollolm
Copy link
Member

Thanks - what is the full z/x/y address of these tiles?

@Alphatiger
Copy link
Author

Please see below link its for rhode island, OSM file from http://download.geofabrik.de/, converted using tilemaker and hosted at ubuntu apache
http://ec2-52-3-189-41.compute-1.amazonaws.com/rhode/

@Alphatiger
Copy link
Author

@apollolm

Hi
Are you able to access the tiles, just want to confirm.

Regards

@apollolm
Copy link
Member

Yes - sorry, just slammed today!

On Jul 23, 2015, at 1:11 PM, Alphatiger notifications@github.com wrote:

@apollolm

Hi
Are you able to access the tiles, just want to confirm.

Regards


Reply to this email directly or view it on GitHub.

@Alphatiger
Copy link
Author

No problem :)

@Alphatiger
Copy link
Author

Hosted at new address http://ec2-52-3-48-243.compute-1.amazonaws.com/rhode/

@Alphatiger
Copy link
Author

It is a compression problem, thanks for your help

@perrygeo
Copy link

perrygeo commented Sep 3, 2015

@Alphatiger Could you elaborate? What was the solution?

Edit: found it. Tilemaker config fix: systemed/tilemaker#10 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants