cache ArcGIS basemap tiles on disk for faster map loads

This commit is contained in:
mrkmntal 2026-04-07 22:11:03 -04:00
commit 437100c433
5 changed files with 89 additions and 9 deletions

View file

@ -64,3 +64,19 @@ export const rainViewerProxy = async (req, res) => {
skipParams: ['u'],
});
};
export const arcGisServerProxy = async (req, res) => {
await cache.handleRequest(req, res, 'https://server.arcgisonline.com', {
serviceName: 'ArcGIS Server',
skipParams: ['u'],
encoding: 'binary',
});
};
export const arcGisServicesProxy = async (req, res) => {
await cache.handleRequest(req, res, 'https://services.arcgisonline.com', {
serviceName: 'ArcGIS Services',
skipParams: ['u'],
encoding: 'binary',
});
};