Get a sneak peek at whats next for Permanent Hazards on our April 7th Office Hours!
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 aureozb
today this script isn't working

only on beta
aureozb
Waze Global Champs
Waze Global Champs
Posts: 107
Has thanked: 114 times
Been thanked: 32 times
Send a message

Post by BeastlyHaz
jm6087 wrote:If you edit the script in TamperMonkey and look for

Code: Select all

sel.state == "Insert"
And change "Insert" to "INSERT"

It might fix the script for you
I just tried it myself and it works perfectly. Thanks!
BeastlyHaz
Beta tester
Beta tester
Posts: 501
Answers: 5
Has thanked: 126 times
Been thanked: 91 times
Send a message

ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ
WME Beta Community Coordinator
Area Manager | SE & N Queensland, Australia
Join me and other Australian editors on the Australian Discord Server

Post by buchet37
Hello,

In old time , Street to River show me the way to create some script for Waze.
Perhaps, it's time to me to help ;)

In the new version of WME, create landmark have change (perhaps due to place)

I have found a workaround for the add landmark problem.
In the old manner, we do this
//var landmark = new Waze.Feature.Vector.Landmark(polygon,{categories:typeLandmak, name: nameLandmak});

In new WME, this manner work for me

Code: Select all

var landmark = new WazeFeatureVectorLandmark() ;
landmark.geometry = polygon;
landmark.attributes.name = nameLandmak;
landmark.attributes.categories = typeLandmak;
I pretty sure it will work for StreetToRiver
buchet37
Waze Global Champs
Waze Global Champs
Posts: 1121
Has thanked: 71 times
Been thanked: 239 times
Send a message
Waze Global Champs - Country Manager France - Area Manager Touraine
2M edits - 5000UR - Iphone 6- Waze 4.0.1.1
Scripts :WME Select Same Type Roads | WME Check Road Name | PM

Post by buchet37
EduardoCarvajal wrote: Thanks... You put me on the right direction!!!
To be clear:
- I learnt to draw landmark with the first version of Street to river
- I learnt to use the require function with Street to River Plus :oops:
It's just a little feedback.
buchet37
Waze Global Champs
Waze Global Champs
Posts: 1121
Has thanked: 71 times
Been thanked: 239 times
Send a message
Waze Global Champs - Country Manager France - Area Manager Touraine
2M edits - 5000UR - Iphone 6- Waze 4.0.1.1
Scripts :WME Select Same Type Roads | WME Check Road Name | PM

Post by buchet37
Hello EduardoCarvajal
I have a similar script to create lansdmark and I have the same problem.
I pretty sure that problem is linked to the change about Openlayer explain here

I found a solution for my script

I replace the line :
         var landmark = new WazeFeatureVectorLandmark();

by :
        var ldk = {};
        ldk.geoJSONGeometry = W.userscripts.toGeoJSONGeometry (polygon);
        var landmark = new WazeFeatureVectorLandmark(ldk);

The W.userscripts.toGeoJSONGeometry create the new geometry object
All seems correct for me.
I think it will do the same for "Street to River Plus"

Perhaps, it a first step to a big change if openLayer disappers :oops:
 
 
 
buchet37
Waze Global Champs
Waze Global Champs
Posts: 1121
Has thanked: 71 times
Been thanked: 239 times
Send a message
Waze Global Champs - Country Manager France - Area Manager Touraine
2M edits - 5000UR - Iphone 6- Waze 4.0.1.1
Scripts :WME Select Same Type Roads | WME Check Road Name | PM

Post by bures
Is there any way, how to merge existing rivers?
bures
Waze Global Champs
Waze Global Champs
Posts: 993
Has thanked: 288 times
Been thanked: 345 times
Send a message

Post by catalins201
Hi, two days ago started with an error too upon clicking the button. Message is ”No unsaved and selected new street found!” Thank you.
catalins201
Posts: 2
Has thanked: 6 times
Been thanked: 4 times
Send a message

Post by CDHoskyHN
jangliss wrote:On line 172 in the script, it is looking for the state to be "Insert", it should be "INSERT". Just installed it, and on line 172 I have:

Code: Select all

            if (sel.type == "segment" && sel.state == "Insert") {
Change it to:

Code: Select all

            if (sel.type == "segment" && sel.state == "INSERT") {
Refresh WME, and you should be good to go.

Thanks
CDHoskyHN
Posts: 478
Has thanked: 225 times
Been thanked: 81 times
Send a message

Post by CDHoskyHN
jangliss wrote:On line 172 in the script, it is looking for the state to be "Insert", it should be "INSERT". Just installed it, and on line 172 I have:

Code: Select all

            if (sel.type == "segment" && sel.state == "Insert") {
Change it to:

Code: Select all

            if (sel.type == "segment" && sel.state == "INSERT") {
Refresh WME, and you should be good to go.

Thanks
CDHoskyHN
Posts: 478
Has thanked: 225 times
Been thanked: 81 times
Send a message