[Script] WME Place Interface Enhancements

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.

Moderators: Unholy, bextein, Glodenox, JustinS83

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.

Re: [Script] WME Place Interface Enhancements

Postby m4rc072 » Thu Dec 28, 2017 4:56 pm

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
[ img ][ img ][ img ][ img ]
WAZE latest Beta, Android 9 on Honor 10
m4rc072
Waze Local Champs
Waze Local Champs
 
Posts: 1525
Joined: Thu Mar 01, 2012 12:21 pm
Location: Italy
Has thanked: 414 times
Been thanked: 380 times

Re: [Script] WME Place Interface Enhancements

Postby m4rc072 » Thu Dec 28, 2017 6:39 pm

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
[ img ][ img ][ img ][ img ]
WAZE latest Beta, Android 9 on Honor 10
m4rc072
Waze Local Champs
Waze Local Champs
 
Posts: 1525
Joined: Thu Mar 01, 2012 12:21 pm
Location: Italy
Has thanked: 414 times
Been thanked: 380 times

Re: [Script] WME Place Interface Enhancements

Postby m4rc072 » Fri Jan 24, 2020 12:11 pm

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
[ img ]
when I try to load a new geometry by WKT or other is missing the apply button in the panel
[ img ]
[ img ][ img ][ img ][ img ]
WAZE latest Beta, Android 9 on Honor 10
m4rc072
Waze Local Champs
Waze Local Champs
 
Posts: 1525
Joined: Thu Mar 01, 2012 12:21 pm
Location: Italy
Has thanked: 414 times
Been thanked: 380 times

Re: [Script] WME Place Interface Enhancements

Postby MajkiiTelini » Tue Feb 18, 2020 8:25 pm

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!
[ img ][ img ][ img ]
LC Czech Republic
MajkiiTelini
Area Manager
Area Manager
 
Posts: 634
Joined: Tue Sep 23, 2014 5:45 pm
Location: CZ
Has thanked: 123 times
Been thanked: 271 times

Re: [Script] WME Place Interface Enhancements

Postby MapOMatic » Mon Mar 12, 2018 5:43 pm

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
[ img ] [ img ]

AM Central KY | CM USA
MapOMatic
Country Manager
Country Manager
 
Posts: 345
Joined: Sat Jul 16, 2011 11:43 am
Location: Lexington, KY
Has thanked: 232 times
Been thanked: 650 times

Re: [Script] WME Place Interface Enhancements

Postby MapOMatic » Tue Mar 20, 2018 4:00 pm

I've noticed that the tooltips on the Google link fields don't always show. I haven't had time to track down exactly why yet.
[ img ] [ img ]

AM Central KY | CM USA
MapOMatic
Country Manager
Country Manager
 
Posts: 345
Joined: Sat Jul 16, 2011 11:43 am
Location: Lexington, KY
Has thanked: 232 times
Been thanked: 650 times

Re: [Script] WME Place Interface Enhancements

Postby MapOMatic » Mon Mar 26, 2018 8:17 pm

I've been chatting with B-ryYKA in Discord. I added a workaround in PIE v 2018.03.25.01 that I thought should solve his problem. However, it didn't appear to work initially but after a refresh or two, PIE started working again. So... still not 100% sure exactly why the fix didn't take right away, but hopefully it's solved now. I'm also not sure why some FF users are experiencing corrupted link caches. The workaround simply catches the error and empties the cache. Worst case, it just means more API calls for those specific users if it continues to happen.
[ img ] [ img ]

AM Central KY | CM USA
MapOMatic
Country Manager
Country Manager
 
Posts: 345
Joined: Sat Jul 16, 2011 11:43 am
Location: Lexington, KY
Has thanked: 232 times
Been thanked: 650 times

Re: [Script] WME Place Interface Enhancements

Postby MapOMatic » Thu Mar 14, 2019 5:42 pm

Still working with the Waze devs to see if we can restore the other missing map highlights:
- red: closed Google place
- cyan: Waze place is >1/4 mile from the linked Google place
- purple: Google place ID not found

Not certain yet if it'll be doable. Stay tuned...
[ img ] [ img ]

AM Central KY | CM USA
MapOMatic
Country Manager
Country Manager
 
Posts: 345
Joined: Sat Jul 16, 2011 11:43 am
Location: Lexington, KY
Has thanked: 232 times
Been thanked: 650 times

Re: [Script] WME Place Interface Enhancements

Postby MapOMatic » Fri Mar 22, 2019 2:48 pm

G_W1Z wrote:At this time is there any functionality related to Google Link Enhancer that is not working?

Yes, the map highlighting features I mentioned on 3/14 still don't work.
[ img ] [ img ]

AM Central KY | CM USA
MapOMatic
Country Manager
Country Manager
 
Posts: 345
Joined: Sat Jul 16, 2011 11:43 am
Location: Lexington, KY
Has thanked: 232 times
Been thanked: 650 times

Re: [Script] WME Place Interface Enhancements

Postby MapOMatic » Tue Mar 26, 2019 6:40 pm

/me cringes... like a prize fighter with a glass chin, the Google Link Enhancer is down again until further notice.
You may want to disable it in the PIE settings for now, to prevent a flood of error messages reported in the console.
unknown (1).png
(27.91 KiB) Downloaded 404 times

If we don't hear back from the Waze devs soon, I'll revert to the previous release of GLE so we can at least continue using the features that were working before yesterday.
[ img ] [ img ]

AM Central KY | CM USA
MapOMatic
Country Manager
Country Manager
 
Posts: 345
Joined: Sat Jul 16, 2011 11:43 am
Location: Lexington, KY
Has thanked: 232 times
Been thanked: 650 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: ardan74, jm6087, Mythdraug