[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

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 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
Turrican7
 
Posts: 215
Joined: Mon Mar 14, 2016 5:14 pm
Location: Slovakia
Has thanked: 60 times
Been thanked: 44 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 » 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
Turrican7
 
Posts: 215
Joined: Mon Mar 14, 2016 5:14 pm
Location: Slovakia
Has thanked: 60 times
Been thanked: 44 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!!!
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
 
Posts: 798
Joined: Sun Jul 01, 2012 5:57 pm
Location: Costa Rica
Has thanked: 502 times
Been thanked: 562 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 3:37 am

Hi

Version 16.06.15 is here

This version includes:

  1. Slovak translation (by Turrican7)
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
 
Posts: 798
Joined: Sun Jul 01, 2012 5:57 pm
Location: Costa Rica
Has thanked: 502 times
Been thanked: 562 times

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!!!
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
 
Posts: 798
Joined: Sun Jul 01, 2012 5:57 pm
Location: Costa Rica
Has thanked: 502 times
Been thanked: 562 times

Re: [Script] Street to River Plus

Postby Turrican7 » Wed Jun 15, 2016 10:09 am

Hello, please add my language, I sent it to you with PM. Thank you.
Turrican7
 
Posts: 215
Joined: Mon Mar 14, 2016 5:14 pm
Location: Slovakia
Has thanked: 60 times
Been thanked: 44 times

Re: [Script] Street to River Plus

Postby EduardoCarvajal » Sat Jun 11, 2016 11:39 pm

Hi

Version 16.06.11 is here

This version includes:

  1. Remove auto-added city from newly created river. (by ruskinz)
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
 
Posts: 798
Joined: Sun Jul 01, 2012 5:57 pm
Location: Costa Rica
Has thanked: 502 times
Been thanked: 562 times

Re: [Script] Street to River Plus

Postby EduardoCarvajal » Fri Jun 10, 2016 7:49 pm

ruskinz wrote:Hi,

I have managed to make the script remove auto-added cities to the map ... have a look at https://www.waze.com/forum/viewtopic.ph ... 6#p1425506 for the code.

Any comments appreciated.

Note - it may be possible to use a similar technique to automatically remove the street.


Great!... Let me do some testing first.
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
 
Posts: 798
Joined: Sun Jul 01, 2012 5:57 pm
Location: Costa Rica
Has thanked: 502 times
Been thanked: 562 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: Bing [Bot], bz2012, RichardPyne