Open vchen0 opened 4 years ago
Just my 2 cents: It must be interesting to know what is the behavior of Leaflet when a source has multiple sources urls.
In other words, is this issue is due to the map engine or TileServer?
Hi Fricna,
Has this issue been resolved? If so, how did you resolve this issue? Please share the same. We are encountering a similar issue. https://github.com/maptiler/tileserver-gl/issues/519
Thanks.
This is the correct behaviour according to documentation (https://github.com/mapbox/tilejson-spec/tree/master/2.2.0):
// REQUIRED. An array of tile endpoints. {z}, {x} and {y}, if present, // are replaced with the corresponding integers. If multiple endpoints are specified, clients // may use any combination of endpoints. All endpoints MUST return the same // content for the same URL. The array MUST contain at least one endpoint.
This issue can be closed.
Hi,
I'm trying to build an offline, self-hosted map solution that supports using multiple data sets in order to allow customers to upload maps as needed. However, I'm running into an issue with the tileserver loading missing tiles when I specify multiple sources in my tileserver config.
For example, in my tileserver config.json I have
And in my style.json I have:
I'm using leaflet.js to load the map tiles and the resulting map looks like the following, with alternating tiles missing:
And the tileserver log shows that tiles are being fetched from each source in alternating order whereas for this area all the tiles should be loaded from the "west" source.
I could run a daemon that detects new tilesets and merges the them using tile-join and that is my backup solution, but the merge process is slow so I'm wondering if simply serving multiple sources can produce a better user experience. Anyone know how to resolve this so only valid tiles from the relevant source are served?
Thanks for any help!