[Script] Street to River Plus

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.

Moderators: Unholy, bextein, Glodenox, JustinS83

Forum rules
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

DO NOT START a new thread unless it is about a new idea. Keep discussion of existing tools within the main thread for that tool.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Re: [Script] Street to River Plus

Postby EduardoCarvajal » Thu Jun 16, 2016 3:35 am

Turrican7 wrote:Hello, please add my language, I sent it to you with PM. Thank you.


Thanks!!!
[ img ][ img ][ img ]
Local Champ - Level 6
Waze Costa Rica: Wiki, Facebook, Forums
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
 
Posts: 856
Joined: Sun Jul 01, 2012 5:57 pm
Location: Costa Rica
Has thanked: 515 times
Been thanked: 619 times

Re: [Script] Street to River Plus

Postby EduardoCarvajal » Thu Jun 16, 2016 3:37 am

Hi

Version 16.06.15 is here

This version includes:

  1. Slovak translation (by Turrican7)
[ img ][ img ][ img ]
Local Champ - Level 6
Waze Costa Rica: Wiki, Facebook, Forums
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
 
Posts: 856
Joined: Sun Jul 01, 2012 5:57 pm
Location: Costa Rica
Has thanked: 515 times
Been thanked: 619 times

Re: [Script] Street to River Plus

Postby ruskinz » Thu Jun 16, 2016 3:48 pm

To auto-delete the helper road you can do the following:

Around line 200 add:

Code: Select all
var wazeActionDeleteSegment = require("Waze/Action/DeleteSegment");


Then around line 485 add the following after then else just before the return:

Code: Select all
        // 2016-06-16: Remove road line - by ruskinz
        if (sel.isGeometryEditable()){
            Waze.model.actionManager.add(new wazeActionDeleteSegment(sel));
        }
       
      return true;


I have done some small testing on this on standalone rivers and extending existing and it seems to work. Feel free to use if you want to
ruskinz
 
Posts: 18
Joined: Mon Mar 07, 2016 2:10 pm
Has thanked: 14 times
Been thanked: 3 times

Re: [Script] Street to River Plus

Postby EduardoCarvajal » Thu Jun 16, 2016 4:01 pm

ruskinz wrote:To auto-delete the helper road you can do the following:

Around line 200 add:

Code: Select all
var wazeActionDeleteSegment = require("Waze/Action/DeleteSegment");


Then around line 485 add the following after then else just before the return:

Code: Select all
        // 2016-06-16: Remove road line - by ruskinz
        if (sel.isGeometryEditable()){
            Waze.model.actionManager.add(new wazeActionDeleteSegment(sel));
        }
       
      return true;


I have done some small testing on this on standalone rivers and extending existing and it seems to work. Feel free to use if you want to


Great!!..
Just give me some time to review and test you code. Thanks!!!
[ img ][ img ][ img ]
Local Champ - Level 6
Waze Costa Rica: Wiki, Facebook, Forums
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
 
Posts: 856
Joined: Sun Jul 01, 2012 5:57 pm
Location: Costa Rica
Has thanked: 515 times
Been thanked: 619 times

Re: [Script] Street to River Plus

Postby Turrican7 » Thu Jun 16, 2016 6:45 pm

EduardoCarvajal wrote:
ruskinz wrote:To auto-delete the helper road you can do the following...

Great!!..
Just give me some time to review and test you code. Thanks!!!



Some time its needed to undo creation of river landmark and do some changes on source street segment; will be posible to undo this deletion? or probably will be nicely to do this addon if checked this option
[ img ]
On Samsung Note Edge & Sony Xperia Z3C, Android 6.0 @ BMW X5 300HP
Turrican7
 
Posts: 215
Joined: Mon Mar 14, 2016 5:14 pm
Location: Slovakia
Has thanked: 60 times
Been thanked: 45 times

Re: [Script] Street to River Plus

Postby ruskinz » Mon Jun 20, 2016 1:01 pm

Turrican7 wrote:
EduardoCarvajal wrote:
ruskinz wrote:To auto-delete the helper road you can do the following...

Great!!..
Just give me some time to review and test you code. Thanks!!!



Some time its needed to undo creation of river landmark and do some changes on source street segment; will be possible to undo this deletion? or probably will be nicely to do this addon if checked this option


This adds the 'delete helper road' to the undo queue ... so you can reverse it.

I thought about adding an option / checkbox to control this behaviour but think it would add too much complexity, when a simple single 'undo' click will bring the road back.

Any other thoughts or use-cases would be appreciated.
ruskinz
 
Posts: 18
Joined: Mon Mar 07, 2016 2:10 pm
Has thanked: 14 times
Been thanked: 3 times

Re: [Script] Street to River Plus

Postby Turrican7 » Mon Jun 20, 2016 1:06 pm

ruskinz wrote:This adds the 'delete helper road' to the undo queue ... so you can reverse it.

So I think thats enought, its not so much cases to create checkbox, thank you for response
[ img ]
On Samsung Note Edge & Sony Xperia Z3C, Android 6.0 @ BMW X5 300HP
Turrican7
 
Posts: 215
Joined: Mon Mar 14, 2016 5:14 pm
Location: Slovakia
Has thanked: 60 times
Been thanked: 45 times

Re: [Script] Street to River Plus

Postby EduardoCarvajal » Tue Jun 21, 2016 2:21 am

Hi

Version 16.06.20 is here

This version includes:

  1. Auto-delete helper street (by ruskinz)
  2. Slovak translation (minor adjustment)
[ img ][ img ][ img ]
Local Champ - Level 6
Waze Costa Rica: Wiki, Facebook, Forums
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
 
Posts: 856
Joined: Sun Jul 01, 2012 5:57 pm
Location: Costa Rica
Has thanked: 515 times
Been thanked: 619 times

Re: [Script] Street to River Plus

Postby cimuca » Wed Jun 29, 2016 7:39 pm

Thank you very much for this script. It is very useful.
cimuca
 
Posts: 5
Joined: Mon Nov 01, 2010 7:24 am
Location: Titu, DB
Has thanked: 4 times
Been thanked: 2 times

Re: [Script] Street to River Plus

Postby EduardoCarvajal » Thu Jul 21, 2016 4:16 am

Hi

Version 16.07.20 is here

This version includes:

  1. Minor fix: Beta editor compatibility issues
[ img ][ img ][ img ]
Local Champ - Level 6
Waze Costa Rica: Wiki, Facebook, Forums
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
 
Posts: 856
Joined: Sun Jul 01, 2012 5:57 pm
Location: Costa Rica
Has thanked: 515 times
Been thanked: 619 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: jmbox, Mythdraug, ramblinwreck_81, voludu2