-
Notifications
You must be signed in to change notification settings - Fork 164
Correct empty vector tile / pbf #56
Comments
In case the MBTiles has in metadata value See especially comment: |
Ok. @klokan have you got some empty tiles or some tip where I could create empty tiles? I will helps me. Mapbox returns 404 not found. Also when is tile inside boundingbox (or geometry) of layer. |
This is a tile pyramid from z8 to z14 (8/125/188) that only contains water. https://drive.google.com/open?id=0B56n5MCkYKPrX1BWelpLYWFvd0U |
@lukasmartinelli thanks, but is water tile really empty? I mean if there is no data? |
Sorry it's written a bit sloppy. This tile contains the entire subpyramid. But that's actually not what you are interested in. DELETE FROM map WHERE zoom_level > 8; Now it just contains one single z8 tile. But if we zoom to e.g. z12 we should still see the same data from z8 if the mask level is set to z8. Uploaded the samples again and gave better names:
|
These are vector tiles uploaded from Mapbox Studio Classic? Perhaps these PBFs were never meant for direct serving but always as intermediary format (as Mapbox served raster tiles until last month when the new studio came out) and the raster tile server implements the maskLevel (like tessera does). But it seems to be the same upload mechanism and upload space as for the new Mapbox Studio MBTiles. Theoretically a Mapbox GL client is able to implement a maskLevel as well. Configure maskLevelThe maskLevel is set in the MBTiles |
@daliborjanak we have deployed the latest version of our recent docker image with tileserver-php behind the CDN and the 404 JSON error messages from commit 3343f80 are still not there: It has been reported also at: The KlokanTech CDN served from tileserver-mapnik does not have this issue of course: Could you please check why latest docker does not return 404 for non-existing vector tiles and instead still returns an image? |
@klokan I pulled latest container and it works. Returns same as http://labs.klokantech.com/tileserver/#zurich/ol3vector. The problem should be somewhere else |
@klokan, finally 2 bugs: One in docker deploy - it didn't clean cache of downloaded repositories. I also added in tileserver-php ability of config loading from environment. We can now configure tileserver-php via docker volumes which will override config in global $config. We are using it for specifying baseUrl which is server specific. 8bbfa1d |
I am still getting at http://osm2vectortiles-direct.tileserver.com/v1/18/132805/90194.pbf an image @o1da! |
It is cache - try it in anonymous mode in chrome |
@klokan cache on -direct? Tile which is lying next to yours returns404: http://osm2vectortiles-direct.tileserver.com/v1/18/132805/90195.pbf |
-direct is without cache, it is cached in the browser, I had same problem, try it in new window, or purge local browser cache. |
Ack. Closing osm2vectortiles/osm2vectortiles#127. Thank you! |
We return 404 with JSON message now - this seems to be equal to MapBox hosting. If |
The request out of the bounds of vector tiles or not found pbf blobs should respond with a proper empty pbf tile probably... related to existing implementation of vector tiles #42.
The text was updated successfully, but these errors were encountered: