[Script] WME Geometries - 2025.03.25.002

As usual, when new version is released, scripts will go haywire.

With this new version of WME, seems like my favorite script here can’t import any KML or geoJSON files anymore (KML/JSON format not supported :frowning: ). I don’t like importing WKTs because it lacks ability to show actual useful information on the screen.

Will the script be fixed to incorporate the new WME changes?

If this can be fixed it would be much appreciated. Helps so much with showing borders!

I have the updated version of the script but it isn’t accepting KML files.

Does it accept GeoJSON? [emoji848]

Nom nom’ed from Kuki’s iPhone using Tapatalk

Yes, it lists that as an accepted file format. I am trying to load these PA KML files:

KML files - PA Townships (labeled)
KML files - municipalities (not labeled)
KML files - CDPs (not labeled)

https://wazeopedia.waze.com/wiki/USA/Pennsylvania/Resources

Seems JSON files don’t load either.

Yep, I noticed that, too.

Waze had updated WME to use a newer version of OpenLayers (to 2.13.1), so this script was refusing to patch in the extra functionality it needs (copied from 2.12).

I’ve updated WME Geometries to v1.4 so it loads the appropriate functions from Cloudflare CDN, for whichever version of OpenLayers WME is using.

This should mean that you should be able to load KML, GML and GPX files again.

Let me know if you experience problems… :ugeek:

1 Like

Timbones - I have been able to load two separate KML files perfectly. Thank you so much for your work on this!!!

Timbones, works a treat.
Loads my GeoJSON files again.
Many thanks

Waaw, thanks for that quick fix! I can load GPX again. Much appreciated.

Confirmed it’s working again. Superb support as usual from timbones! :smiley:

I feel like I’m missing something, but I’m not seeing it. I have a .kml file and in the Areas tab, I can upload it and it shows in blue font. However, nothing is showing in WME. I am indeed at the location of the .kml. What am I missing?

Click for large view - Uploaded with Skitch

Hello,
I have the problem that there is nothing showing up for upload a file…
I am using Firefox 60.0.1 with Greasemonkey and version 1.4 from WME Geometries…
My waze url is… https://www.waze.com/de/editor?lon=

Any idea how to fix this ?

EDIT:
Well with Tampermonkey it seems to work…a notice at the first page of the thread would be good for all script neewbies…

Tampermonkey is the preferred script manager for WME.

Isn’t working for me in Chrome. Nothing has changed since I first tried back in March.
I’ve turned off all other scripts and Toolbox and reinstalled the script with TamperMonkey several times with no change.

The KML file is imported, but no lines appear on the map, and no new layers are added to the menu.

It doesn’t add any layers to the layer list. You are running v1.4? Maybe try another KML file, it’s working fine for me.

I have two that I’m trying to use. I had to modify the longitude from the -248° my tracker recorded. :x
Does this script not do gx:Tracks? My file is formatted like this:

... <gx:Track> <altitudeMode>absolute</altitudeMode> <when>2018-03-04T00:04:28Z</when><gx:coord>-248.92865 45.693047 1448.1</gx:coord> <when>2018-03-04T00:04:29Z</when><gx:coord>-248.92844 45.693047 1448.5</gx:coord> ...
They both work fine in Google Earth after fixing the coordinates to

<when>2018-03-04T00:04:28Z</when><gx:coord>-111.07135 45.693047 1453.1</gx:coord>

Should I reformat the coordinates into LineStrings or something? :frowning:

I mention layers because the (ancient) image on GreasyFork shows each file getting a checkbox in the layers menu. Waze may have broken this at some point but I have a few functional scripts that still manage to make it work.

For me, I’m using 1.4 with several different KMLs. The overlays simply don’t show up. They work fine in Google Earth.

Here is a KML file we use in PA for township outlines. Download this to your computer, load it up, head to PA and see if it shows.