cache ArcGIS basemap tiles on disk for faster map loads
This commit is contained in:
parent
5f18e14631
commit
437100c433
5 changed files with 89 additions and 9 deletions
|
|
@ -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',
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue