[Script] WME Place Interface Enhancements

Create Residential Place Point functionality isn’t working – console error follows:

app-b74549ae3caa3221.js.gz:1 Uncaught TypeError: Cannot read properties of undefined (reading ‘geoJSONGeometry’)
at c (app-b74549ae3caa3221.js.gz:1:129677)
at new d (app-b74549ae3caa3221.js.gz:1:130124)
at new T (app-b74549ae3caa3221.js.gz:1:189057)
at createPlace (userscript.html?name=WME-Place-Interface-Enhancements.user.js&id=a5521725-bb88-4960-b15f-b7aa86c4e48b:7585:24)
at endPlacementMode (userscript.html?name=WME-Place-Interface-Enhancements.user.js&id=a5521725-bb88-4960-b15f-b7aa86c4e48b:7555:9)
at HTMLDivElement.<anonymous> (userscript.html?name=WME-Place-Interface-Enhancements.user.js&id=a5521725-bb88-4960-b15f-b7aa86c4e48b:7438:50)
at HTMLDivElement.dispatch (third_party-84fdfc4bc5c753fc.js.gz:2:1867511)
at g.handle (third_party-84fdfc4bc5c753fc.js.gz:2:1865502)

I have a bug for 2023.11.15.01 update . It’s impossible to select segments on the map.

Most likely it is not related to PIE, it is related to number of layers you have active.
Go to your console (F11) and in the console field enter W.map.layers.length
What number do you get?

Just curious, Is the Copy Place function coming back any time soon? I kinda miss that function dearly haha! Is there something in the recent versions preventing it from working?

Not sure if it’s coming back, but I enabled the “Show copy Place button” and now I cannot disabled it. If I uncheck it, the copy place button remains and after a refresh the option is checked again in PIE settings.

Thanks for the update. RPP creation is no longer painful.

I have 72/81 layers right now. If I activate PIE (and thus remove my ability to select any segments) my layers jumps up to 84. I’ve learned to just live with out PIE, which is unfortunate, because I loved the functionality. Not being able to select any segments when it’s active is a dealbreaker. And not being able to have any other scripts active at the same time, because PIE needs to take up 12 layers slots makes it pretty unusable.

Wow, 12 that is a lot more than the layers PIE uses for me. For me it uses 5 layers, which is still tied (with USGB) for the most layers of a script that I use. Maybe see if unchecking some settings will reduce the load.

Incorrect, PIE only creates 6 layers.

Sorry, I didn’t see your message.
PIE disabled : i have 70 layers
PIE enabled : 85 layers

Actually, my original statement was completely correct. PIE was turned off - 72 layers. Enabled PIE and changed nothing else, refreshed - 84 layers. I said what the layers were without it and with it, all else remaining equal. Interpret it how you want.

This is something strange on your end. With my normal settings I get 5 layers when running PIE. When I add an RPP the number goes up by 2. I haven’t found a combination to create more layers than that. It may be worth reinstalling PIE (or the dreaded clearing of cookies).

I might have to just suck it up and do it, but I’m not the only one having this issue per the other post reply about their layers.

It isn’t interpretation. “because PIE needs to take up 12 layers slots”. It doesn’t, it needs 6 layers based upon settings.

I just tested on my system.
Without PIE: 54 layers
With PIE: 59 layers

It isn’t a script issue, it’s a your computer issue.

I can’t get PIE to add more than 5 layers for me.

For those with the weird layer issues, perhaps check whether Tampermonkey is somehow loading PIE twice. I’ve seen that happen (although only on rare occasions and it’s not something I can reproduce).

In WME Prod, when I create a new RPP using the keyboard shortcut, my PIE options are recognized (the place is locked to R2, the closest street name is auto-filled, etc.). However, when I create a new RPP from the Places menu instead, these options are not implemented (the place is locked to R1 and has no street name).

See here: https://www.waze.com/forum/viewtopic.php?p=2365224#p2365224

The Place menu is completely native due to recent(ish) WME changes.

Would be a shame if it doesn’t return, it is super useful for me when recreating NPURs that I had to reject. Hopefully something changes and makes it easier to fix :frowning:

Hi,

PIE is not showing area size