Discussies » Scriptaanvragen

iweathernet rainfall accumulation map

§
Geplaatst: 03-07-2023

https://www.iweathernet.com/total-rainfall-map-24-hours-to-72-hours

It was possible until recently to zoom in on the map to a useful level, but somehow that changed to where you can't zoom in very far at all.

https://talk.newagtalk.com/forums/thread-view.asp?tid=1112758&mid=10230152#M10230152

§
Geplaatst: 04-07-2023
// ==UserScript==
// @name          iweathernet.com: any zoom at rainfall map
// @description   Unlocks zoom levels at rainfall map of iweathernet.com
// @namespace     https://greasyfork.org/users/424058
// @version       1
// @match         https://www.iweathernet.com/total-rainfall-map-24-hours-to-72-hours
// @icon          https://t1.gstatic.com/faviconV2?client=SOCIAL&url=http://iweathernet.com&size=32
// @run-at        document-start
// @grant         unsafeWindow
// ==/UserScript==

/* global map */

(function() {
  'use strict';

  (function main() {
    try {
      unsafeWindow.map.options.minZoom = 1;
      unsafeWindow.map.options.maxZoom = 11;
    } catch(e) {
      return setTimeout(main);
    }
  }());
})();

Reactie plaatsen

Log in om antwoord te geven.