akahn / strava-heatmap-to-kmz

Generate KMZ files of the Strava Heatmap for use on iPhone or Garmin devices
17 stars 2 forks source link

Any chance of getting this to work again? #1

Open 2600box opened 4 years ago

2600box commented 4 years ago

npm run generate "24,121" strava.kmz

> strava-heatmap-to-kmz@0.1.0 generate /Users/tank/dev/strava-heatmap-to-kmz
> phantomjs main.js "24,121" "strava.kmz"

Error: Failed to initialize WebGL

  https://api.mapbox.com/mapbox-gl-js/v0.42.2/mapbox-gl.js:510 in fire
TypeError: undefined is not an object (evaluating 'this.painter.resize')

  https://api.mapbox.com/mapbox-gl-js/v0.42.2/mapbox-gl.js:484 in resize
  https://api.mapbox.com/mapbox-gl-js/v0.42.2/mapbox-gl.js:484 in e
  https://www.strava.com/heatmap:938 in initMap
  https://www.strava.com/heatmap:1144
  :1352 in i
  :1394 in fireWith
  :1474 in ready
  :1479 in J
TypeError: undefined is not a constructor (evaluating '$('#header, #controls, #sidebar')')

  undefined:2
  :13
# npm run debug  "24,121" strava1.kmz

> strava-heatmap-to-kmz@0.1.0 debug /Users/tank/dev/strava-heatmap-to-kmz
> phantomjs --debug=true main.js "24,121" "strava1.kmz"

2020-02-20T11:14:37 [DEBUG] CookieJar - Created but will not store cookies (use option '--cookies-file=<filename>' to enable persistent cookie storage)
2020-02-20T11:14:38 [DEBUG] Set  "http"  proxy to:  "" : 1080
2020-02-20T11:14:38 [DEBUG] Phantom - execute: Configuration
2020-02-20T11:14:38 [DEBUG]      0 objectName : ""
2020-02-20T11:14:38 [DEBUG]      1 cookiesFile : ""
2020-02-20T11:14:38 [DEBUG]      2 diskCacheEnabled : "false"
2020-02-20T11:14:38 [DEBUG]      3 maxDiskCacheSize : "-1"
2020-02-20T11:14:38 [DEBUG]      4 diskCachePath : ""
2020-02-20T11:14:38 [DEBUG]      5 ignoreSslErrors : "false"
2020-02-20T11:14:38 [DEBUG]      6 localUrlAccessEnabled : "true"
2020-02-20T11:14:38 [DEBUG]      7 localToRemoteUrlAccessEnabled : "false"
2020-02-20T11:14:38 [DEBUG]      8 outputEncoding : "UTF-8"
2020-02-20T11:14:38 [DEBUG]      9 proxyType : "http"
2020-02-20T11:14:38 [DEBUG]      10 proxy : ":1080"
2020-02-20T11:14:38 [DEBUG]      11 proxyAuth : ":"
2020-02-20T11:14:38 [DEBUG]      12 scriptEncoding : "UTF-8"
2020-02-20T11:14:38 [DEBUG]      13 webSecurityEnabled : "true"
2020-02-20T11:14:38 [DEBUG]      14 offlineStoragePath : ""
2020-02-20T11:14:38 [DEBUG]      15 localStoragePath : ""
2020-02-20T11:14:38 [DEBUG]      16 localStorageDefaultQuota : "-1"
2020-02-20T11:14:38 [DEBUG]      17 offlineStorageDefaultQuota : "-1"
2020-02-20T11:14:38 [DEBUG]      18 printDebugMessages : "true"
2020-02-20T11:14:38 [DEBUG]      19 javascriptCanOpenWindows : "true"
2020-02-20T11:14:38 [DEBUG]      20 javascriptCanCloseWindows : "true"
2020-02-20T11:14:38 [DEBUG]      21 sslProtocol : "default"
2020-02-20T11:14:38 [DEBUG]      22 sslCiphers : "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-RC4-SHA:ECDHE-RSA-RC4-SHA:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:RC4-SHA:RC4-MD5"
2020-02-20T11:14:38 [DEBUG]      23 sslCertificatesPath : ""
2020-02-20T11:14:38 [DEBUG]      24 sslClientCertificateFile : ""
2020-02-20T11:14:38 [DEBUG]      25 sslClientKeyFile : ""
2020-02-20T11:14:38 [DEBUG]      26 sslClientKeyPassphrase : ""
2020-02-20T11:14:38 [DEBUG]      27 webdriver : ":"
2020-02-20T11:14:38 [DEBUG]      28 webdriverLogFile : ""
2020-02-20T11:14:38 [DEBUG]      29 webdriverLogLevel : "INFO"
2020-02-20T11:14:38 [DEBUG]      30 webdriverSeleniumGridHub : ""
2020-02-20T11:14:38 [DEBUG] Phantom - execute: Script & Arguments
2020-02-20T11:14:38 [DEBUG]      script: "main.js"
2020-02-20T11:14:38 [DEBUG]      0 arg: "22,120"
2020-02-20T11:14:38 [DEBUG]      1 arg: "strava1.kmz"
2020-02-20T11:14:38 [DEBUG] Phantom - execute: Starting normal mode
2020-02-20T11:14:38 [DEBUG] WebPage - setupFrame ""
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: ":/modules/fs.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: ":/modules/system.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: ":/modules/webpage.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/node-zip/package.json" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/node-zip/lib/nodezip.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/package.json" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/index.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/base64.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/object.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/support.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/utils.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/compressions.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/flate.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/pako/package.json" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/pako/index.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/pako/lib/utils/common.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/pako/lib/deflate.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/pako/lib/zlib/deflate.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/pako/lib/zlib/trees.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/pako/lib/zlib/adler32.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/pako/lib/zlib/crc32.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/pako/lib/zlib/messages.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/pako/lib/utils/strings.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/pako/lib/zlib/zstream.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/pako/lib/inflate.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/pako/lib/zlib/inflate.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/pako/lib/zlib/inffast.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/pako/lib/zlib/inftrees.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/pako/lib/zlib/constants.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/pako/lib/zlib/gzheader.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/nodeBuffer.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/crc32.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/signature.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/defaults.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/compressedObject.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/utf8.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/stringWriter.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/uint8ArrayWriter.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/load.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/zipEntries.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/stringReader.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/dataReader.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/nodeBufferReader.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/uint8ArrayReader.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/zipEntry.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/jszip/lib/deprecatedPublicUtils.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/lodash-node/package.json" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "/Users/tank/dev/strava-heatmap-to-kmz/node_modules/lodash-node/modern/index.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "strava1.kmz" QMap(("mode", QVariant(QString, "w")))
2020-02-20T11:14:38 [DEBUG] FileSystem - _open: "kml.template" QMap(("charset", QVariant(QString, "utf8"))("mode", QVariant(QString, "r")))
2020-02-20T11:14:38 [DEBUG] WebPage - updateLoadingProgress: 10
2020-02-20T11:14:39 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 30
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 32
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 35
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 37
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 39
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 41
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 43
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 46
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 48
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 49
2020-02-20T11:14:39 [DEBUG] WebPage - setupFrame ""
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 50
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 52
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 54
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 56
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 58
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 60
Error: Failed to initialize WebGL

  https://api.mapbox.com/mapbox-gl-js/v0.42.2/mapbox-gl.js:510 in fire
TypeError: undefined is not an object (evaluating 'this.painter.resize')

  https://api.mapbox.com/mapbox-gl-js/v0.42.2/mapbox-gl.js:484 in resize
  https://api.mapbox.com/mapbox-gl-js/v0.42.2/mapbox-gl.js:484 in e
  https://www.strava.com/heatmap:938 in initMap
  https://www.strava.com/heatmap:1144
  :1352 in i
  :1394 in fireWith
  :1474 in ready
  :1479 in J
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 63
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 65
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 68
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 70
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 72
2020-02-20T11:14:39 [DEBUG] WebPage - updateLoadingProgress: 74
2020-02-20T11:14:40 [DEBUG] WebPage - updateLoadingProgress: 77
2020-02-20T11:14:40 [DEBUG] WebPage - updateLoadingProgress: 79
2020-02-20T11:14:40 [DEBUG] WebPage - updateLoadingProgress: 81
2020-02-20T11:14:40 [DEBUG] WebPage - updateLoadingProgress: 84
2020-02-20T11:14:40 [DEBUG] WebPage - updateLoadingProgress: 86
2020-02-20T11:14:40 [DEBUG] WebPage - updateLoadingProgress: 88
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "__tld__=1; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs%3Atest=true; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs%3Acookies=true; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs%3Acookies=true; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "__tld__=1; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs%3Atest=true; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "__tld__=1; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs%3Atest=true; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_user_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_user_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_group_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_user_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_group_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_anonymous_id=%22f1daf690-fe54-4768-ac56-f3b1cf4ac7dc%22; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_user_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_group_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_anonymous_id=%22f1daf690-fe54-4768-ac56-f3b1cf4ac7dc%22; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] WebPage - updateLoadingProgress: 90
2020-02-20T11:14:40 [DEBUG] WebPage - updateLoadingProgress: 90
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_user_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_group_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_anonymous_id=%22f1daf690-fe54-4768-ac56-f3b1cf4ac7dc%22; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_ses.047d=*; expires=Thu, 20-Feb-2020 03:44:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_user_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_group_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_anonymous_id=%22f1daf690-fe54-4768-ac56-f3b1cf4ac7dc%22; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_ses.047d=*; expires=Thu, 20-Feb-2020 03:44:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_id.047d=2d1468bd-96c8-40dc-bc49-51eb04de4a47.1582168480.1.1582168480.1582168480.765725c0-f7d8-467d-9c21-cc7c6c83949e; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_user_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_group_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_anonymous_id=%22f1daf690-fe54-4768-ac56-f3b1cf4ac7dc%22; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_ses.047d=*; expires=Thu, 20-Feb-2020 03:44:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_id.047d=2d1468bd-96c8-40dc-bc49-51eb04de4a47.1582168480.1.1582168480.1582168480.765725c0-f7d8-467d-9c21-cc7c6c83949e; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_user_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_group_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_anonymous_id=%22f1daf690-fe54-4768-ac56-f3b1cf4ac7dc%22; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_id.047d=2d1468bd-96c8-40dc-bc49-51eb04de4a47.1582168480.1.1582168480.1582168480.765725c0-f7d8-467d-9c21-cc7c6c83949e; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_ses.047d=*; expires=Thu, 20-Feb-2020 03:44:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] WebPage - setupFrame "<!--framePath //<!--frame0-->-->"
2020-02-20T11:14:40 [DEBUG] WebPage - updateLoadingProgress: 90
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_user_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_group_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_anonymous_id=%22f1daf690-fe54-4768-ac56-f3b1cf4ac7dc%22; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_id.047d=2d1468bd-96c8-40dc-bc49-51eb04de4a47.1582168480.1.1582168480.1582168480.765725c0-f7d8-467d-9c21-cc7c6c83949e; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_ses.047d=*; expires=Thu, 20-Feb-2020 03:44:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_ga=GA1.2.1254496245.1582168480; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_user_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_group_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_anonymous_id=%22f1daf690-fe54-4768-ac56-f3b1cf4ac7dc%22; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_id.047d=2d1468bd-96c8-40dc-bc49-51eb04de4a47.1582168480.1.1582168480.1582168480.765725c0-f7d8-467d-9c21-cc7c6c83949e; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_ses.047d=*; expires=Thu, 20-Feb-2020 03:44:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_ga=GA1.2.1254496245.1582168480; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_gid=GA1.2.20008266.1582168480; expires=Fri, 21-Feb-2020 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_user_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_group_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_anonymous_id=%22f1daf690-fe54-4768-ac56-f3b1cf4ac7dc%22; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_id.047d=2d1468bd-96c8-40dc-bc49-51eb04de4a47.1582168480.1.1582168480.1582168480.765725c0-f7d8-467d-9c21-cc7c6c83949e; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_ses.047d=*; expires=Thu, 20-Feb-2020 03:44:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_ga=GA1.2.1254496245.1582168480; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_gid=GA1.2.20008266.1582168480; expires=Fri, 21-Feb-2020 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_dc_gtm_UA-6309847-24=1; expires=Thu, 20-Feb-2020 03:15:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] WebPage - updateLoadingProgress: 90
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_user_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_group_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_anonymous_id=%22f1daf690-fe54-4768-ac56-f3b1cf4ac7dc%22; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_id.047d=2d1468bd-96c8-40dc-bc49-51eb04de4a47.1582168480.1.1582168480.1582168480.765725c0-f7d8-467d-9c21-cc7c6c83949e; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_ses.047d=*; expires=Thu, 20-Feb-2020 03:44:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_ga=GA1.2.1254496245.1582168480; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_gid=GA1.2.20008266.1582168480; expires=Fri, 21-Feb-2020 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_dc_gtm_UA-6309847-24=1; expires=Thu, 20-Feb-2020 03:15:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_user_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_group_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_anonymous_id=%22f1daf690-fe54-4768-ac56-f3b1cf4ac7dc%22; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_id.047d=2d1468bd-96c8-40dc-bc49-51eb04de4a47.1582168480.1.1582168480.1582168480.765725c0-f7d8-467d-9c21-cc7c6c83949e; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_ses.047d=*; expires=Thu, 20-Feb-2020 03:44:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_ga=GA1.2.1254496245.1582168480; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_gid=GA1.2.20008266.1582168480; expires=Fri, 21-Feb-2020 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_dc_gtm_UA-6309847-24=1; expires=Thu, 20-Feb-2020 03:15:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_s=Po5SrKaTZVn7%2FaC7syAL8tI5LaV8s756sFAglVyrp7utbdpeP2azqeD9%2B7S04y2h; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.app.link; path=/"
2020-02-20T11:14:40 [DEBUG] WebPage - updateLoadingProgress: 90
2020-02-20T11:14:40 [DEBUG] WebPage - updateLoadingProgress: 90
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_user_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_group_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "ajs_anonymous_id=%22f1daf690-fe54-4768-ac56-f3b1cf4ac7dc%22; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_id.047d=2d1468bd-96c8-40dc-bc49-51eb04de4a47.1582168480.1.1582168480.1582168480.765725c0-f7d8-467d-9c21-cc7c6c83949e; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_sp_ses.047d=*; expires=Thu, 20-Feb-2020 03:44:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_ga=GA1.2.1254496245.1582168480; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_gid=GA1.2.20008266.1582168480; expires=Fri, 21-Feb-2020 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_dc_gtm_UA-6309847-24=1; expires=Thu, 20-Feb-2020 03:15:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "_s=Po5SrKaTZVn7%2FaC7syAL8tI5LaV8s756sFAglVyrp7utbdpeP2azqeD9%2B7S04y2h; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.app.link; path=/"
2020-02-20T11:14:40 [DEBUG] CookieJar - Saved "tfw_exp=0; secure; expires=Fri, 21-Feb-2020 03:14:40 GMT; domain=.twitter.com; path=/"
2020-02-20T11:14:40 [DEBUG] WebPage - updateLoadingProgress: 90
2020-02-20T11:14:41 [DEBUG] WebPage - updateLoadingProgress: 90
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "ajs_user_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "ajs_group_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "ajs_anonymous_id=%22f1daf690-fe54-4768-ac56-f3b1cf4ac7dc%22; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "_sp_id.047d=2d1468bd-96c8-40dc-bc49-51eb04de4a47.1582168480.1.1582168480.1582168480.765725c0-f7d8-467d-9c21-cc7c6c83949e; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "_sp_ses.047d=*; expires=Thu, 20-Feb-2020 03:44:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "_ga=GA1.2.1254496245.1582168480; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "_gid=GA1.2.20008266.1582168480; expires=Fri, 21-Feb-2020 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "_dc_gtm_UA-6309847-24=1; expires=Thu, 20-Feb-2020 03:15:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "_s=Po5SrKaTZVn7%2FaC7syAL8tI5LaV8s756sFAglVyrp7utbdpeP2azqeD9%2B7S04y2h; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.app.link; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "tfw_exp=0; secure; expires=Fri, 21-Feb-2020 03:14:40 GMT; domain=.twitter.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "sp=e7d4f6ff-b8af-4db0-8f7a-c49ee61722aa; secure; expires=Fri, 19-Feb-2021 03:14:41 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] WebPage - updateLoadingProgress: 90
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "ajs_user_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "ajs_group_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "ajs_anonymous_id=%22f1daf690-fe54-4768-ac56-f3b1cf4ac7dc%22; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "_sp_id.047d=2d1468bd-96c8-40dc-bc49-51eb04de4a47.1582168480.1.1582168480.1582168480.765725c0-f7d8-467d-9c21-cc7c6c83949e; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "_sp_ses.047d=*; expires=Thu, 20-Feb-2020 03:44:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "_ga=GA1.2.1254496245.1582168480; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "_gid=GA1.2.20008266.1582168480; expires=Fri, 21-Feb-2020 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "_dc_gtm_UA-6309847-24=1; expires=Thu, 20-Feb-2020 03:15:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "_s=Po5SrKaTZVn7%2FaC7syAL8tI5LaV8s756sFAglVyrp7utbdpeP2azqeD9%2B7S04y2h; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.app.link; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "tfw_exp=0; secure; expires=Fri, 21-Feb-2020 03:14:40 GMT; domain=.twitter.com; path=/"
2020-02-20T11:14:41 [DEBUG] CookieJar - Saved "sp=e7d4f6ff-b8af-4db0-8f7a-c49ee61722aa; secure; expires=Fri, 19-Feb-2021 03:14:41 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:41 [DEBUG] WebPage - updateLoadingProgress: 90
2020-02-20T11:14:41 [DEBUG] WebPage - updateLoadingProgress: 100
2020-02-20T11:14:41 [DEBUG] WebPage - evaluateJavaScript "(function() { return (function () {\n    $('#header, #controls, #sidebar').remove();\n\n    // Force redraw and recalculation of map bounds\n    $(window).trigger('resize');\n    map.invalidateSize();\n\n    var bounds = map.getBounds();\n    return {east: bounds.getEast(),\n            west: bounds.getWest(),\n            north: bounds.getNorth(),\n            south: bounds.getSouth()};\n  })(); })()"
TypeError: undefined is not a constructor (evaluating '$('#header, #controls, #sidebar')')

  undefined:2
  :13
2020-02-20T11:14:41 [DEBUG] WebPage - evaluateJavaScript result QVariant(Invalid)
2020-02-20T11:14:41 [DEBUG] FileSystem - _open: "strava.png" QMap(("mode", QVariant(QString, "rb")))
2020-02-20T11:14:42 [DEBUG] FileSystem - _open: "strava1.kmz" QMap(("mode", QVariant(QString, "wb")))
2020-02-20T11:14:42 [DEBUG] WebPage - setupFrame ""
2020-02-20T11:14:42 [DEBUG] Network - Resource request error: QNetworkReply::NetworkError(OperationCanceledError) ( "Operation canceled" ) URL: "https://c.strava.com/i?stm=1582168481434&e=pv&url=https%3A%2F%2Fwww.strava.com%2Fheatmap&page=Strava%20Global%20Heatmap&tv=js-2.9.0&tna=cf&aid=strava-web&p=web&tz=Asia%2FShanghai&lang=en-AU&cs=UTF-8&res=1024x768&cd=32&cookie=1&eid=8699d5a9-9e24-4df2-a5f5-b3eac3aeb56e&dtm=1582168480249&vp=1000x1000&ds=1000x1000&vid=1&sid=765725c0-f7d8-467d-9c21-cc7c6c83949e&duid=2d1468bd-96c8-40dc-bc49-51eb04de4a47&fp=2976099400"
2020-02-20T11:14:42 [DEBUG] WebPage - updateLoadingProgress: 10
2020-02-20T11:14:42 [DEBUG] WebPage - setupFrame ""
2020-02-20T11:14:42 [DEBUG] WebPage - updateLoadingProgress: 100
2020-02-20T11:14:42 [DEBUG] WebPage - setupFrame ""
2020-02-20T11:14:42 [DEBUG] FileSystem - _open: ":/modules/fs.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:42 [DEBUG] FileSystem - _open: ":/modules/system.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:42 [DEBUG] FileSystem - _open: ":/modules/webpage.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:42 [DEBUG] WebPage - updateLoadingProgress: 10
2020-02-20T11:14:42 [DEBUG] WebPage - setupFrame ""
2020-02-20T11:14:42 [DEBUG] FileSystem - _open: ":/modules/fs.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:42 [DEBUG] FileSystem - _open: ":/modules/system.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:42 [DEBUG] FileSystem - _open: ":/modules/webpage.js" QMap(("mode", QVariant(QString, "r")))
2020-02-20T11:14:42 [DEBUG] WebPage - updateLoadingProgress: 100
2020-02-20T11:14:42 [DEBUG] WebPage - setupFrame ""
2020-02-20T11:14:42 [DEBUG] CookieJar - Purged (session) "_strava4_session=jj1h4s931rf5b17n4412t0qpf2pqci0p; secure; HttpOnly; domain=.strava.com; path=/"
2020-02-20T11:14:42 [DEBUG] CookieJar - Saved "ajs_user_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:42 [DEBUG] CookieJar - Saved "ajs_group_id=null; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:42 [DEBUG] CookieJar - Saved "ajs_anonymous_id=%22f1daf690-fe54-4768-ac56-f3b1cf4ac7dc%22; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:42 [DEBUG] CookieJar - Saved "_sp_id.047d=2d1468bd-96c8-40dc-bc49-51eb04de4a47.1582168480.1.1582168480.1582168480.765725c0-f7d8-467d-9c21-cc7c6c83949e; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:42 [DEBUG] CookieJar - Saved "_sp_ses.047d=*; expires=Thu, 20-Feb-2020 03:44:40 GMT; domain=www.strava.com; path=/"
2020-02-20T11:14:42 [DEBUG] CookieJar - Saved "_ga=GA1.2.1254496245.1582168480; expires=Sat, 19-Feb-2022 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:42 [DEBUG] CookieJar - Saved "_gid=GA1.2.20008266.1582168480; expires=Fri, 21-Feb-2020 03:14:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:42 [DEBUG] CookieJar - Saved "_dc_gtm_UA-6309847-24=1; expires=Thu, 20-Feb-2020 03:15:40 GMT; domain=.strava.com; path=/"
2020-02-20T11:14:42 [DEBUG] CookieJar - Saved "_s=Po5SrKaTZVn7%2FaC7syAL8tI5LaV8s756sFAglVyrp7utbdpeP2azqeD9%2B7S04y2h; expires=Fri, 19-Feb-2021 03:14:40 GMT; domain=.app.link; path=/"
2020-02-20T11:14:42 [DEBUG] CookieJar - Saved "tfw_exp=0; secure; expires=Fri, 21-Feb-2020 03:14:40 GMT; domain=.twitter.com; path=/"
2020-02-20T11:14:42 [DEBUG] CookieJar - Saved "sp=e7d4f6ff-b8af-4db0-8f7a-c49ee61722aa; secure; expires=Fri, 19-Feb-2021 03:14:41 GMT; domain=.strava.com; path=/"
akahn commented 4 years ago

I'm sorry, but I don't have time to debug this issue. It appears that the URL for the heatmap has changed (it's no longer under the "labs" subdomain). Can you investigate whether that is the issue?

2600box commented 4 years ago

thanks for the reply. unfortunately it is not such an easy fix and i'm not sure what to do with this 'undefined is not' error...

fwiw, the first error in refers to this part of line 484: return this._resizeCanvas(e,o),this.transform.resize(e,o),this.painter.resize(e,o),this.fire("movestart").fire("move").fire("resize").fire("moveend")},e.prototype.getBounds=function(){var t=new LngLatBounds(this.transform.pointLocation(new Point(0,this.transform.height)),this.transform.pointLocation(new Point(this.transform.width,0)));

All of line 510:

"use strict";function _addEventListener(e,t,n){n[e]=n[e]||[],n[e].push(t)}function _removeEventListener(e,t,n){if(n&&n[e]){var i=n[e].indexOf(t);-1!==i&&n[e].splice(i,1)}}var util=_dereq_("./util"),Evented=function(){};Evented.prototype.on=function(e,t){return this._listeners=this._listeners||{},_addEventListener(e,t,this._listeners),this},Evented.prototype.off=function(e,t){return _removeEventListener(e,t,this._listeners),_removeEventListener(e,t,this._oneTimeListeners),this},Evented.prototype.once=function(e,t){return this._oneTimeListeners=this._oneTimeListeners||{},_addEventListener(e,t,this._oneTimeListeners),this},Evented.prototype.fire=function(e,t){var n=this;if(this.listens(e)){t=util.extend({},t,{type:e,target:this});for(var i=this._listeners&&this._listeners[e]?this._listeners[e].slice():[],s=0;s<i.length;s++)i[s].call(n,t);for(var r=this._oneTimeListeners&&this._oneTimeListeners[e]?this._oneTimeListeners[e].slice():[],o=0;o<r.length;o++)r[o].call(n,t),_removeEventListener(e,r[o],n._oneTimeListeners);this._eventedParent&&this._eventedParent.fire(e,util.extend({},t,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData))}else util.endsWith(e,"error")&&console.error(t&&t.error||t||"Empty error event");return this},Evented.prototype.listens=function(e){return this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)},Evented.prototype.setEventedParent=function(e,t){return this._eventedParent=e,this._eventedParentData=t,this},module.exports=Evented;

all of 484:

"use strict";function removeNode(t){t.parentNode&&t.parentNode.removeChild(t)}var util=_dereq_("../util/util"),browser=_dereq_("../util/browser"),window=_dereq_("../util/window"),ref=_dereq_("../util/window"),HTMLImageElement=ref.HTMLImageElement,HTMLElement=ref.HTMLElement,DOM=_dereq_("../util/dom"),ajax=_dereq_("../util/ajax"),Style=_dereq_("../style/style"),Painter=_dereq_("../render/painter"),Transform=_dereq_("../geo/transform"),Hash=_dereq_("./hash"),bindHandlers=_dereq_("./bind_handlers"),Camera=_dereq_("./camera"),LngLat=_dereq_("../geo/lng_lat"),LngLatBounds=_dereq_("../geo/lng_lat_bounds"),Point=_dereq_("@mapbox/point-geometry"),AttributionControl=_dereq_("./control/attribution_control"),LogoControl=_dereq_("./control/logo_control"),isSupported=_dereq_("mapbox-gl-supported");_dereq_("./events");var defaultMinZoom=0,defaultMaxZoom=22,defaultOptions={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:defaultMinZoom,maxZoom:defaultMaxZoom,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,bearingSnap:7,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,transformRequest:null,collisionFadeDuration:300},Map=function(t){function e(e){var o=this;if(e=util.extend({},defaultOptions,e),null!=e.minZoom&&null!=e.maxZoom&&e.minZoom>e.maxZoom)throw new Error("maxZoom must be greater than minZoom");var r=new Transform(e.minZoom,e.maxZoom,e.renderWorldCopies);t.call(this,r,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._collisionFadeDuration=e.collisionFadeDuration;var i=e.transformRequest;if(this._transformRequest=i?function(t,e){return i(t,e)||{url:t}}:function(t){return{url:t}},"string"==typeof e.container){var n=window.document.getElementById(e.container);if(!n)throw new Error("Container '"+e.container+"' not found.");this._container=n}else{if(!(e.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=e.container}e.maxBounds&&this.setMaxBounds(e.maxBounds),util.bindAll(["_onWindowOnline","_onWindowResize","_contextLost","_contextRestored","_update","_render","_onData","_onDataLoading"],this),this._setupContainer(),this._setupPainter(),this.on("move",this._update.bind(this,!1)),this.on("zoom",this._update.bind(this,!0)),this.on("move",function(){o._rerender()}),void 0!==window&&(window.addEventListener("online",this._onWindowOnline,!1),window.addEventListener("resize",this._onWindowResize,!1)),bindHandlers(this,e),this._hash=e.hash&&(new Hash).addTo(this),this._hash&&this._hash._onHashChange()||this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),this.resize(),e.style&&this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&&this.addControl(new AttributionControl),this.addControl(new LogoControl,e.logoPosition),this.on("style.load",function(){this.transform.unmodified&&this.jumpTo(this.style.stylesheet),this.style.update({transition:!1})}),this.on("data",this._onData),this.on("dataloading",this._onDataLoading)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={showTileBoundaries:{},showCollisionBoxes:{},showOverdrawInspector:{},repaint:{},vertices:{}};return e.prototype.addControl=function(t,e){void 0===e&&t.getDefaultPosition&&(e=t.getDefaultPosition()),void 0===e&&(e="top-right");var o=t.onAdd(this),r=this._controlPositions[e];return-1!==e.indexOf("bottom")?r.insertBefore(o,r.firstChild):r.appendChild(o),this},e.prototype.removeControl=function(t){return t.onRemove(this),this},e.prototype.resize=function(){var t=this._containerDimensions(),e=t[0],o=t[1];return this._resizeCanvas(e,o),this.transform.resize(e,o),this.painter.resize(e,o),this.fire("movestart").fire("move").fire("resize").fire("moveend")},e.prototype.getBounds=function(){var t=new LngLatBounds(this.transform.pointLocation(new Point(0,this.transform.height)),this.transform.pointLocation(new Point(this.transform.width,0)));return(this.transform.angle||this.transform.pitch)&&(t.extend(this.transform.pointLocation(new Point(this.transform.size.x,0))),t.extend(this.transform.pointLocation(new Point(0,this.transform.size.y)))),t},e.prototype.getMaxBounds=function(){return this.transform.latRange&&2===this.transform.latRange.length&&this.transform.lngRange&&2===this.transform.lngRange.length?new LngLatBounds([this.transform.lngRange[0],this.transform.latRange[0]],[this.transform.lngRange[1],this.transform.latRange[1]]):null},e.prototype.setMaxBounds=function(t){if(t){var e=LngLatBounds.convert(t);this.transform.lngRange=[e.getWest(),e.getEast()],this.transform.latRange=[e.getSouth(),e.getNorth()],this.transform._constrain(),this._update()}else null!==t&&void 0!==t||(this.transform.lngRange=null,this.transform.latRange=null,this._update());return this},e.prototype.setMinZoom=function(t){if((t=null===t||void 0===t?defaultMinZoom:t)>=defaultMinZoom&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t&&this.setZoom(t),this;throw new Error("minZoom must be between "+defaultMinZoom+" and the current maxZoom, inclusive")},e.prototype.getMinZoom=function(){return this.transform.minZoom},e.prototype.setMaxZoom=function(t){if((t=null===t||void 0===t?defaultMaxZoom:t)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error("maxZoom must be greater than the current minZoom")},e.prototype.getMaxZoom=function(){return this.transform.maxZoom},e.prototype.project=function(t){return this.transform.locationPoint(LngLat.convert(t))},e.prototype.unproject=function(t){return this.transform.pointLocation(Point.convert(t))},e.prototype.on=function(e,o,r){var i=this;if(void 0===r)return t.prototype.on.call(this,e,o);var n=function(){if("mouseenter"===e||"mouseover"===e){var t=!1;return{layer:o,listener:r,delegates:{mousemove:function(n){var s=i.getLayer(o)?i.queryRenderedFeatures(n.point,{layers:[o]}):[];s.length?t||(t=!0,r.call(i,util.extend({features:s},n,{type:e}))):t=!1},mouseout:function(){t=!1}}}}if("mouseleave"===e||"mouseout"===e){var n=!1;return{layer:o,listener:r,delegates:{mousemove:function(t){(i.getLayer(o)?i.queryRenderedFeatures(t.point,{layers:[o]}):[]).length?n=!0:n&&(n=!1,r.call(i,util.extend({},t,{type:e})))},mouseout:function(t){n&&(n=!1,r.call(i,util.extend({},t,{type:e})))}}}}var s=function(t){var e=i.getLayer(o)?i.queryRenderedFeatures(t.point,{layers:[o]}):[];e.length&&r.call(i,util.extend({features:e},t))};return{layer:o,listener:r,delegates:(a={},a[e]=s,a)};var a}();this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(n);for(var s in n.delegates)i.on(s,n.delegates[s]);return this},e.prototype.off=function(e,o,r){var i=this;if(void 0===r)return t.prototype.off.call(this,e,o);if(this._delegatedListeners&&this._delegatedListeners[e])for(var n=this._delegatedListeners[e],s=0;s<n.length;s++){var a=n[s];if(a.layer===o&&a.listener===r){for(var h in a.delegates)i.off(h,a.delegates[h]);return n.splice(s,1),i}}return this},e.prototype.queryRenderedFeatures=function(t,e){return 2===arguments.length?(t=arguments[0],e=arguments[1]):1===arguments.length&&function(t){return t instanceof Point||Array.isArray(t)}(arguments[0])?(t=arguments[0],e={}):1===arguments.length?(t=void 0,e=arguments[0]):(t=void 0,e={}),this.style?this.style.queryRenderedFeatures(this._makeQueryGeometry(t),e,this.transform.zoom,this.transform.angle):[]},e.prototype._makeQueryGeometry=function(t){var e=this;void 0===t&&(t=[Point.convert([0,0]),Point.convert([this.transform.width,this.transform.height])]);var o;if(t instanceof Point||"number"==typeof t[0]){o=[Point.convert(t)]}else{var r=[Point.convert(t[0]),Point.convert(t[1])];o=[r[0],new Point(r[1].x,r[0].y),r[1],new Point(r[0].x,r[1].y),r[0]]}return o=o.map(function(t){return e.transform.pointCoordinate(t)})},e.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},e.prototype.setStyle=function(t,e){if((!e||!1!==e.diff&&!e.localIdeographFontFamily)&&this.style&&t&&"object"==typeof t)try{return this.style.setState(t)&&this._update(!0),this}catch(t){util.warnOnce("Unable to perform style diff: "+(t.message||t.error||t)+".  Rebuilding the style from scratch.")}return this.style&&(this.style.setEventedParent(null),this.style._remove()),t?(this.style=new Style(this,e||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof t?this.style.loadURL(t):this.style.loadJSON(t),this):(delete this.style,this)},e.prototype.getStyle=function(){if(this.style)return this.style.serialize()},e.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():util.warnOnce("There is no style added to the map.")},e.prototype.addSource=function(t,e){return this.style.addSource(t,e),this._update(!0),this},e.prototype.isSourceLoaded=function(t){var e=this.style&&this.style.sourceCaches[t];return void 0===e?void this.fire("error",{error:new Error("There is no source with ID '"+t+"'")}):e.loaded()},e.prototype.areTilesLoaded=function(){var t=this.style&&this.style.sourceCaches;for(var e in t){var o=t[e],r=o._tiles;for(var i in r){var n=r[i];if("loaded"!==n.state&&"errored"!==n.state)return!1}}return!0},e.prototype.addSourceType=function(t,e,o){return this.style.addSourceType(t,e,o)},e.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0),this},e.prototype.getSource=function(t){return this.style.getSource(t)},e.prototype.addImage=function(t,e,o){void 0===o&&(o={});var r=o.pixelRatio;void 0===r&&(r=1);var i=o.sdf;if(void 0===i&&(i=!1),e instanceof HTMLImageElement)e=browser.getImageData(e);else if(void 0===e.width||void 0===e.height)return this.fire("error",{error:new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")});this.style.addImage(t,{data:e,pixelRatio:r,sdf:i})},e.prototype.removeImage=function(t){this.style.removeImage(t)},e.prototype.loadImage=function(t,e){ajax.getImage(this._transformRequest(t,ajax.ResourceType.Image),e)},e.prototype.addLayer=function(t,e){return this.style.addLayer(t,e),this._update(!0),this},e.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0),this},e.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0),this},e.prototype.getLayer=function(t){return this.style.getLayer(t)},e.prototype.setFilter=function(t,e){return this.style.setFilter(t,e),this._update(!0),this},e.prototype.setLayerZoomRange=function(t,e,o){return this.style.setLayerZoomRange(t,e,o),this._update(!0),this},e.prototype.getFilter=function(t){return this.style.getFilter(t)},e.prototype.setPaintProperty=function(t,e,o){return this.style.setPaintProperty(t,e,o),this._update(!0),this},e.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},e.prototype.setLayoutProperty=function(t,e,o){return this.style.setLayoutProperty(t,e,o),this._update(!0),this},e.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},e.prototype.setLight=function(t){return this.style.setLight(t),this._update(!0),this},e.prototype.getLight=function(){return this.style.getLight()},e.prototype.getContainer=function(){return this._container},e.prototype.getCanvasContainer=function(){return this._canvasContainer},e.prototype.getCanvas=function(){return this._canvas},e.prototype._containerDimensions=function(){var t=0,e=0;return this._container&&(t=this._container.offsetWidth||400,e=this._container.offsetHeight||300),[t,e]},e.prototype._setupContainer=function(){var t=this._container;t.classList.add("mapboxgl-map"),(this._missingCSSContainer=DOM.create("div","mapboxgl-missing-css",t)).innerHTML="Missing Mapbox GL JS CSS";var e=this._canvasContainer=DOM.create("div","mapboxgl-canvas-container",t);this._interactive&&e.classList.add("mapboxgl-interactive"),this._canvas=DOM.create("canvas","mapboxgl-canvas",e),this._canvas.style.position="absolute",this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map");var o=this._containerDimensions();this._resizeCanvas(o[0],o[1]);var r=this._controlContainer=DOM.create("div","mapboxgl-control-container",t),i=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(function(t){i[t]=DOM.create("div","mapboxgl-ctrl-"+t,r)})},e.prototype._resizeCanvas=function(t,e){var o=window.devicePixelRatio||1;this._canvas.width=o*t,this._canvas.height=o*e,this._canvas.style.width=t+"px",this._canvas.style.height=e+"px"},e.prototype._setupPainter=function(){var t=util.extend({failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer},isSupported.webGLContextAttributes),e=this._canvas.getContext("webgl",t)||this._canvas.getContext("experimental-webgl",t);if(!e)return void this.fire("error",{error:new Error("Failed to initialize WebGL")});this.painter=new Painter(e,this.transform)},e.prototype._contextLost=function(t){t.preventDefault(),this._frameId&&(browser.cancelFrame(this._frameId),this._frameId=null),this.fire("webglcontextlost",{originalEvent:t})},e.prototype._contextRestored=function(t){this._setupPainter(),this.resize(),this._update(),this.fire("webglcontextrestored",{originalEvent:t})},e.prototype.loaded=function(){return!(this._styleDirty||this._sourcesDirty||this._placementDirty)&&!(!this.style||!this.style.loaded())},e.prototype._update=function(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this._rerender(),this):this},e.prototype._render=function(){return this.style&&this._styleDirty&&(this._styleDirty=!1,this.style.update(),this.style._recalculate(this.transform.zoom)),this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._collisionFadeDuration),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.rotating,zooming:this.zooming,collisionFadeDuration:this._collisionFadeDuration}),this.fire("render"),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire("load")),this._frameId=null,this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),(this._sourcesDirty||this._repaint||this._styleDirty||this._placementDirty)&&this._rerender(),this},e.prototype.remove=function(){this._hash&&this._hash.remove(),browser.cancelFrame(this._frameId),this._frameId=null,this.setStyle(null),void 0!==window&&(window.removeEventListener("resize",this._onWindowResize,!1),window.removeEventListener("online",this._onWindowOnline,!1));var t=this.painter.gl.getExtension("WEBGL_lose_context");t&&t.loseContext(),removeNode(this._canvasContainer),removeNode(this._controlContainer),removeNode(this._missingCSSContainer),this._container.classList.remove("mapboxgl-map"),this.fire("remove")},e.prototype._rerender=function(){this.style&&!this._frameId&&(this._frameId=browser.frame(this._render))},e.prototype._onWindowOnline=function(){this._update()},e.prototype._onWindowResize=function(){this._trackResize&&this.stop().resize()._update()},o.showTileBoundaries.get=function(){return!!this._showTileBoundaries},o.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())},o.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},o.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&&(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())},o.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},o.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())},o.repaint.get=function(){return!!this._repaint},o.repaint.set=function(t){this._repaint=t,this._update()},o.vertices.get=function(){return!!this._vertices},o.vertices.set=function(t){this._vertices=t,this._update()},e.prototype._onData=function(t){this._update("style"===t.dataType),this.fire(t.dataType+"data",t)},e.prototype._onDataLoading=function(t){this.fire(t.dataType+"dataloading",t)},Object.defineProperties(e.prototype,o),e}(Camera);module.exports=Map;
pookdeveloper commented 2 years ago

@akahn can you review the code, it doesn't work