Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions WMEPIE.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name WME Place Interface Enhancements
// @namespace https://greasyfork.org/users/30701-justins83-waze
// @version 2026.06.09.01
// @version 2026.06.19.01
// @description Enhancements to various Place interfaces
// @include https://www.waze.com/editor*
// @include https://www.waze.com/*/editor*
Expand Down Expand Up @@ -50,7 +50,7 @@
let GLE;
let navPointManager = null;
var catalog = [];
const updateMessage = 'Updating to latest Hours Parser';
const updateMessage = 'Minor fix for default lock level of 1.';
var lastSelectedFeature;
const SCRIPT_VERSION = GM_info.script.version.toString();
const SCRIPT_NAME = GM_info.script.name;
Expand Down Expand Up @@ -2519,7 +2519,10 @@
venueId: newPlaceId,
});
}
sdk.DataModel.Venues.updateVenue({ venueId: newPlaceId, lockRank: Number(settings.DefaultLockLevel) });
try { // setting lock to value its already at causes error, so catch error here and ignore.
sdk.DataModel.Venues.updateVenue({ venueId: newPlaceId, lockRank: Number(settings.DefaultLockLevel) });
} catch (e) {}


const searchPoint = turf.centroid(geometry).geometry;
// The Skip PLR & Skip Unnamed PR settings were merged. Passing SkipPLR for both. I did not change the function in case they are split in the future.
Expand Down