Skip to content

Commit

Permalink
Update WMECitiesOverlay.js
Browse files Browse the repository at this point in the history
Change to *hopefully* keep the city name on the same level as the top bar
  • Loading branch information
justins83 authored Aug 3, 2018
1 parent 67cf0d8 commit 44eed7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WMECitiesOverlay.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name WME Cities Overlay
// @namespace https://greasyfork.org/en/users/166843-wazedev
// @version 2018.07.22.01
// @version 2018.08.03.01
// @description Adds a city overlay for selected states
// @author WazeDev
// @include /^https:\/\/(www|beta)\.waze\.com\/(?!user\/)(.{2,6}\/)?editor\/?.*$/
Expand Down Expand Up @@ -112,12 +112,12 @@
if(_layer.features.length > 0){
if(currCity != ""){
let color = '#00ffff';
var $div = $('<div>', {id:'wmecitiesoverlay', class:"wmecitiesoverlay-region", style:'display:inline-block;margin-left:10px;'})//, title:'Click to toggle color on/off for this group'})
var $div = $('<div>', {id:'wmecitiesoverlay', class:"wmecitiesoverlay-region", style:'float:left; margin-left:10px;'})//, title:'Click to toggle color on/off for this group'})
.css({color:color, cursor:"pointer"});
//.click(toggleAreaFill);
var $span = $('<span>').css({display:'inline-block'});
$span.text(currCity).appendTo($div);
$('.location-info-region').parent().append($div);
$('.location-info-region').after($div);
}
}
}
Expand Down

0 comments on commit 44eed7a

Please sign in to comment.