This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | window.__refresh__ = false; // global flag to check whether to refresh or not | |
| const ttl = 1000 * 60 * 60; // tile time to live, ms | |
| const map = new maplibregl.Map( | |
| { | |
| ..., | |
| transformRequest: (url, resourceType) => { | |
| if (resourceType === 'Source' && url.indexOf('http://myHost') > -1) { | |
| if(window.__refresh__){ | 
OlderNewer