Get a sneak peek at whats next for Permanent Hazards on our April 7th Office Hours!
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Post Reply
Forum rules
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

DO NOT START a new thread unless it is about a new idea. Keep discussion of existing tools within the main thread for that tool.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

[Script] WME Place Interface Enhancements

Post by JustinS83
WME Place Interface Enhancements

Version: 2019.06.12.01

Greasyfork: https://greasyfork.org/en/scripts/26340-wme-place-interface-enhancements

Description: WMEPIE modifies the interface to provide additional functionality for Places. Options are available to show the size of area Places (configurable to display imperial and/or metric), display lock buttons on RPPs and show crosshairs in the information panel for a place so you can center & zoom on it (zoom level being configurable).
PIE.jpg
(32.2 KiB) Downloaded 14455 times
Newly created Places have additional options as well. Editing a RPPs address can happen automatically after creation (and focus in the House Number field) when created from the Residential Place option in the new Place menu (see below). The street name and city name can be pulled into a new Place's address automatically as well.

Modifying the Place menu itself is the most powerful feature of this script. The PIE menu allows you to customize each of the items in the new Place menu to be whatever category you desire! The category change happens real-time - when you change an option in the PIE settings the menu is updated with your selection; no need to refresh your window/browser. The new Place menu should look identical to stock WME (including Point/Area selection) with the exception of setting the categories that you actually want & use the most, instead of only parent categories!

With this customization, Residential is an option as well. Residential and Parking Lot, as should be expected, do not give the option to choose point or area - Residential are always points and Parking Lots are always areas.

While creating area Places, it is now possible to undo/redo node placements and finish the drawing without double clicking to place the final node. You will be able to undo down to the first node that was placed. Pressing Enter will finish drawing the place with the currently set nodes - ignoring the one that has not yet been placed.
Screenshot - 1_12_2017 , 11_10_04 AM.png
(16.78 KiB) Downloaded 15551 times
Dedicated shortcuts are provided for creating residential and parking lot places, due to request. The default shortcuts for these are Alt+r and Alt+p, respectively. These can be customized via the Keyboard shortcuts menu as seen below.
Screenshot - 1_16_2017 , 4_47_15 PM.png
(18.31 KiB) Downloaded 15211 times
Both the WME Area Place Size and WME Residential Place Option should be disabled/removed with this script installed.

Parking Space Estimator how to: here

Google Link Enhancer explained: here

Changelog:

Code: Select all

2019-06-12 - 2019.06.12.01 - Added support for saving/loading settings from the server.
2019-05-31 - 2019.05.31.01 - Disabling Google Link Enhancer when in Event mode
2019-03-25 - 2019.03.25.03 - Google Link Enhancer on-map color highlighting is restored (red/closed, teal/far from GM POI, etc.).
2019-03-25 - 2019.03.25.02 - Added an option to hide Place names for hidden Places (hidden by the filter or shortcut to hide area Places)
2019-03-25 - 2019.03.25.01 - "Enlarge geometry handles" now also enlarges the virtual geo handle.
2019-03-22 - 2019.03.22.01 - Added option to enlarge geometry handles
2019-03-18 - 2019.03.18.02 - Fixing the parking space estimator tool.  Making the area Place Waze coordinate parsing more versatile.
2019-03-14 - 2019.03.14.01 - Google Link Enhancer re-enabled with most functionality now working.
2019-02-18 - 2019.02.18.01 - Updating for latest WazeWrap & implementing WW's new Events
2019-02-14 - 2019.02.14.01 - Moving selecting the new RPP to after setting the city and street name due to bug in the interface where it does not update if the address is set via script.
2019-02-05 - 2019.02.05.01 - Bug fixes:
hours parser was not displaying
pla/copy/locator buttons were not displaying

Removed the Nav point link option that has been disabled for over a year: not going to re-implement
2019-01-28 - 2019.01.28.01 - Adding option to enable/disabling hiding the shopping / services sub category suggestions.
PUR handling in the Photo Viewer - this will allow handling of new Place PURs and picture PURs
2019-01-22 - 2019.01.22.01 - Removing RPP lock levels and EEP jump button - implemented natively in production as of 2019-01-22
2019-01-17 - 2019.01.17.01 - Updating Google Link Enhancer - now draws a line and highlights the Places with the duplicated Google link
Adding hiding of the suggested categories when the category is set to Shopping / Services
No longer displaying Places in the Photo Viewer that are outside of your editable area
2019-01-08 - 2019.01.08.01 - Disabling some features in beta that were implemented natively
2018-12-15 - 2018.12.15.01 - Added phase 1 of whitelist support
2018-12-03 - 2018.12.03.01 - Adding option for preventing the Photo Viewer display from re-flowing as items are deleted & prettying up the Photo Viewer settings panel a little
2018-11-27 - 2018.11.27.01 - Fixed the new Places layer, broken due to WME update.  Released the Photo Viewer tool.
2018-08-21 - 2018.08.21.01 - Some Geometry support added for MCs
2018-08-20 - 2018.08.20.01 - Intermediate release with Place geometry window
2018-06-06 - 2018.06.06.01 - Adding the ability to simplify the Place's geometry (with accompanying keyboard shortcut)

