Munzee Map Pin Stacking

Fixed Pin Stacking on New OSM Maps on Munzee's Website. Also removes outer zoom limit.

  1. // ==UserScript==
  2. // @name Munzee Map Pin Stacking
  3. // @namespace MunzeeMap
  4. // @version 1.0.1
  5. // @description Fixed Pin Stacking on New OSM Maps on Munzee's Website. Also removes outer zoom limit.
  6. // @author MOBlox
  7. // @match https://www.munzee.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. if(map){
  14. setInterval(function(){
  15. var x = $('.mapboxgl-marker');
  16. for(var i = 0;i < x.length;i++){
  17. x[i].style.zIndex = x[i].getBoundingClientRect().top * 1 + 1;
  18. }
  19. map.setMinZoom(0);
  20. $('.mapboxgl-popup').css('z-index',10000000)
  21. });
  22. }
  23. })();