Page 1 of 6

Greasemonkey script for easy river drawing

PostPosted: Wed Dec 28, 2011 12:20 pm
by aeytom
Hi,

here is my first greasemonkey script for creating river landmarks with papyrus. The script converts the geometry of a newly created street to a polygon for a river landmark.

Mini howto:

  • install this script as greasemonkey script or chrome extension
  • draw a new street but do not save the street
  • add and apply a street name to define the rivers name and the the width of the river
    Example: "20m Spree" creates a 20 meters width river named "Spree"
  • Select the helper street
  • Click the "Street to river" button
  • Delete the helper street
  • Edit the new landmark as you like

Examples for rivers created by the script:


To install in google chrome:

Get the script from http://userscripts.org/scripts/show/122049

The description can also be found here: http://www.waze.com/wiki/index.php/Comm ... t_to_river

have fun
aeytom

Re: Greasemonkey script for easy river drawing

PostPosted: Thu Dec 29, 2011 3:14 pm
by aeytom
Hi,

I have updated the code in the original post.

What is fixed:
* Division by zero should not happen
* Button is moved at the end of the properties panel
* Scaling using the street name prefix is working correct now

tom

Re: Greasemonkey script for easy river drawing

PostPosted: Tue Jan 03, 2012 6:49 pm
by aeytom
Hello again,

You can found the script on http://userscripts.org/scripts/show/122049 and a description on http://www.waze.com/wiki/index.php/Comm ... t_to_river

tom

Re: Greasemonkey script for easy river drawing

PostPosted: Mon Jan 30, 2012 8:00 am
by aeytom
Hi,

gerben wrote:This tool has stopped working because the url for the editor has canged.


I have updated the script on userscripts.org.

tom

Re: Greasemonkey script for easy river drawing

PostPosted: Tue Mar 13, 2012 3:54 pm
by aeytom
Hello Wazers,

I have uploaded a new version to userscripts.org. This new version integrates some changes from Timbones. Now you can create "railroad" landmarks with one click.

tom

Re: Greasemonkey script for easy river drawing

PostPosted: Sun Jun 03, 2012 6:08 pm
by aeytom
Hi,

Die Idee ist:
* "Straße" im Verlauf des Flusses anlegen und markieren
* Straße in Landmark umwandeln
* markierte "Straße" löschen
* speichern

So sollte es immer funktionieren.

tom

DGlanem wrote:I want to make a Railroad-Landmark from an existing street(railroad).

The tool gives me a messagebox "there are no new streets" (or so).

A few minutes later I try it again - the messagebox say "...succsessful created..." . :shock:


Where is my Bug?


regards from germany
#Dominik

Re: Greasemonkey script for easy river drawing

PostPosted: Sun Jun 03, 2012 6:12 pm
by aeytom
Hi,

I have updated the list of valid URLs. Please download the script again. It should work for you now.

tom

avmauricio wrote:Hello, I'm edit maps in Costa Rica and I use es.waze.com/editor for the maps, I read about the plug-in and I installed it but it didn't works, checking the script I didn't found this URL but however I used world.waze.com/editor and it works fine, so I think there's a good idea to add es.waze.com/editor so on that way the plug in can works.

Thank you! :geek:

Re: Greasemonkey script for easy river drawing

PostPosted: Tue Mar 13, 2012 4:18 pm
by AlanOfTheBerg
Thanks for keeping the wiki page updated!

Re: Greasemonkey script for easy river drawing

PostPosted: Sun Jun 03, 2012 4:59 pm
by avmauricio
Hello, I'm edit maps in Costa Rica and I use es.waze.com/editor for the maps, I read about the plug-in and I installed it but it didn't works, checking the script I didn't found this URL but however I used world.waze.com/editor and it works fine, so I think there's a good idea to add es.waze.com/editor so on that way the plug in can works.

Thank you! :geek:

Re: Greasemonkey script for easy river drawing

PostPosted: Sun Jun 03, 2012 9:30 pm
by avmauricio
Thank you Tom, I will!

aeytom wrote:Hi,

I have updated the list of valid URLs. Please download the script again. It should work for you now.

tom