Re: [Script] Street to River Plus
Posted: Mon Dec 21, 2015 8:31 pm
Thanks Eduardo
Waze: outsmarting traffic together
https://www.waze.com/forum/
I can't merge an old one with the new one. It is always a new river or canal.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.
at a certain moment, it deleted the original segment but not now for a long timejm6087 wrote:IIRC, I don't think it has ever deleted the original road segment, but I could be wrong.jangliss wrote:I created a road, and clicked on the "Street to River" and clicked save. I noticed it no longer seems to delete the original road segment, so there is a bug there.
What line numbers ? Thanksjm6087 wrote:...
3. When I comment/delete these 3 lines, the temporary red road deletes as expected.Code: Select all
if (newRiver.isGeometryEditable()){ Waze.model.actionManager.add(new UpdateSegmentAddress(newRiver, {countryID: city.countryID, stateID: city.stateID, emptyCity: true, emptyStreet: true})); }
Code: Select all
// if (newRiver.isGeometryEditable()){ // Waze.model.actionManager.add(new UpdateSegmentAddress(newRiver, {countryID: city.countryID, stateID: city.stateID, emptyCity: true, emptyStreet: true})); // }
Thanksjuliansean wrote:Try around line 394-396
really thanks alot wrote: ↑Wed Dec 09, 2020 8:12 pmreally thanks alot
after a long time Im able to draw rivers
this script has more options