MunzeeZoomMap

Umožňuje zoomovat munzee mapu do většího měřítka.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name           MunzeeZoomMap
// @name:cs        MunzeeZoomMap
// @namespace      Kaas.Greasemonkey.Munzee
// @description    Enables you to zoom a Munzee map into a larger scale.
// @description:cs Umožňuje zoomovat munzee mapu do většího měřítka.
// @include        https://www.munzee.com/map*
// @version        1.0.0
// @grant          none
// ==/UserScript==

jQuery(document).ready(function ($)
{
  // original values:
  //  12 for "only vacant rooms"
  //  15 for "show circle"
  //  13 for everything else
  var newMinZoom = 8;
  
  _minZoom = newMinZoom;  // override default
  the_map.setOptions({minZoom:  newMinZoom});

  $('#check_vacant').change(function( ) { the_map.setOptions({minZoom:  newMinZoom}); });
  $('#check_circles').change(function( ) { the_map.setOptions({minZoom:  newMinZoom}); });
});