mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 01:32:19 +00:00
Keep a lookup's places when one tile fails, and ship every tile as its own file
- A tile that cannot be read is left out of placesNear's answer instead of failing it; without the pack's index the cities are still the answer. - The build no longer inlines the small tiles into one chunk that loaded with the first lookup: all 732 are their own files. - A row at latitude 90 or longitude 180 is tiled where the lookups read it. - --min-population 0 is taken as 0, not as the default. Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
1 parent
2a01269b87
commit
88919f760f
6 files changed
+40
-9
No files matched your search
+7
-1
@@ -258,6 +258,12 @@ export function createBrowserViteConfig({
|
||||
mapillaryToken ?? '',
|
||||
),
|
||||
},
|
||||
build: { chunkSizeWarningLimit: 1500 },
|
||||
build: {
|
||||
chunkSizeWarningLimit: 1500,
|
||||
// The places pack's tiles stay files, read only when a lookup touches
|
||||
// them; inlined, the small ones would all load with the first lookup.
|
||||
assetsInlineLimit: (file) =>
|
||||
file.includes('/wikidata_places/') ? false : undefined,
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user