-
Notifications
You must be signed in to change notification settings - Fork 230
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
tilemaker format status #10
Comments
I've successfully got the Leaflet.MapboxVectorTile plugin reading tiles. Do you have a link to your tiles anywhere to test against? |
http://ec2-52-3-48-243.compute-1.amazonaws.com/rhode/ |
I think this is because the .pbfs are compressed (standard zlib deflate) and Leaflet.MapboxVectorTile doesn't know how to uncompress them. If you set
The spec for vector tile compression is a bit of a mess and Tilemaker tries to just do whatever you tell it! |
Yes, this is the preferred method. To do it right, it also needs to reject requests that only accept identity. You SHOULD NOT serve the file as compressed if no Accept-Encoding header was sent, but I believe Mapbox studio is broken and fails to send accept-encoding, so you may need to ignore the HTTP RFC SHOULD. |
nginx might be easier, with the ngx_http_gzip_static_module and the "always" value. Haven't tried it myself. |
thank you guys, it is working now compress=false, i haven't tried the server solution, will try it soon |
Great - glad it's working. |
Just an fyi for anyone coming across this now, rather than |
Is there any way we can host tilemaker output .pbf files,
I tried to host in apache and used leaflet vector plugin started getting unimplemented error.
If there is any other way or some help, kindly advise.
The text was updated successfully, but these errors were encountered: