',
//'',
'',
- '',
' ',
'',
``,
@@ -486,7 +485,6 @@ var UpdateObject, MultiAction;
setChecked('_cbShowPLSpotEstimatorButton', settings.ShowPLSpotEstimatorButton);
setChecked('_cbShowNavPointClosestSegmentOnHover', settings.ShowNavPointClosestSegmentOnHover);
setChecked('_cbShowClosestSegmentSelected', settings.ShowClosestSegmentSelected);
- setChecked('_cbNavLink', settings.NavLink);
setChecked('_cbEnableGLE', settings.EnableGLE);
setChecked('_cbOpenPUR', settings.OpenPUR);
setChecked('_cbHidePaymentType', settings.HidePaymentType);
@@ -736,7 +734,6 @@ var UpdateObject, MultiAction;
ShowPlaceLocatorCrosshair();
if(settings.ShowSearchButton)
ShowSearchButton();
- ShowNavPointLink();
if(settings.ShowParkingLotButton)
ShowParkingLotButton();
if(settings.ShowCopyPlaceButton)
@@ -803,43 +800,6 @@ var UpdateObject, MultiAction;
});
});*/
- //Always display the link when a point Place is selected, but default to un-linked
- W.selectionManager.events.register("selectionchanged", null, ShowNavPointLink);
- W.model.actionManager.events.register('afterundoaction', null, ShowNavPointLink);
- W.selectionManager.events.register('selectionchanged', null, ShowNavPointLink);
- W.model.venues.on('objectschanged', ShowNavPointLink);
-
- W.model.actionManager.events.register('afteraction', null, function(){
- ShowNavPointLink();
- if(WazeWrap.getSelectedFeatures().length > 0 && WazeWrap.getSelectedFeatures()[0].model.type == "venue" && WazeWrap.getSelectedFeatures()[0].model.isPoint()){
- if($('#placeNavLink').attr("class") == "fa fa-link fa-lg"){
- let myPlaceAttr = WazeWrap.getSelectedFeatures()[0].model.attributes;
- //We only want to do this if the last item changed is our selected Place && it was moved.
- if(W.model.actionManager.actions[W.model.actionManager.index].feature != undefined && (W.model.actionManager.actions[W.model.actionManager.index].feature.attributes.id == myPlaceAttr.id) && typeof W.model.actionManager.actions[W.model.actionManager.index].oldGeometry != "undefined"){
- if(WazeWrap.getSelectedFeatures()[0].model.attributes.entryExitPoints.length > 0){ //We only want to do this if there is an existing nav point
- let newAttr = {};
- let existingAttr = myPlaceAttr.entryExitPoints[0];
- if (existingAttr) {
- for (var prop in existingAttr) {
- if (existingAttr.hasOwnProperty(prop)){
- let value = existingAttr[prop];
- if (Array.isArray(value)) value = [].concat(value);
- newAttr[prop] = value;
- }
- }
- }
- newAttr._point = new OL.Geometry.Point(myPlaceAttr.geometry.x, myPlaceAttr.geometry.y);
- newAttr.__proto__.getPoint = function(){
- return this._point.clone();
- };
- W.model.actionManager.add(new UpdateObject(WazeWrap.getSelectedFeatures()[0].model, {'entryExitPoints': [newAttr]}));
- }
- //NewPlace.attributes.entryExitPoints.push({entry: true, exit: true, name:"", primary: false, point: new OL.Geometry.Point(pos.lon, pos.lat)})
- }
- }
- }
- });
-
//Obsoleted by WME update released 2017-10-24
/*var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
@@ -874,8 +834,8 @@ var UpdateObject, MultiAction;
registerEvents(AddMakePrimaryButtons);
AddMakePrimaryButtons();
-
- WazeWrap.Interface.ShowScriptUpdate("WME Place Interface Enhancements", GM_info.script.version, "No actual changes, I just wanted to show off the new Script Update dialog.
=-)", "https://greasyfork.org/en/scripts/26340-wme-place-interface-enhancements", "https://www.waze.com/forum/viewtopic.php?f=819&t=215990");
+
+ WazeWrap.Interface.ShowScriptUpdate("WME Place Interface Enhancements", GM_info.script.version, "Bug fixes for WME update:
Hours parser not displaying
PLA, copy & location buttons not displaying
Removed the Nav point link option - has been disabled for a long time and I have no intention of re-implementing
", "https://greasyfork.org/en/scripts/26340-wme-place-interface-enhancements", "https://www.waze.com/forum/viewtopic.php?f=819&t=215990");
}
function SetupPhotoViewer(){
@@ -1420,45 +1380,44 @@ var UpdateObject, MultiAction;
}
function AddHoursParserInterface(){
- if(WazeWrap.hasSelectedFeatures())
- if(WazeWrap.getSelectedFeatures()[0].model.type === "venue"){
- var $PIEHoursParser = $("
');
- $('#landmark-edit-general > form > div:nth-child(2) > i').after($crosshairs);
+ $('#landmark-edit-general > form > div:nth-child(1) > div:nth-child(2) > label').after($crosshairs);
}
$('#pieCrosshairs').click(function(){
CenterOnPlace(WazeWrap.getSelectedFeatures()[0].model, settings.PlaceZoom);
@@ -2572,13 +2497,12 @@ var UpdateObject, MultiAction;
var BusinessPLAMode = false;
function ShowParkingLotButton(){
$('#piePLAButton').remove();
-
if(WazeWrap.getSelectedFeatures().length > 0){
if(WazeWrap.getSelectedFeatures()[0].model.type === "venue"){
var $PLAButton;
if(!(_.contains(WazeWrap.getSelectedFeatures()[0].model.attributes.categories,"RESIDENCE_HOME") || _.contains(WazeWrap.getSelectedFeatures()[0].model.attributes.categories,"PARKING_LOT"))){
$PLAButton = $('
');
- $('#landmark-edit-general > form > div:nth-child(2) > i').after($PLAButton);
+ $('#landmark-edit-general > form > div:nth-child(1) > div:nth-child(2) > label').after($PLAButton);
$('#piePLAButton').click(function(){
if(!BusinessPLAMode){
@@ -2620,7 +2544,7 @@ var UpdateObject, MultiAction;
if(WazeWrap.getSelectedFeatures()[0].model.type === "venue" && WazeWrap.getSelectedFeatures()[0].model.attributes.categories.includes("PARKING_LOT")){
var $ParkingSpotEstimatorButton;
$ParkingSpotEstimatorButton = $('
#
');
- $('#landmark-edit-general > form > div:nth-child(2) > i').after($ParkingSpotEstimatorButton);
+ $('#landmark-edit-general > form > div:nth-child(1) > div:nth-child(2) > label').after($ParkingSpotEstimatorButton);
$('select[name="estimatedNumberOfSpots"]').before($ParkingSpotEstimatorButton.clone());
@@ -2963,7 +2887,7 @@ var UpdateObject, MultiAction;
var $PlaceCopyButton;
if(!_.contains(WazeWrap.getSelectedFeatures()[0].model.attributes.categories,"RESIDENCE_HOME")){
$PlaceCopyButton = $('
');
- $('#landmark-edit-general > form > div:nth-child(2) > i').after($PlaceCopyButton);
+ $('#landmark-edit-general > form > div:nth-child(1) > div:nth-child(2) > label').after($PlaceCopyButton);
$('#pieCopyPlaceButton').click(function(){
var PlaceObject = require("Waze/Feature/Vector/Landmark");
@@ -3636,7 +3560,6 @@ var UpdateObject, MultiAction;
ShowPLSpotEstimatorButton: settings.ShowPLSpotEstimatorButton,
ShowNavPointClosestSegmentOnHover: settings.ShowNavPointClosestSegmentOnHover,
ShowClosestSegmentSelected: settings.ShowClosestSegmentSelected,
- NavLink: settings.NavLink,
ToggleAreaPlacesShortcut: settings.ToggleAreaPlacesShortcut,
EnableGLE: settings.EnableGLE,
OpenPUR: settings.OpenPUR,
@@ -3770,8 +3693,6 @@ var UpdateObject, MultiAction;
PSEDisplayButtonTitle: "Opens the Parking Space Estimator tool",
ShowNavPointClosestSegmentOnHover: "Display the nav point and closest segment line on hover",
ShowClosestSegmentSelected: "Display a line from the nav point to the point on the closest segment",
- NavLink: "Link nav point",
- NavLinkTitle: "Enables the nav point link on all point Places. When linked, the nav point will move to the location of the point Place when the Place is moved",
EnableGLE: "Enable Google Link Enhancer",
EnableGLETitle: "Highlights closed Google links in red, linked Google POIs > 400m from the Waze Place in teal, invalid Google links in magenta, Google POIs linked multiple times in orange, already linked POI in gray (autocomplete menu)",
OpenPUR: "Automatically open PUR",
@@ -3890,8 +3811,6 @@ var UpdateObject, MultiAction;
PSEDisplayButtonTitle: "Opens the Parking Space Estimator tool",
ShowNavPointClosestSegmentOnHover: "Display the nav point and closest segment line on hover",
ShowClosestSegmentSelected: "Display a line from the nav point to the point on the closest segment",
- NavLink: "Link nav point",
- NavLinkTitle: "Enables the nav point link on all point Places. When linked, the nav point will move to the location of the point Place when the Place is moved",
EnableGLE: "Habilitar mejoras en links de Google",
EnableGLETitle: "Resalta los GPIDs a lugares cerrados en rojo, GPIDs a mas de 400m del lugar en Waze en verde azulado, GPIDs no válidos en magenta, GPIDs vinculados varias veces en naranja, GPIDs ya vinculados en gris (menú de autocompletar)",
OpenPUR: "Automatically open PUR",
@@ -4010,8 +3929,6 @@ var UpdateObject, MultiAction;
PSEDisplayButtonTitle: "Ouvre le simulateur de places de stationnement",
ShowNavPointClosestSegmentOnHover: "Affiche une ligne entre le point d'entrée et le segment le plus proche",
ShowClosestSegmentSelected: "Affiche une ligne depuis le point d'entrée vers le point sur le segment le plus proche",
- NavLink: "Lier le point d'entrée",
- NavLinkTitle: "Active le lien de point d'entrée sur tous les lieux. Lorsqu'il est lié, le point de navigation se déplacera à l'emplacement du point Lieu lorsque le lieu est déplacé",
EnableGLE: "Activer le lien Google amélioré",
EnableGLETitle: "Met en évidence les liens Google fermés en rouge, les points d'intérêt Google liés se trouvant à plus de 400 m du Lieu Waze en bleu ciel, les liens Google non valides en magenta, les points d'intérêt Google liés plusieurs fois en orange, les points d'intérêt déjà liés en gris (menu de saisie semi-automatique)",
OpenPUR: "Ouverture automatique des PUR",