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 Geometries - v1.7 (June 2021)

Post by
Prompted by this request for city boundaries, and inspired by now defunct WME GPS Track View...

WME Geometries can load a geometry file and overlay it directly in the Waze Map Editor. Simply go to the Areas tab on the left, and scroll down to the new controls that have been added.
The data format is detected automatically using the file extension, and the following formats are supported: GeoJSON, GML, WKT, KML, and GPX; and coordinate systems ESPG 3857, 4269 and 4326. If you have a (free to use) ArcGIS or ESRI Shapefile, then this can be converted into one of these text formats.

If you're having trouble with your geometry data, then please get in touch with me and I'll see if I can help.

It is possible to load very large geometry files, of order 10 Mb, and the editor still performs moderately well. Files that closer to 100 Mb will probably make the editor struggle when panning/zooming. This can be mitigated by 'simplifying' the original geometry before converting it to a supported format.

Labels will be shown for files with less than 50 features, if an appropriately named attribute can be found: name, Name, NAME or NAME0. Displaying labels for larger numbers of features really kills performance due to how OpenLayers handles them.

Development background: the functionality to parse geometries files is built in to OpenLayers, and so it does the majority of the processing. The ability to handle KML and GPX was tricky, as Waze seem to be using a crippled version of the library that was missing those two. I eventually figured out how to patch the missing functions in.

Possible future work:
  • Dedicated parsing for Waze GPS files
  • Finer control of options and layers

POSTER_ID:1445148

1

Send a message


Post by AndyLaode
n4dog wrote:Script is no longer working as of this morning
experience the same thing when i want to see boundaries
AndyLaode
Posts: 808
Has thanked: 13 times
Been thanked: 242 times
Send a message
andylaode (andylaode@outlook.com)
okay, mate, see you on the road and on the map too, cheers

Post by arthurfsv
deanonzl wrote:Hi Tim,
Not loading here, error in console is "WME Geometries: OpenLayers version mismatch"
Also not loading here too :(
arthurfsv
Emeritus Local Champ
Emeritus Local Champ
Posts: 1136
Has thanked: 200 times
Been thanked: 351 times
Send a message
Arthur Fernando
AM - Belo Horizonte (Região oeste, centro e centro-sul)

É iniciante nas edições? Confira estes links básicos: manual, guia e práticas.

Quer melhorar a organização dos Places? Veja esta proposta

Post by boonie-oet-gelaen
Waaw, thanks for that quick fix! I can load GPX again. Much appreciated.
boonie-oet-gelaen
Waze Local Champs
Waze Local Champs
Posts: 43
Has thanked: 42 times
Been thanked: 16 times
Send a message

Post by cnor_il
Hi
How can I imoprt or load My gpx file to the editor?

Why don't I see such an option?
cnor_il
Posts: 2057
Has thanked: 1780 times
Been thanked: 504 times
Send a message
Attachments
קנור - מתנדב בקהילת עורכי המפה
Cnor - A volunteer in the Israeli community of Waze map editors
https://s.waze.tools/c5s.pngהודעה ראשונה בפורום הנחיות להוספת מקום כללים לפתיחת בקשות עדכון בפורום עדכון מפה

Post by cnor_il
Thanks
I will try to reinstall
cnor_il
Posts: 2057
Has thanked: 1780 times
Been thanked: 504 times
Send a message
קנור - מתנדב בקהילת עורכי המפה
Cnor - A volunteer in the Israeli community of Waze map editors
https://s.waze.tools/c5s.pngהודעה ראשונה בפורום הנחיות להוספת מקום כללים לפתיחת בקשות עדכון בפורום עדכון מפה

Post by cnor_il
The problem has not worked out yet.
I forgot to mention: I use Google Crome
Are you using FireFox?
cnor_il
Posts: 2057
Has thanked: 1780 times
Been thanked: 504 times
Send a message
קנור - מתנדב בקהילת עורכי המפה
Cnor - A volunteer in the Israeli community of Waze map editors
https://s.waze.tools/c5s.pngהודעה ראשונה בפורום הנחיות להוספת מקום כללים לפתיחת בקשות עדכון בפורום עדכון מפה

Post by cnor_il
RussPA wrote:Geometries now at version 1.3. Tried it with all other scripts/extensions disabled? Just a guess because it works for me. Any messages in the console that may prove helpful?
Are you install the script from the hoogle crome stote or from the temermonky?
I try to disabled othrt scripts and it didn't help
cnor_il
Posts: 2057
Has thanked: 1780 times
Been thanked: 504 times
Send a message
קנור - מתנדב בקהילת עורכי המפה
Cnor - A volunteer in the Israeli community of Waze map editors
https://s.waze.tools/c5s.pngהודעה ראשונה בפורום הנחיות להוספת מקום כללים לפתיחת בקשות עדכון בפורום עדכון מפה

Post by cnor_il
Thanks
:)
It's working
cnor_il
Posts: 2057
Has thanked: 1780 times
Been thanked: 504 times
Send a message
קנור - מתנדב בקהילת עורכי המפה
Cnor - A volunteer in the Israeli community of Waze map editors
https://s.waze.tools/c5s.pngהודעה ראשונה בפורום הנחיות להוספת מקום כללים לפתיחת בקשות עדכון בפורום עדכון מפה

Post by crazycaveman
This is the full error in the JS console, looks like a function is no longer provided.

Code: Select all

ERROR: Execution of script 'WME Geometries' failed! OpenLayers.Format.GML is not a function
formathelp @ VM1677:4
(anonymous function) @ VM1677:5
c @ VM1640:40
(anonymous function) @ VM1676:1
p @ VM1640:71h
a @ VM1640:40k
a @ VM1640:82
b @ VM1640:83
Commenting out line 24 ('GML':new OpenLayers.Format.GML) allows Geometries to work again, but most likely won't be able to load GML files (others still work).
crazycaveman
US Waze Champs
US Waze Champs
Posts: 856
Has thanked: 226 times
Been thanked: 441 times
Send a message