This file contains 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
// Install GCP Client library | |
// npm install --save @google-cloud/storage | |
// To run the client library, you must first set up authentication by creating a service account | |
// and setting an environment variable. Ask your DevOps person to provide you with service account key | |
// For example: | |
// export GOOGLE_APPLICATION_CREDENTIALS="/home/user/Downloads/[FILE_NAME].json" | |
// Imports the Google Cloud client library | |
const { Storage } = require('@google-cloud/storage'); |
This file contains 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
if ('serviceWorker' in navigator && !this.hasOwnProperty('ServiceWorkerGlobalScope')) { | |
var ownUrl = new URL(document.currentScript.src); | |
// Before the worker inits, keep tileserver URLs temporarily here | |
var oldTileLayerProto = L.extend({}, L.TileLayer.prototype); | |
L.TileLayer._urlsToWatch = []; | |
L.TileLayer.prototype.initialize = function(url, options) { |