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.

Moderator: 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 pulsarxp » Wed Dec 28, 2011 3:24 pm

Very good idea. Great job. Thank you! ;)
Image
Country manager: Hungary
Hardware: Samsung S6 Edge Plus : Android 5.1.1
Car: Peugeot 206 SW
pulsarxp
Waze Global Champs
Waze Global Champs
 
Posts: 2551
Joined: Sun Nov 14, 2010 6:51 am
Location: Budapest, Hungary
Has thanked: 87 times
Been thanked: 101 times

Re: Greasemonkey script for easy river drawing

Postby wroadd » Wed Dec 28, 2011 10:35 pm

Do not try to create too long landmarks, it creates "general error". It is not a script error...
Waze Global Champ, (Re)tired
Hardware: THL T11 & iPhone 5S
Car: Opel Insignia : blueish grey
wroadd
 
Posts: 1839
Joined: Mon Oct 04, 2010 4:35 pm
Location: Szeged,Hungary
Has thanked: 7 times
Been thanked: 24 times

Re: Greasemonkey script for easy river drawing

Postby gerben » Thu Dec 29, 2011 2:50 am

I don't get the street-to-river button, or I don't see it. Where should it be?
Nokia Lumia 920 (WP8 3.7.6 client)
Countrymanager The Netherlands
ImageImageImageImage
gerben
 
Posts: 4779
Joined: Sun Dec 13, 2009 10:42 pm
Location: Almelo
Has thanked: 33 times
Been thanked: 194 times

Re: Greasemonkey script for easy river drawing

Postby pulsarxp » Thu Dec 29, 2011 5:47 am

gerben wrote:I don't get the street-to-river button, or I don't see it. Where should it be?


I also found it difficult. The upper left corner. :)
Image
Country manager: Hungary
Hardware: Samsung S6 Edge Plus : Android 5.1.1
Car: Peugeot 206 SW
pulsarxp
Waze Global Champs
Waze Global Champs
 
Posts: 2551
Joined: Sun Nov 14, 2010 6:51 am
Location: Budapest, Hungary
Has thanked: 87 times
Been thanked: 101 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 Shaigan » Sun Jan 01, 2012 6:44 pm

Thx for your script, this is a beautiful tool ;)
[ Shaigan & Cie | Google+ | Facebook | Twitter ]
[ France Country Manager | Waze Android sur Nexus 4 ]
Shaigan
Waze Local Champs
Waze Local Champs
 
Posts: 960
Joined: Mon Nov 22, 2010 8:54 pm
Location: Tarbes (65), France
Has thanked: 3 times
Been thanked: 0 time

Greasemonkey script for easy river drawing

Postby Dave2084 » Tue Jan 03, 2012 2:14 pm

This sounds interesting, I will have to install it and give it a go!
iPhone 6S Plus (Jailed) • iOS 9.2.1 • Waze 4.2
Level 6 Editor • Lincolnshire Area Manager • UK Country Administrator • iOS Beta Tester
UK WikiUK ForumWaze UK on FacebookBecome a UK Area ManagerWaze Status
Dave2084
Global Champs Localizers
Global Champs Localizers
 
Posts: 2388
Joined: Tue Feb 09, 2010 12:58 am
Location: Lincoln, UK
Has thanked: 373 times
Been thanked: 365 times

Re: Greasemonkey script for easy river drawing

Postby gerben » Tue Jan 03, 2012 5:43 pm

This tool might be useable to make railroads visible in the client too. I'll try this tonight (not sure if there is an appropriate landmark type).
Nokia Lumia 920 (WP8 3.7.6 client)
Countrymanager The Netherlands
ImageImageImageImage
gerben
 
Posts: 4779
Joined: Sun Dec 13, 2009 10:42 pm
Location: Almelo
Has thanked: 33 times
Been thanked: 194 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

Next

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: DidierLmn, Olestas