Greasemonkey script for easy river drawing

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: krankyd, Unholy

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.

Greasemonkey script for easy river drawing

Postby aeytom » Wed Dec 28, 2011 12:20 pm

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
Last edited by aeytom on Tue Jan 03, 2012 6:52 pm, edited 3 times in total.
AM: Berlin South/East, Fläming; Nexus 4
Image
aeytom
 
Posts: 284
Joined: Sat Nov 27, 2010 8:14 am
Location: Berlin/Germany
Has thanked: 2 times
Been thanked: 3 times

Re: Greasemonkey script for easy river drawing

Postby aeytom » Thu Dec 29, 2011 3:14 pm

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
AM: Berlin South/East, Fläming; Nexus 4
Image
aeytom
 
Posts: 284
Joined: Sat Nov 27, 2010 8:14 am
Location: Berlin/Germany
Has thanked: 2 times
Been thanked: 3 times

Re: Greasemonkey script for easy river drawing

Postby aeytom » Tue Jan 03, 2012 6:49 pm

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
AM: Berlin South/East, Fläming; Nexus 4
Image
aeytom
 
Posts: 284
Joined: Sat Nov 27, 2010 8:14 am
Location: Berlin/Germany
Has thanked: 2 times
Been thanked: 3 times

Re: Greasemonkey script for easy river drawing

Postby aeytom » Mon Jan 30, 2012 8:00 am

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
AM: Berlin South/East, Fläming; Nexus 4
Image
aeytom
 
Posts: 284
Joined: Sat Nov 27, 2010 8:14 am
Location: Berlin/Germany
Has thanked: 2 times
Been thanked: 3 times

Re: Greasemonkey script for easy river drawing

Postby aeytom » Tue Mar 13, 2012 3:54 pm

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
AM: Berlin South/East, Fläming; Nexus 4
Image
aeytom
 
Posts: 284
Joined: Sat Nov 27, 2010 8:14 am
Location: Berlin/Germany
Has thanked: 2 times
Been thanked: 3 times

Re: Greasemonkey script for easy river drawing

Postby aeytom » Sun Jun 03, 2012 6:08 pm

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
AM: Berlin South/East, Fläming; Nexus 4
Image
aeytom
 
Posts: 284
Joined: Sat Nov 27, 2010 8:14 am
Location: Berlin/Germany
Has thanked: 2 times
Been thanked: 3 times

Re: Greasemonkey script for easy river drawing

Postby aeytom » Sun Jun 03, 2012 6:12 pm

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:
AM: Berlin South/East, Fläming; Nexus 4
Image
aeytom
 
Posts: 284
Joined: Sat Nov 27, 2010 8:14 am
Location: Berlin/Germany
Has thanked: 2 times
Been thanked: 3 times

Re: Greasemonkey script for easy river drawing

Postby AlanOfTheBerg » Tue Mar 13, 2012 4:18 pm

Thanks for keeping the wiki page updated!
Wiki Resources: Map Editing Manual | Oregon Project/To-Do List
Oregon-based US Country Manager | iPhone5 - VZ - iOS 7.0.6 | Waze v3.7.9.992
AlanOfTheBerg
Waze Global Champs
Waze Global Champs
 
Posts: 19485
Joined: Sat Aug 28, 2010 8:48 pm
Location: US Country Manager - Oregon, USA
Has thanked: 653 times
Been thanked: 2254 times

Re: Greasemonkey script for easy river drawing

Postby avmauricio » Sun Jun 03, 2012 4:59 pm

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:
Mau Arce
San José, Costa Rica
avmauricio
 
Posts: 14
Joined: Sat Oct 01, 2011 7:17 am
Has thanked: 0 time
Been thanked: 0 time

Re: Greasemonkey script for easy river drawing

Postby avmauricio » Sun Jun 03, 2012 9:30 pm

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
Mau Arce
San José, Costa Rica
avmauricio
 
Posts: 14
Joined: Sat Oct 01, 2011 7:17 am
Has thanked: 0 time
Been thanked: 0 time

Next

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: No registered users