Greasemonkey script for easy river drawing

The place to get information and ask questions about everything to do with properly and successfully editing the Waze Map.

Use this forum for all general editing questions, and the sub-forums for specific types of Waze Map Editor features.

Moderators: support, Unholy, krankyd, The Fej

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; HTC Desire, Cyanogenmod 7.2
Image
aeytom
 
Posts: 279
Joined: Sat Nov 27, 2010 8:14 am
Location: Berlin/Germany
Has thanked: 0 time
Been thanked: 1 time

Re: Greasemonkey script for easy river drawing

Postby pulsarxp » Wed Dec 28, 2011 3:24 pm

Very good idea. Great job. Thank you! ;)
Country manager: Hungary
Hardware: HTC desire HD : Android 4.2.1 : Telenor : WAZE 3.5.99.910 Beta
Car: Peugeot 206 SW
http://www.waze.hu
pulsarxp
Waze Champs
 
Posts: 2271
Joined: Sun Nov 14, 2010 6:51 am
Location: Budapest, Hungary
Has thanked: 0 time
Been thanked: 1 time

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...
Country Manager: Hungary, Iceland
Hardware: Samsung Galaxy Tab 7'': CM10.1 + Samsung Galaxy S II : JellyBam
Car: Opel Insignia : blueish grey
Honlap:http://waze.hu
Facebook:http://www.facebook.com/waze.hu
wroadd
Waze Champs
 
Posts: 1828
Joined: Mon Oct 04, 2010 4:35 pm
Location: Szeged,Hungary
Has thanked: 2 times
Been thanked: 3 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?
Normally a HTC Desire S - Stock ROM (Android 2.3.5), but temporarily back to my G1 (HTC Heart) - Froyo by Laszlo ROM - Waze 3.6
Waze Champ, Mega Mapper/Driver
Countrymanager The Netherlands
gerben
Waze Champs
 
Posts: 4257
Joined: Sun Dec 13, 2009 10:42 pm
Location: Almelo
Has thanked: 6 times
Been thanked: 46 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. :)
Country manager: Hungary
Hardware: HTC desire HD : Android 4.2.1 : Telenor : WAZE 3.5.99.910 Beta
Car: Peugeot 206 SW
http://www.waze.hu
pulsarxp
Waze Champs
 
Posts: 2271
Joined: Sun Nov 14, 2010 6:51 am
Location: Budapest, Hungary
Has thanked: 0 time
Been thanked: 1 time

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; HTC Desire, Cyanogenmod 7.2
Image
aeytom
 
Posts: 279
Joined: Sat Nov 27, 2010 8:14 am
Location: Berlin/Germany
Has thanked: 0 time
Been thanked: 1 time

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 3.6 sur Galaxy S ]
Shaigan
 
Posts: 940
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 4S 32GB (Jailed) • iOS 6.1.2 • Waze 3.6.99.9 Beta
Lincolnshire Area Manager • UK Country Administrator • iOS Beta Tester • iPhone Expert
UK WikiUK ForumWaze UK on FacebookBecome a UK Area ManagerWaze Status
Dave2084
Waze Champs
 
Posts: 1546
Joined: Tue Feb 09, 2010 12:58 am
Location: Lincoln, UK
Has thanked: 22 times
Been thanked: 32 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).
Normally a HTC Desire S - Stock ROM (Android 2.3.5), but temporarily back to my G1 (HTC Heart) - Froyo by Laszlo ROM - Waze 3.6
Waze Champ, Mega Mapper/Driver
Countrymanager The Netherlands
gerben
Waze Champs
 
Posts: 4257
Joined: Sun Dec 13, 2009 10:42 pm
Location: Almelo
Has thanked: 6 times
Been thanked: 46 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; HTC Desire, Cyanogenmod 7.2
Image
aeytom
 
Posts: 279
Joined: Sat Nov 27, 2010 8:14 am
Location: Berlin/Germany
Has thanked: 0 time
Been thanked: 1 time

Next

Return to Waze Map Editor

Who is online

Users browsing this forum: CBenson, familyLoad