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 m4rc072
When I use this script I have a BUG
All Place don't move when I move the Map or zoom in or out.
look video at 0.18 with WME PIE active https://drive.google.com/file/d/1QCHmMm ... a8jxq/view
m4rc072
Waze Local Champs
Waze Local Champs
Posts: 1654
Has thanked: 193 times
Been thanked: 159 times
Send a message

Post by m4rc072
I have this error in prod and beta editor

Code: Select all

Uncaught (in promise) TypeError: Cannot read property 'backgroundGraphic' of undefined
    at initialize.eraseGeometry (vendor-e7e8255ff94a0f574f65.js:73)
    at initialize.eraseFeatures (vendor-e7e8255ff94a0f574f65.js:73)
    at initialize.removeFeatures (vendor-e7e8255ff94a0f574f65.js:73)
    at t.unselectFeature (vendor-e7e8255ff94a0f574f65.js:73)
    at t.destroy (app-1163a8649b7109b29781.js:1)
    at app-1163a8649b7109b29781.js:1
    at <anonymous>

Code: Select all

Uncaught TypeError: Cannot read property 'graphicZIndex' of undefined
    at initialize.getZIndex (vendor-0ee1287518b8bfe18e82.js:73)
    at Object.Z_ORDER (vendor-0ee1287518b8bfe18e82.js:73)
    at initialize.Z_ORDER_DRAWING_ORDER [as compare] (vendor-0ee1287518b8bfe18e82.js:73)
    at initialize.insert (vendor-0ee1287518b8bfe18e82.js:73)
    at initialize.redrawNode (vendor-0ee1287518b8bfe18e82.js:73)
    at initialize.drawGeometry (vendor-0ee1287518b8bfe18e82.js:73)
    at initialize.drawFeature (vendor-0ee1287518b8bfe18e82.js:73)
    at initialize.drawFeature (vendor-0ee1287518b8bfe18e82.js:73)
    at initialize.moveTo (vendor-0ee1287518b8bfe18e82.js:73)
    at initialize.moveTo (vendor-0ee1287518b8bfe18e82.js:73)
getZIndex @ vendor-0ee1287518b8bfe18e82.js:73
Z_ORDER @ vendor-0ee1287518b8bfe18e82.js:73
Z_ORDER_DRAWING_ORDER @ vendor-0ee1287518b8bfe18e82.js:73
insert @ vendor-0ee1287518b8bfe18e82.js:73
redrawNode @ vendor-0ee1287518b8bfe18e82.js:73
drawGeometry @ vendor-0ee1287518b8bfe18e82.js:73
drawFeature @ vendor-0ee1287518b8bfe18e82.js:73
drawFeature @ vendor-0ee1287518b8bfe18e82.js:73
moveTo @ vendor-0ee1287518b8bfe18e82.js:73
moveTo @ vendor-0ee1287518b8bfe18e82.js:73
pan @ vendor-0ee1287518b8bfe18e82.js:73
panMapDone @ vendor-0ee1287518b8bfe18e82.js:73
callback @ vendor-0ee1287518b8bfe18e82.js:73
dragend @ vendor-0ee1287518b8bfe18e82.js:73
mouseup @ vendor-0ee1287518b8bfe18e82.js:73
triggerEvent @ vendor-0ee1287518b8bfe18e82.js:73
handleBrowserEvent @ vendor-0ee1287518b8bfe18e82.js:73
(anonymous) @ vendor-0ee1287518b8bfe18e82.js:73
m4rc072
Waze Local Champs
Waze Local Champs
Posts: 1654
Has thanked: 193 times
Been thanked: 159 times
Send a message

Post by m4rc072
Ok I have found the problem, some other extension of Chrome goes into conflict, now I am looking for what it's.
[edit] I have found which extension created the problem, is this Emoji for Google Chrome
m4rc072
Waze Local Champs
Waze Local Champs
Posts: 1654
Has thanked: 193 times
Been thanked: 159 times
Send a message

Post by m4rc072
Can you check this out please?
in the Map Comment panel there's the options to change geometry like a Place, but doesn't works

when I try to load a new geometry by WKT or other is missing the apply button in the panel
m4rc072
Waze Local Champs
Waze Local Champs
Posts: 1654
Has thanked: 193 times
Been thanked: 159 times
Send a message

Post by MajkiiTelini
Distance showed by Google Link Enhancer is wrong - it is the distance on flat Earth. But repair is simple.
Old code (lines 512+513):

Code: Select all

lsLine = new OL.Geometry.LineString([splitPoints.components[0], splitPoints.components[1]]);
let distance = poiPt.distanceTo(placePt);
New code:

Code: Select all

let distance = lsLine.getGeodesicLength(new OL.Projection("EPSG:3857"))
lsLine = new OL.Geometry.LineString([splitPoints.components[0], splitPoints.components[1]]);
Please merge it into code of GLE. Thanks!
MajkiiTelini
Area Manager
Area Manager
Posts: 855
Has thanked: 101 times
Been thanked: 251 times
Send a message

Post by MapOMatic
Thanks for incorporating that, Justin!

A word of caution: Make sure the Google link was actually linked to the correct place, then verify the place was actually closed (do not rely on this flag as your only source -- Google is not perfect). Follow your local guidance for handling closed places. For USA: https://wazeopedia.waze.com/wiki/USA/Places#Closed
MapOMatic
Country Manager
Country Manager
Posts: 495
Has thanked: 250 times
Been thanked: 871 times
Send a message