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 by rickzabel
helifino206 wrote:Feature request: preambles and signatures (check-box optional, perhaps)

If I'm auto-commenting on someone else's contact, I'd love for it to add 'Another editor here' to the top, but not to my own.
I'd also like to add the 'respond in app' and 'open to any' on the bottom of first-contact messages, while still preserving the boilerplate links.

The necessary variables are already in place, no?
since you name is sent with your comment people can figure out you are another editor..
last i checked not everyone gets alerted in the app, email, etc...
as for 'open to any' i will only every support text that is relevant to the wazers and not other editors!
rickzabel
Map Editor - level 3
Map Editor - level 3
Posts: 222
Been thanked: 277 times
Send a message
https://www.waze.com/wiki/images/5/5a/W ... M_only.png
Chicago Illinois Suburbs , Main areas Downers Grove, Naperville, and Auroa
https://wiki.waze.com/wiki/User:Rickzabel

Post by rickzabel
helifino206 wrote:New bug:
Selecting a response sometimes doesn't do anything until I click a few different responses, then one works and it auto-centers and I can then go back to the original response I wanted to send.
i can not reproduce this, what browser, browser version, and OS are you using?
rickzabel
Map Editor - level 3
Map Editor - level 3
Posts: 222
Been thanked: 277 times
Send a message
https://www.waze.com/wiki/images/5/5a/W ... M_only.png
Chicago Illinois Suburbs , Main areas Downers Grove, Naperville, and Auroa
https://wiki.waze.com/wiki/User:Rickzabel

Post by rickzabel
helifino206 wrote:I have yet to encounter the click issue since the upgrade, but auto-centering is still unreliable.

Linux Mint 17, Google Chrome 48.0.2564.97 from package google-chrome-stable.

WME auto now automatically centers on a UR when clicked, meaning we should not be using the option in in URC to autocenter. be aware If you are running URO it disables auto centering. there used to be a checkbox for this but i can't seem to find it.
rickzabel
Map Editor - level 3
Map Editor - level 3
Posts: 222
Been thanked: 277 times
Send a message
https://www.waze.com/wiki/images/5/5a/W ... M_only.png
Chicago Illinois Suburbs , Main areas Downers Grove, Naperville, and Auroa
https://wiki.waze.com/wiki/User:Rickzabel

