Get a sneak peek at whats next for Permanent Hazards on our April 7th Office Hours!
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Post Reply
Forum rules
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

DO NOT START a new thread unless it is about a new idea. Keep discussion of existing tools within the main thread for that tool.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

[Script] Waze Live map big moods (no longer working)

Post by vince1612
Hi guys,

There is a script I found to be very useful for the Livemap:
https://greasyfork.org/en/scripts/10624 ... -big-moods

It allowed to see big report pins even at higher zooms instead of the smaller dots. However since the recent update this stopped working.

It was created and last modified in 2015, I had found it on Greasyfork directly. I don't think it already had a thread on this forum, probably since it's not a script for the WME so it's technically not really supposed to be in this section. I opened a feedback thread directly on Greasyfork on July 24th but it seems the author might be gone since it's been 3 years.

I tried to look at the code, only to realize I don't think I have any chance to understand it enough to fix it and I was wondering if anyone out there thinks they might have better luck..?

Code: Select all

// ==UserScript==
// @name         Waze Live map big moods
// @version      0.4
// @description  Waze live map big moods and events
// @author       ixxvivxxi
// @include      https://www.waze.com/livemap*
// @include      https://www.waze.com/*/livemap*
// @grant        none
// @namespace    https://greasyfork.org/ru/scripts/10624-waze-live-map-big-moods-and-events
// ==/UserScript==

$( document ).ready(function() {
  var css = '.xs-mood { width:30px !important; height: 24px !important; background-size:30px 24px !important; margin-top: -18px !important; margin-left: -14px !important;} ' +
            '.small-pin { width: 28px !important; height: 33px !important;background-size: 28px 33px !important;  margin-top: -30px !important; margin-left: -12px !important;}',
      head = document.head || document.getElementsByTagName('head')[0],
      style = document.createElement('style');
  style.type = 'text/css';
  if (style.styleSheet){
    style.styleSheet.cssText = css;
  } else {
    style.appendChild(document.createTextNode(css));
  }
  head.appendChild(style);

  $('.search-forms').append('<div class="checkbox"> <label> <input type="checkbox" id="showhide"> Спрятать/показать значки</label> </div>');



  setInterval(function() {
    if (W.controller._mapView.map._zoom > 7) {
      $('.small-dot').addClass('small-pin');
      $('.small-dot').removeClass('small-dot');
      $('.medium-dot').addClass('small-pin');
      $('.medium-dot').removeClass('medium-dot');
      $('.big-dot').addClass('small-pin');
      $('.big-dot').removeClass('big-dot');
    }
}, 3000);

});

$('.search-forms').on('click', '#showhide', function() {
  $('.leaflet-marker-pane').toggle();
});
vince1612
Waze Global Champs
Waze Global Champs
Posts: 9299
Has thanked: 2139 times
Been thanked: 2818 times

POSTER_ID:14731619

1

Send a message
https://storage.googleapis.com/wazeoped ... v18.10.png
Wiki & Forum: Wiki CH (D)(FR) | Forum CH (D) (FR) (I)
Website: waze-switzerland.ch | Facebook: Waze Switzerland
1+1=3 - The result of bringing talents together goes beyond simply adding them up.
https://i.ibb.co/2k1TJHH/RIPIain.png

Post by JustinS83
vince1612 wrote:Hi guys,

There is a script I found to be very useful for the Livemap:
https://greasyfork.org/en/scripts/10624 ... -big-moods

It allowed to see big report pins even at higher zooms instead of the smaller dots. However since the recent update this stopped working.

It was created and last modified in 2015, I had found it on Greasyfork directly. I don't think it already had a thread on this forum, probably since it's not a script for the WME so it's technically not really supposed to be in this section. I opened a feedback thread directly on Greasyfork on July 24th but it seems the author might be gone since it's been 3 years.

I tried to look at the code, only to realize I don't think I have any chance to understand it enough to fix it and I was wondering if anyone out there thinks they might have better luck..?

Code: Select all

// ==UserScript==
// @name         Waze Live map big moods
// @version      0.4
// @description  Waze live map big moods and events
// @author       ixxvivxxi
// @include      https://www.waze.com/livemap*
// @include      https://www.waze.com/*/livemap*
// @grant        none
// @namespace    https://greasyfork.org/ru/scripts/10624-waze-live-map-big-moods-and-events
// ==/UserScript==

$( document ).ready(function() {
  var css = '.xs-mood { width:30px !important; height: 24px !important; background-size:30px 24px !important; margin-top: -18px !important; margin-left: -14px !important;} ' +
            '.small-pin { width: 28px !important; height: 33px !important;background-size: 28px 33px !important;  margin-top: -30px !important; margin-left: -12px !important;}',
      head = document.head || document.getElementsByTagName('head')[0],
      style = document.createElement('style');
  style.type = 'text/css';
  if (style.styleSheet){
    style.styleSheet.cssText = css;
  } else {
    style.appendChild(document.createTextNode(css));
  }
  head.appendChild(style);

  $('.search-forms').append('<div class="checkbox"> <label> <input type="checkbox" id="showhide"> Спрятать/показать значки</label> </div>');



  setInterval(function() {
    if (W.controller._mapView.map._zoom > 7) {
      $('.small-dot').addClass('small-pin');
      $('.small-dot').removeClass('small-dot');
      $('.medium-dot').addClass('small-pin');
      $('.medium-dot').removeClass('medium-dot');
      $('.big-dot').addClass('small-pin');
      $('.big-dot').removeClass('big-dot');
    }
}, 3000);

});

$('.search-forms').on('click', '#showhide', function() {
  $('.leaflet-marker-pane').toggle();
});
Doesn't look bad. You care about enlarging the wazer icons as well? It looks like the old script did both the wazer icons and the event pins.
JustinS83  
Waze Global Champs
Waze Global Champs
Posts: 1463
Has thanked: 215 times
Been thanked: 2389 times
Send a message

Post by vince1612
Sorry for the delay, I was out this evening. It seems the new Livemap always shows big Wazer icons now so I don't think it's needed to change their size anymore.
vince1612
Waze Global Champs
Waze Global Champs
Posts: 9299
Has thanked: 2139 times
Been thanked: 2818 times
Send a message
https://storage.googleapis.com/wazeoped ... v18.10.png
Wiki & Forum: Wiki CH (D)(FR) | Forum CH (D) (FR) (I)
Website: waze-switzerland.ch | Facebook: Waze Switzerland
1+1=3 - The result of bringing talents together goes beyond simply adding them up.
https://i.ibb.co/2k1TJHH/RIPIain.png