diff --git a/WMEPIE.js b/WMEPIE.js
index dfb9b22..4ad1713 100644
--- a/WMEPIE.js
+++ b/WMEPIE.js
@@ -1,7 +1,7 @@
// ==UserScript==
// @name WME Place Interface Enhancements
// @namespace https://greasyfork.org/users/30701-justins83-waze
-// @version 2020.08.17.02
+// @version 2021.05.05.01
// @description Enhancements to various Place interfaces
// @include https://www.waze.com/editor*
// @include https://www.waze.com/*/editor*
@@ -42,7 +42,7 @@ var UpdateObject, MultiAction;
var curr_ver = GM_info.script.version;
var settings = {};
- var placeMenuSelector = "#edit-buttons > div > div.toolbar-submenu.toolbar-group.toolbar-group-venues.ItemInactive > menu";//"#edit-buttons > div > div.toolbar-button.waze-icon-place.toolbar-submenu.toolbar-group.toolbar-group-venues.ItemInactive > menu";
+ var placeMenuSelector = "#primary-toolbar > div > div.toolbar-submenu.toolbar-group.toolbar-group-venues.ItemInactive > menu";//"#edit-buttons > div > div.toolbar-button.waze-icon-place.toolbar-submenu.toolbar-group.toolbar-group-venues.ItemInactive > menu";
//"#edit-buttons > div > div.toolbar-submenu.toolbar-group.toolbar-group-venues.ItemInactive > menu";
var placementMode = false;
var resCategory = "RESIDENCE_HOME";
@@ -50,7 +50,7 @@ var UpdateObject, MultiAction;
let hoursparser;
let GLE;
var catalog = [];
- const updateMessage = "Bug fix
.01
Added an option to disable the temporary Place closure highlight from Google Link Enhancer";
+ const updateMessage = "Updates for latest WME changes";
var lastSelectedFeature;
//Layer definitions
@@ -961,13 +961,13 @@ var UpdateObject, MultiAction;
//Icon near chat
let launchDiv=document.createElement('div');
launchDiv.id='launchDiv';
- $(launchDiv).css({'z-index':'10000 !important', 'title':'test','bottom':'26px','left':'70px','position':'absolute','font-weight':'400', 'display': (settings.EnablePhotoViewer ? 'block' : 'none')});
+ $(launchDiv).css({'z-index':'10000 !important', 'title':'test','bottom':'20px','left':'70px','position':'absolute','font-weight':'400', 'display': (settings.EnablePhotoViewer ? 'block' : 'none')});
let tmpdiv=document.createElement('div');
$(tmpdiv).css({'height':'40px','position':'absolute','bottom':'0px','transition':'all 0.3s'});
tmpdiv.onmouseenter=togglePhotoViewerMouseEvent;
launchDiv.appendChild(tmpdiv);
let launchButton=document.createElement('button');
- $(launchButton).css({'filter':'filter:grayscale(100%)','border':'none','background-color':'white','border-radius':'5px 5px 0px 0px','width':'43px','height':'40px'});
+ $(launchButton).css({'filter':'filter:grayscale(100%)','border':'none','background-color':'white','border-radius':'8px 8px 8px 8px','width':'43px','height':'40px'});
launchButton.innerHTML='';
launchButton.id = "photoViewerButton";
tmpdiv.appendChild(launchButton);
@@ -1786,7 +1786,7 @@ var UpdateObject, MultiAction;
//$(placeMenuSelector).append('
'); else{
if(cat === resCategory) //force point
//$(placeMenuSelector).append('');
- $(placeMenuSelector).append('');
+ $(placeMenuSelector).append('');
else //Parking lot & gas station - force area
$(placeMenuSelector).append('');
//$(placeMenuSelector).append('
');
@@ -3477,15 +3477,15 @@ var UpdateObject, MultiAction;
'',
'',
'',
- '',
- '',
- '',
- '',
- '',
- '',
- '',
- '',
- '',
+ '',
+ '',
+ '',
+ '',
+ '',
+ '',
+ '',
+ '',
+ '',
'',
'',
''
@@ -3530,7 +3530,7 @@ var UpdateObject, MultiAction;
'.pie-natural-features {background-image: url(//editor-assets.waze.com/beta/img/toolbar022c8e4d1f16c3825705364ff337bf1b.png); background-position: -16px -21px; width: 17px; height: 15px; } @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {.pie-natural-features {background-image:url(//editor-assets.waze.com/beta/img/toolbar@2xcd8b2ab08e978d00eeee7817e1a0edda.png); background-size: 99px 87px; } }',
'.pie-parking-lot {background-image: url(//editor-assets.waze.com/beta/img/toolbar022c8e4d1f16c3825705364ff337bf1b.png); background-position: -65px -48px; width: 13px; height: 13px; } @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {.pie-parking-lot {background-image:url(//editor-assets.waze.com/beta/img/toolbar@2xcd8b2ab08e978d00eeee7817e1a0edda.png); background-size: 99px 87px; } }',
'.pie-residential {background-image: url(//editor-assets.waze.com/beta/img/toolbar022c8e4d1f16c3825705364ff337bf1b.png); background-position: -15px -37px; width: 15px; height: 14px; } @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {.pie-residential {background-image:url(//editor-assets.waze.com/beta/img/toolbar@2xcd8b2ab08e978d00eeee7817e1a0edda.png); background-size: 99px 87px; } }',
- '#edit-buttons .residential .item-icon::after {background-image: url(//editor-assets.waze.com/beta/img/toolbar022c8e4d1f16c3825705364ff337bf1b.png); background-position: -15px -37px; width: 15px; height: 14px; } @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {#edit-buttons .residential .item-icon::after {background-image: url(//editor-assets.waze.com/beta/img/toolbar@2xcd8b2ab08e978d00eeee7817e1a0edda.png); background-size: 99px 87px; } }',
+ '#primary-toolbar .residential .item-icon::after {background-image: url(//editor-assets.waze.com/beta/img/toolbar022c8e4d1f16c3825705364ff337bf1b.png); background-position: -15px -38px; width: 15px; height: 14px; } @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {#edit-buttons .residential .item-icon::after {background-image: url(//editor-assets.waze.com/beta/img/toolbar@2xcd8b2ab08e978d00eeee7817e1a0edda.png); background-size: 99px 87px; } }',
'.makePrimary {border:1px solid gray; display:inline-block; cursor:pointer; margin-left:5px; border-radius:5px; padding:0px 4px 0px 4px; user-select: none; font-size:11px;}',
'.makePrimary:hover {border-color: #26bae8; color: #26bae8}',
'.photoViewerOptionsContainer { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-template-areas: "header header" "optionText optionSetting" "footer footer"}',