Post by rickzabel
n4dog wrote:
KuniaKid wrote:It seems to be broken for beta. Works fine in prod.
I was just coming to comment of this issue. Still not able to use it in beta :(
should be working in both waze renamed a function.
rickzabel
Map Editor - level 3
Map Editor - level 3
Posts: 222
Been thanked: 277 times
Send a message
https://www.waze.com/wiki/images/5/5a/W ... M_only.png
Chicago Illinois Suburbs , Main areas Downers Grove, Naperville, and Auroa
https://wiki.waze.com/wiki/User:Rickzabel

Post by rickzabel
AquaZR1 wrote:I'm guessing an update is coming to handle the new version of WME? Looks like URComments is not fully loading.

Thanks
already done, update
rickzabel
Map Editor - level 3
Map Editor - level 3
Posts: 222
Been thanked: 277 times
Send a message
https://www.waze.com/wiki/images/5/5a/W ... M_only.png
Chicago Illinois Suburbs , Main areas Downers Grove, Naperville, and Auroa
https://wiki.waze.com/wiki/User:Rickzabel

Post by rickzabel
n4dog wrote:No longer working on regular WME now :(
what version are you on V1.6.1? any details what is not working?
rickzabel
Map Editor - level 3
Map Editor - level 3
Posts: 222
Been thanked: 277 times
Send a message
https://www.waze.com/wiki/images/5/5a/W ... M_only.png
Chicago Illinois Suburbs , Main areas Downers Grove, Naperville, and Auroa
https://wiki.waze.com/wiki/User:Rickzabel

Post by rickzabel
roadtechie wrote:Rick, the "Auto zoom in on new UR" feature is still zooming into the wrong location on the map. Just wanted to make sure you were aware. This is happening in production and beta.
it seems that whenever URO is enabled/installed the 'auto zoom in' on URC does not work correctly. unchecking enabled after UROverview Plus 3.71 restores the auto zoom

i am pulling the long at lat from waze and using their set center command to zoom in.

if you want to test; replace the urid with one that is on screen and then paste the following code into console. or goto this link and then run the code from console.

https://www.waze.com/editor/?env=usa&lo ... ueFilter=0

var zoom = 5;
var urID = 5033746;
var x = Waze.model.mapUpdateRequests.objects[urID].attributes.geometry.x;
var y = Waze.model.mapUpdateRequests.objects[urID].attributes.geometry.y;
console.log("gotoURById: " + "x: " + x + "y: " + y + "zoom: " + zoom);
Waze.map.setCenter([x, y], zoom);

i started looking into this when you posted your comment and it took this long to figure out what was the cause. I dont know when / if i will look into this further...
rickzabel
Map Editor - level 3
Map Editor - level 3
Posts: 222
Been thanked: 277 times
Send a message
https://www.waze.com/wiki/images/5/5a/W ... M_only.png
Chicago Illinois Suburbs , Main areas Downers Grove, Naperville, and Auroa
https://wiki.waze.com/wiki/User:Rickzabel

Post by rickzabel
Twister-UK wrote:If you're running that code when the UR marker is clicked (and therefore highlighted), it'll fail with URO+ active because the geometry.x attribute no longer points to the correct location...

To work around the problem where two or more markers are stacked at the same coordinates and WME always opens up the editing panel for the topmost marker even if you specifically request it opens up the panel for one of the underneath markers, URO started allocating unique geometry.x values to the UR markers - this allowed the unstacked markers to be selected correctly, because WME would no longer see multiple markers at the same coordinates.

After WME then started doing its annoying auto-centre thing, it became apparent that this workaround for stacked markers also acted as a way to block auto-centre too, and so I modified URO so that it would always apply this geometry.x adjustment whenever a UR marker was highlighted, even if it wasn't part of a marker stack.

In order to re-enable centering on the UR when the crosshairs icon was clicked in the edit panel, URO also saves a copy of the unadjusted geometry.x value into a temporary geometry.realX attribute, and restores this back into geometry.x whenever the marker is unhighlighted (e.g. when you've moused-over the edit panel). This also means that if you try to centre on the marker via any other means when it isn't highlighted (e.g. clicking on a feed entry for that UR), WME will also be able to centre on it correctly.


So to get your centering code working ok when URO+ is also enabled, what you should do is replace the var x = ... line above with:

Code: Select all

var x;
if(Waze.model.mapUpdateRequests.objects[urID].attributes.geometry.realX === undefined)
{
   x = Waze.model.mapUpdateRequests.objects[urID].attributes.geometry.x;
}
else
{
   x = Waze.model.mapUpdateRequests.objects[urID].attributes.geometry.realX;
}
Thank you this should fix both the auto zoom and auto center options.
rickzabel
Map Editor - level 3
Map Editor - level 3
Posts: 222
Been thanked: 277 times
Send a message
https://www.waze.com/wiki/images/5/5a/W ... M_only.png
Chicago Illinois Suburbs , Main areas Downers Grove, Naperville, and Auroa
https://wiki.waze.com/wiki/User:Rickzabel

Post by rickzabel
houseofmiracle wrote:Hi, I have a question

How to set the position of UR is not in the middle of the screen when we click?
I have not checklist "Auto center on UR"
http://s14.postimg.org/e78l51325/autocenter.png

Thank you
Waze now auto centers on every UR, install URO+ to stop the auto centering.
rickzabel
Map Editor - level 3
Map Editor - level 3
Posts: 222
Been thanked: 277 times
Send a message
https://www.waze.com/wiki/images/5/5a/W ... M_only.png
Chicago Illinois Suburbs , Main areas Downers Grove, Naperville, and Auroa
https://wiki.waze.com/wiki/User:Rickzabel

Post by rickzabel
GiancarloG wrote:Great and very useful script! Just a question though... (and sorry for not being able to go through all the pages in the thread due to lack of time but...)

Is it possible to have custom comments? I use the spanish version but some of the preloaded comments may sound a bit strange, at least not from someone in my country. If no custom comments are possible, would it be possible to modify the script so that I can have more colloquial comments?

Thanks!
If you want we can modify the spanish list to be an Ecuador list. otherwise install the custom comments file and manually edit the comments in that script. https://greasyfork.org/en/scripts/6236- ... ustom-list
rickzabel
Map Editor - level 3
Map Editor - level 3
Posts: 222
Been thanked: 277 times
Send a message
https://www.waze.com/wiki/images/5/5a/W ... M_only.png
Chicago Illinois Suburbs , Main areas Downers Grove, Naperville, and Auroa
https://wiki.waze.com/wiki/User:Rickzabel