From 8f97dde5feb8087fb58b2649031db194d685bd6a Mon Sep 17 00:00:00 2001 From: mapomatic Date: Wed, 29 Jun 2022 15:42:16 -0400 Subject: [PATCH 1/2] Update WME-Place-Harmonizer.js Fix "Change to point" and "Change to area" buttons after latest WME UI update broke them. --- WME-Place-Harmonizer.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/WME-Place-Harmonizer.js b/WME-Place-Harmonizer.js index 2e5cc35..7d0c410 100644 --- a/WME-Place-Harmonizer.js +++ b/WME-Place-Harmonizer.js @@ -2299,9 +2299,9 @@ let Flag = { const venue = getSelectedVenue(); if (venue.attributes.categories.includes('RESIDENCE_HOME')) { const centroid = venue.geometry.getCentroid(); - updateFeatureGeometry(venue, new OpenLayers.Geometry.Point(centroid.x, centroid.y)); + // updateFeatureGeometry(venue, new OpenLayers.Geometry.Point(centroid.x, centroid.y)); } else { - $('.venue label.point-btn').click(); + $('wz-button.geometry-type-control-point').click(); } harmonizePlaceGo(venue, 'harmonize'); // Rerun the script to update fields and lock } @@ -2314,8 +2314,9 @@ let Flag = { // eslint-disable-next-line class-methods-use-this action() { + $('wz-button.geometry-type-control-area').click(); const venue = getSelectedVenue(); - updateFeatureGeometry(venue, venue.getPolygonGeometry()); + // updateFeatureGeometry(venue, venue.getPolygonGeometry()); harmonizePlaceGo(venue, 'harmonize'); } }, From 0a54918fb31437cae4a2ee19d191bc5f65c1ec2d Mon Sep 17 00:00:00 2001 From: mapomatic Date: Wed, 29 Jun 2022 15:43:56 -0400 Subject: [PATCH 2/2] Update WME-Place-Harmonizer.js bump version # --- WME-Place-Harmonizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WME-Place-Harmonizer.js b/WME-Place-Harmonizer.js index 7d0c410..727c426 100644 --- a/WME-Place-Harmonizer.js +++ b/WME-Place-Harmonizer.js @@ -2,7 +2,7 @@ // ==UserScript== // @name WME Place Harmonizer Beta // @namespace WazeUSA -// @version 2022.06.29.001 +// @version 2022.06.29.002 // @description Harmonizes, formats, and locks a selected place // @author WMEPH Development Group // @include /^https:\/\/(www|beta)\.waze\.com\/(?!user\/)(.{2,6}\/)?editor\/?.*$/