Skip to content

Commit

Permalink
Merge pull request #416 from WazeDev/Beta
Browse files Browse the repository at this point in the history
Update WME-Place-Harmonizer.js
  • Loading branch information
mapomatic authored Jun 29, 2022
2 parents 9906daf + 0a54918 commit 7b7396f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions WME-Place-Harmonizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// ==UserScript==
// @name WME Place Harmonizer
// @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\/?.*$/
Expand Down Expand Up @@ -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
}
Expand All @@ -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');
}
},
Expand Down

0 comments on commit 7b7396f

Please sign in to comment.