Adding shortcuts for all of the new Place menu options
2018-06-07 - 2018.06.07.01 - Simplify factor is now hooked up to save/load and is used in the simplification algorithm.
2018-05-22 - 2018.05.22.01 - Added a button to clear area Place geometry.
2018-05-18 - 2018.05.18.01 - Orthogonalize! Rotate! Resize! Woo!  All these are now possible for area Places in the Geometry section (Woo not included).
2018-05-14 - 2018.05.14.01 - Added an option to hide the Payment Type section on parking lots when the Cost is set to Free.
2018-05-08 - 2018.05.08.01 - Added a "Make primary" button next to alt names that swaps the alt and the primary names.
2018-04-16 - 2018.04.16.01 - Adding option to display the pending PUR for a Place upon Place selection
2018-03-12 - 2018.03.12.01 - Implemented MapOMatic's Google Link Enhancer library
2018-02-13 - 2018.02.13.01 - The entryExitPoint automatically created by PIE is now adjustable before saving the newly created RPP.
2018-01-16 - 2018.01.16.02 - Implementing the WMEPH hours parser.  Woo!  In collaboration with MapOMatic, WMEPH and PIE will now share the hours parser library.  First step in moving some WMEPH features into PIE.
2017-12-06 - 2017.12.06.01 - Enabling the Residential Place layer when creating a RPP from the PIE new Place menu
2017-12-01 - 2017.12.01.01 - Fixing a bug in WME beta where new RPPs couldn't pull the closest segement's name or city & it couldn't automatically edit the RPP after creation due to a timing issue with some backend objects.
2017-11-27 - 2017.11.27.01 - Place filtering - Can set a regex filter to hide all Places where the name matches the filter, or only show Places where the name matches the filter.
2017-11-24 - 2017.11.24.01 - Removed entryexitpoint linking - a recent WME update changed something and it is no longer functioning correctly and I haven't been able to get it working again.
2017-10-29 - 2017.10.29.01 - Various bug fixes over the past several days - exiting HN edit mode was rebuilding the stock Place menu, Place names would not show for some people
2017-10-26 - 2017.10.26.01 - Various bug fixes
2017-10-24 - 2017.10.24.01 - Updated to work with the recent WME update + new script version numbering scheme.
2017-08-30 - 1.02.20 - Shortcut (ctrl+shift+a) added to toggle hiding/displaying area places (thanks tonestertm for the suggestion!)
2017-08-26 - 1.02.17 - External providers section hidden for <= R2 editors since it is an R3+ feature
2017-08-15 - 1.02.11 - Added nav point linking to point Places
2017-07-27 - 1.02.10 - Bugfix: Parking Space Estimator tool. Feature: Adding Map Comment geometry reshaping back in
2017-07-26 - 1.02.09 - RPP now create an entryExitPoint upon creation
2017-07-21 - 1.02.07 - Website label is now a clickable link to launch the set website
2017-07-20 - 1.02.06 - Closest Segment line should now find FW segments
2017-06-30 - 1.02.04 - Display the Closest Segment line when the Place is selected
2017-06-28 - 1.02.02 - Added an option for displaying the nav point and closest segment lines when hovering over a Place
2017-06-23 - 1.02.00 - Parking Space Estimator tool released.  Fixed various small bugs
2017-06-13 - 1.01.11 - Prev/Next buttons on image dialog
2017-06-09 - 1.01.10 - Added delete button to Place image dialog
2017-06-05 - 1.01.09 - Added option to move the HN entry before the Street entry in the address edit panel.  "Free" cost type is selected by default when creating a PLA using the PLA button. 
2017-06-02 - 1.01.08 - Added option to move the address to the top of the properties panel
2017-05-18 - 1.01.06 - Added option to force a production PL when copying the PL from the crosshair.
2017-05-10 - 1.01.02 - Choose your own Place name font look!  Ability to customize Place name font color, size, border size, and border color added.
2017-05-05 - 1.01.00 - Je parle français!  French translations added.  Changed the Place name text so it is hopefully easier on the eyes.  Pressing CTRL+C over the crosshair on a selected place will copy the PL for that Place centered on screen, at the zoom level defined in settings.  Starting to create a PLA will force that layer on.
2017-04-29 - 1.00.04 - Added option to display a clear button for the description box
2017-04-25 - 1.00.00 - Translation support based upon WME Language setting. Spanish Latin America translations added.
2017-04-21 - 0.9.15 - Added separate option for displaying PLA names
2017-04-18 - 0.9.13 - Added the ability to display a tooltip with the External Provider information
2017-04-17 - 0.9.12 - Bug fixes - When copying a Place, the street name was not copying and PLA attributes were not copying.
2017-04-13 - 0.9.11 - Added the ability to copy a Place!  The copied Place will have "(copy)" appended to the name (you can't have two of the same places too close to each other) and all properties of the place should be copied over (except images and the nav point for area places).
Fixed a couple bugs and other small tweaks.
2017-04-11 - 0.9.02 - Area places will display their name down at zoom 3+, place points at zoom 5+.  RPPs will display the HN for the name.  If an actual name is assigned to the RPP, it will be displayed after the HN
2017-04-10 - 0.9.00 - Added ability to display Place names
2017-04-05 - 0.8.04 - Removed copying url and phone from the Place when using the PLA button.  Added the ability to create the suggested PLA area from Missing Parking Lot MPs
2017-03-27 - 0.8.01 - Added Parking Lot Button which will display on places, and aide in the creation of single-business-single-lot PLAs.
2017-03-24 - 0.8.0.1 - (Beta only) Added flagging for Places using the old hospital category
2017-03-23 - 0.7.8 - Compatibility tweaks for recent WME changes.  Added crosshair for RPPs
2017-03-08 - 0.7.7.7 - Place category translations
2017-03-08 - 0.7.7.6 - Fixed a bug where the RPP lock buttons were being attached more than once due to new a new beta feature.
2017-01-30 - 0.7.7 - Added an option to ignore PLRs & unnamed PRs when creating new Places and using the closest segment's name and/or city.
2017-01-27 - 0.7.6 - Added an option to display the Place categories as buttons about the Categories entry, including a button to clear the current categories. Parking lot and residential will not display as a button due to these types being unique.
2017-01-26 - 0.7.5 - Added an option to display a search button next to a Place's address which will load the address into the search box.
2017-01-25 - 0.7.4 - Added category icons to the Place menu.  Each selected place will display the icon for its parent category.  Added an option for new places to pull the city name from the segment's alt name when the primary is set to "No city".
2017-01-16 - 0.7.3 - Added dedicated shortcuts for creating residential Places and Parking Lot Places.  The default shortcuts are Alt+r & Alt+p, respectively.  These can be customized via the Keyboard shortcuts menu.
2017-01-15 - 0.7.0 - Added a default lock level option when creating new places.
2017-01-12 - 0.6.0 - Added support for ctrl+z (undo), ctrl+y (redo) & Enter while creating an area place.  Undo will remove the last set node, redo will add it back in.  Enter will create the Place with the current set geometry, not including the currently un-drawn point.
2017-01-12 - Initial release
JustinS83  
Waze Global Champs
Waze Global Champs
Posts: 1463
Has thanked: 215 times
Been thanked: 2389 times

POSTER_ID:17015339

1

Send a message
Last edited by JustinS83 on Mon Mar 25, 2019 7:07 pm, edited 92 times in total.

Post by junyianl
jm6087 wrote: PPs are hidden by native WME at are certain zoom level so PIE can't interact with them anyway. Area Places are size dependent for which zoom they are hidden at.
Oh! I never noticed that. I was up to zoom 4 and I felt the PPs are already cluttering the map too much. But never ventured to zoom 3 and beyond. Thanks for the info!
junyianl
Posts: 11
Has thanked: 4 times
Been thanked: 5 times
Send a message

Post by junyianl
Kartografer wrote:Toolbox can change your point place display threshold from Z5 to Z3. Are you using it?
Dang, I never noticed this option! I've unchecked it and it's working great for me now.

Thanks guys. Great help!
junyianl
Posts: 11
Has thanked: 4 times
Been thanked: 5 times
Send a message

Post by junyianl
Root9B wrote: Fri Dec 31, 2021 12:13 pm
jm6087 wrote: Sat Oct 02, 2021 11:17 am
reivaxX162 wrote: Sat Oct 02, 2021 4:05 am Hi all. I'm having issues with using the text box to add the opening hours for places. I was advised by a fellow editor that this issue was fixed already. I'm on v2021.07.27.01 and using Google Chrome.
For troubleshooting purposes, I have already uninstalled/reinstalled PIE, turned off all other WME scripts and still have issues.
When entering text and pressing "add hours", I get the following errors in the console

Thanks in advance!

Screenshot 2021-10-02 140329.png
(MOD NOTE: Placed attachment inline so it can be seen)

 
Not able to see the attachment yet. Can you provide the exact text you are entering and if copying from a website, can you provide a link to where you are copying the text from?

 
I'm experiencing a similar issue when pasting hours and observed the following error detail logged in the console of Google Chrome.  The place hours appear to remain the same when the error is triggered.

Code: Select all

02:27:29.458 userscript.html?name=WME%20Place%20Interface%20Enhancements.user.js&id=cc99ac30-f040-4a1d-8dd3-726b5f6c44dd:5120 Uncaught TypeError: Cannot read properties of undefined (reading 'map')
    at addHours (userscript.html?name=WME%20Place%20Interface%20Enhancements.user.js&id=cc99ac30-f040-4a1d-8dd3-726b5f6c44dd:5120)
    at HTMLInputElement.eval (userscript.html?name=WME%20Place%20Interface%20Enhancements.user.js&id=cc99ac30-f040-4a1d-8dd3-726b5f6c44dd:5081)
    at HTMLInputElement.dispatch (third_party-fef3bbf7c1b76db89e6b.js.gz:2)
    at HTMLInputElement.g.handle (third_party-fef3bbf7c1b76db89e6b.js.gz:2)
addHours @ userscript.html?name=WME%20Place%20Interface%20Enhancements.user.js&id=cc99ac30-f040-4a1d-8dd3-726b5f6c44dd:5120
eval @ userscript.html?name=WME%20Place%20Interface%20Enhancements.user.js&id=cc99ac30-f040-4a1d-8dd3-726b5f6c44dd:5081
dispatch @ third_party-fef3bbf7c1b76db89e6b.js.gz:2
g.handle @ third_party-fef3bbf7c1b76db89e6b.js.gz:2
​​​​​​Sample hours text (sourced from https://www.coldstonecreamery.com/stores/21131)

Code: Select all

Mon 12:00PM - 9:30PM
Tue 12:00PM - 9:30PM
Wed 12:00PM - 9:30PM
Thu 12:00PM - 9:30PM
Fri 12:00PM - 11:00PM
Sat 12:00PM - 11:00PM
Sun 12:00PM - 9:30PM

 
I'm seeing the same too, and so are a few others within the Malaysia community. But anyway, after some debugging I managed to pinpoint the issue to the lines 1494 and 1497 (assuming you're using version 2021.09.18.01). Commenting out these 2 line fixes the issue and confirmed by at least 1 other person. But I'm not sure if it breaks for users who doesn't have the problem initially.

Hope this helps.
 
junyianl
Posts: 11
Has thanked: 4 times
Been thanked: 5 times
Send a message

Post by JustinS83
Updated to v 0.6.0 - includes functionality to undo & redo area place node creation and support for Enter to finish the creation of the Place.
JustinS83  
Waze Global Champs
Waze Global Champs
Posts: 1463
Has thanked: 215 times
Been thanked: 2389 times
Send a message

Post by JustinS83
Update released - version 0.6.1

Fixed a bug that would cause RPPs to not automatically enter address edit mode if they were placed when no segments were visible on screen.
JustinS83  
Waze Global Champs
Waze Global Champs
Posts: 1463
Has thanked: 215 times
Been thanked: 2389 times
Send a message

Post by JustinS83
Update released - version 0.7.1

Added a default lock level for new places & some small bug fixes.
JustinS83  
Waze Global Champs
Waze Global Champs
Posts: 1463
Has thanked: 215 times
Been thanked: 2389 times
Send a message

Post by JustinS83
Update released - version 0.7.3

Adds shortcuts for creating residential Places and parking lot area Places. See changelog for further detail.
JustinS83  
Waze Global Champs
Waze Global Champs
Posts: 1463
Has thanked: 215 times
Been thanked: 2389 times
Send a message

Post by JustinS83
AlanOfTheBerg wrote:I don't see the ability to add items to the Place menu. I know it goes to 11, but I want more. :) Under the previous incarnation of the RPP Option script, it added Residential to the list.
Residential is an option in the list, or you can use the configurable shortcut (alt+r by default)
JustinS83  
Waze Global Champs
Waze Global Champs
Posts: 1463
Has thanked: 215 times
Been thanked: 2389 times
Send a message

Post by JustinS83
AlanOfTheBerg wrote:
JustinS83 wrote:Residential is an option in the list, or you can use the configurable shortcut (alt+r by default)
Yes, I see that. But the ability to add more items would be nice. :D
Already on the to-do list :)
JustinS83  
Waze Global Champs
Waze Global Champs
Posts: 1463
Has thanked: 215 times
Been thanked: 2389 times
Send a message