[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 sapulmart » Wed May 28, 2014 7:56 am

can we have update, pls?
Мне судьбою дано
Подниматься и падать
И я знаю теперь
Одиночества плен, лучше праведной лжи нового дня
sapulmart
Area Manager
Area Manager
 
Posts: 1506
Joined: Fri Oct 18, 2013 1:01 pm
Location: Russia, SPb
Has thanked: 619 times
Been thanked: 225 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 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 ruskinz » Fri Jun 10, 2016 2:03 pm

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.
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 resmota » Mon Apr 27, 2015 10:41 am

With too many points, WME can't save. Returns an error and you lose your work.
resmota
Coordinators
Coordinators
 
Posts: 3020
Joined: Wed Apr 23, 2014 10:04 pm
Has thanked: 1707 times
Been thanked: 3456 times

Re: [Script] Street to River Plus

Postby resmota » Mon Apr 06, 2015 11:40 am

EduardoCarvajal wrote:Hi All

Version 15.04.05 is here

This version includes:

  1. New language added: Português (Brasil).

Special thanks to resmota for Português (Brasil)translation.


Glad to help! :D
resmota
Coordinators
Coordinators
 
Posts: 3020
Joined: Wed Apr 23, 2014 10:04 pm
Has thanked: 1707 times
Been thanked: 3456 times

Re: [Script] Street to River Plus

Postby polordonez » Mon Apr 27, 2015 2:14 pm

Sometimes when I make a large portion of the river it's not possible to save, so try not to make big portions and save every portion, as resmota says with too many points (unlimited size) it's better to have a specific river width to avoid the error and lose all your work

Enviado desde mi SM-G900H mediante Tapatalk
___________________
Polordonez - MapRaider
Area Manager: El Salvador - Cuba - Islas Cayman - Belice - Bangkok
ImageImageImageImage
polordonez
Waze Local Champs
Waze Local Champs
 
Posts: 51
Joined: Sun Jun 10, 2012 7:10 pm
Location: El Salvador
Has thanked: 78 times
Been thanked: 14 times

Re: [Script] Street to River Plus

Postby polordonez » Mon Apr 06, 2015 3:46 am

EduardoCarvajal wrote:Hi All

Version 15.04.05 is here

This version includes:

  1. New language added: Português (Brasil).

Special thanks to resmota for Português (Brasil)translation.

nada mas felicitarte por está herramienta! cuanto me tiempo he ahorrado!

Saludos

Enviado desde mi SM-G900H mediante Tapatalk
___________________
Polordonez - MapRaider
Area Manager: El Salvador - Cuba - Islas Cayman - Belice - Bangkok
ImageImageImageImage
polordonez
Waze Local Champs
Waze Local Champs
 
Posts: 51
Joined: Sun Jun 10, 2012 7:10 pm
Location: El Salvador
Has thanked: 78 times
Been thanked: 14 times

Re: [Script] Street to River Plus

Postby pjmotobr » Fri Oct 28, 2016 5:14 pm

sempre que eu vou salvar da erro
pjmotobr
 
Posts: 13
Joined: Sat Jan 18, 2014 4:01 pm
Has thanked: 3 times
Been thanked: 0 time

Re: [Script] Street to River Plus

Postby Nomenclator1677 » Mon Dec 21, 2015 8:31 pm

Thanks Eduardo ;)
AM Massif des Bauges / Bout du Lac d'Annecy
Image
Le monde est dangereux à vivre ! Non pas tant à cause de ceux qui font le mal, mais à cause de ceux qui regardent et laissent faire. – Albert Einstein
Nomenclator1677
Coordinators
Coordinators
 
Posts: 5956
Joined: Wed Feb 08, 2012 9:58 pm
Location: France
Has thanked: 127 times
Been thanked: 1146 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: dspille, fjsawicki, gunnargsd, lupuSunny, rmeatc_2, skippy10