Page 15 of 23

Re: [Script] Street to River Plus

Posted: Mon Dec 21, 2015 8:31 pm
by Nomenclator1677
Thanks Eduardo ;)

Re: [Script] Street to River Plus

Posted: Thu Feb 11, 2021 1:20 pm
by Nomenclator1677
I don't know why but after corrected the script like said before in here
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.
I can't merge an old one with the new one. It is always a new river or canal.

An explanation ?

Thanks
Capture d’écran 2021-02-11 à 14.16.13.png
(369.21 KiB) Downloaded 139 times
 
Capture d’écran 2021-02-11 à 14.15.55.png
(372.94 KiB) Downloaded 142 times
 
 

Re: [Script] Street to River Plus

Posted: Thu Feb 11, 2021 9:05 pm
by Nomenclator1677
Thanks.

It merges on a new river (create one and after, extend it with a new part of the river).

It currently is non working when trying to merge an old one with a new part one.

Re: [Script] Street to River Plus

Posted: Fri Feb 12, 2021 10:16 am
by Nomenclator1677
jm6087 wrote:
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.
IIRC, I don't think it has ever deleted the original road segment, but I could be wrong.
at a certain moment, it deleted the original segment but not now for a long time

Re: [Script] Street to River Plus

Posted: Sat Mar 20, 2021 6:29 pm
by Nomenclator1677
jm6087 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}));
// }
What line numbers ? Thanks

Re: [Script] Street to River Plus

Posted: Sat Mar 20, 2021 8:09 pm
by Nomenclator1677
juliansean wrote:Try around line 394-396
Thanks

Re: [Script] Street to River Plus

Posted: Mon Nov 30, 2020 6:34 am
by Patrik-20
I have a problem with this version, it has an error on my system!
the error is:
"No unsaved and selected new street found!"

Re: [Script] Street to River Plus

Posted: Tue Mar 16, 2021 5:35 am
by Patrik-20
the script no longer working
have you any idea?

Re: [Script] Street to River Plus

Posted: Wed Jul 28, 2021 5:10 am
by Patrik-20
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

Re: [Script] Street to River Plus

Posted: Fri Oct 28, 2016 5:14 pm
by pjmotobr
sempre que eu vou salvar da erro