[Script] WME Geometries - 2025.03.25.002

Thanks for the update, but using the Census data (https://www.census.gov/geo/maps-data/data/kml/kml_place.html), now shows like this:
Untitled.png

The county files don’t show any name at all (https://www.census.gov/geo/maps-data/data/kml/kml_cousub.html)

EDIT: kml_cousub shows names if I increase maxlabels. How high can that be set before you think it might cause issues?

Thanks for posting with example files. The kml_place file really does have the text “<at><openparam>” in the name fields. The best approach here is to do a search and replace in a text editor to remove them. (You’ll actually need to search for “<at><openparam>” and “<closeparam>”).

I have no idea what the upper limit of maxlabels is. It really depends on the capability of your machine…

I didn’t know if it was possible to add the rest of the gibberish to the labelname variable so it would filter it out, but I guess not. No big deal editing the KML, was just trying to avoid having to do that since anyone who uses it would have to make the same edits locally. Thanks.

Is anyone else having issues with this script. I’m getting this error in the console.

[code]
vendor-dc9e195….js:106 Error: <polyline> attribute points: Expected number, “…4025273.4854018,NaN,-294025273.4…”.
drawLineString @ vendor-dc9e195….js:106
drawGeometryNode @ vendor-dc9e195….js:106
redrawNode @ vendor-dc9e195….js:106
drawGeometry @ vendor-dc9e195….js:106
drawFeature @ vendor-dc9e195….js:106
drawFeature @ vendor-dc9e195….js:105
moveTo @ vendor-dc9e195….js:105
redraw @ vendor-dc9e195….js:104
addLayer @ vendor-dc9e195….js:105
(anonymous) @ VM418:187

vendor-dc9e195….js:106 Error: <polyline> attribute points: Expected number, “…910468.01203744,NaN,78751402.522…”.
drawLineString @ vendor-dc9e195….js:106
drawGeometryNode @ vendor-dc9e195….js:106
redrawNode @ vendor-dc9e195….js:106
drawGeometry @ vendor-dc9e195….js:106
drawFeature @ vendor-dc9e195….js:106
drawFeature @ vendor-dc9e195….js:105
moveTo @ vendor-dc9e195….js:105
redraw @ vendor-dc9e195….js:104
addLayer @ vendor-dc9e195….js:105
(anonymous) @ VM418:187

vendor-dc9e195….js:106 Error: <polyline> attribute points: Expected number, “…27841.329094723,NaN,37542336.604…”.
drawLineString @ vendor-dc9e195….js:106
drawGeometryNode @ vendor-dc9e195….js:106
redrawNode @ vendor-dc9e195….js:106
drawGeometry @ vendor-dc9e195….js:106
drawFeature @ vendor-dc9e195….js:106
drawFeature @ vendor-dc9e195….js:105
moveTo @ vendor-dc9e195….js:105
redraw @ vendor-dc9e195….js:104
addLayer @ vendor-dc9e195….js:105
(anonymous) @ VM418:187
VM418:193 [/code]

WME Geometries works in the current WME beta, but the layers do not appear in the layer list. Sometimes when I load a KML file in prod, the layer will load and immediately turn itself off for some reason (I just turn it back on). In beta, there would be no way to turn the layer back on since it doesn’t appear in the layer list. This script is very useful, hopefully a fix can be found.

+1

With the change to the beta layer menu it isn’t possible for script layers to be automatically added to it anymore. Scripts that add a layer to the menu have to manually add a checkbox and handle showing/hiding their layer based on the checked status of it. This is a new change, please be patient - it’s going to take time to get scripts updated.

If you look in the script for the line that starts with "var colorlist = " (mine is on line 29), you can chose whatever colors you want. I changed my colors to this: “var colorlist = [ “orange”, “purple”, “darkgreen”, “darkred”, “teal”, “darkslategray” ];” I find Orange easy to see as the main color.

I will check it with a shape file, then I’ll tell you

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

Why don’t I see such an option?

It looks like the script did not load properly. You should see buttons below the area listings, like this:
Capture.PNG

Thanks
I will try to reinstall

The problem has not worked out yet.
I forgot to mention: I use Google Crome
Are you using FireFox?

I use Chrome as well. Geometries should be v1.2.

Geometries not working here too, V1.3

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?

Only message I could find is this. It has a red X after it.

// delayed initialisation
setTimeout(init, 654);
W.loginManager.events.register(“login”, null, init);

All other scripts stopped from starting.

Then re-enabled one by one & Wide Angle Lens started giving errors.
Disabled this only & Geometries Is happy.

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

I use the tampermonkey script, not the Play Store extension.

Thanks
:slight_smile:
It’s working