Get a sneak peek at whats next for Permanent Hazards on our April 7th Office Hours!
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.
Post by EduardoCarvajal
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.
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
Posts: 944
Has thanked: 184 times
Been thanked: 310 times
Send a message
download/file.php?id=66141
Local Champ - Level 6
Waze Costa Rica: Wiki, Facebook, Forums

Post by EduardoCarvajal
Hi All

Version 15.04.12 is here

This version includes:
  1. Minor fix to Português (Brasil) translation.
Special thanks to resmota for Português (Brasil)translation.
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
Posts: 944
Has thanked: 184 times
Been thanked: 310 times
Send a message
download/file.php?id=66141
Local Champ - Level 6
Waze Costa Rica: Wiki, Facebook, Forums

Post by EduardoCarvajal
Vlbee wrote:When new road is inside any polygon, like a forest, script is not working. It brings message "All street segments inside river. Cannot continue."

Simple way to fix it is to replace code

Code: Select all

 for (var t in repo.objects) 
        {
            riverLandmark =  repo.objects[t];                        

            // 2014-06-27: Veriy if the landkmark object has containsPoint function
            if ("function" === typeof riverLandmark.geometry.containsPoint){
                if(riverLandmark.geometry.containsPoint(streetVertices[0])){
                    bAddNew = false;	// Street is inside an existing river
                    break;
                }
            }
        }
with

Code: Select all

 
for (var t in repo.objects) 
        {
            riverLandmark =  repo.objects[t];                        
           
            if (riverLandmark.attributes.categories[0] === "RIVER_STREAM")
            {
            // 2014-06-27: Veriy if the landkmark object has containsPoint function
            if ("function" === typeof riverLandmark.geometry.containsPoint){
                if(riverLandmark.geometry.containsPoint(streetVertices[0])){
                    bAddNew = false;	// Street is inside an existing river
                    break;
                }
            }
            }    
        }
Hi VlBee:

Thank you for your contribution. Let me do some test with your code (It looks great!)

PS. Sorry for the late response....
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
Posts: 944
Has thanked: 184 times
Been thanked: 310 times
Send a message
download/file.php?id=66141
Local Champ - Level 6
Waze Costa Rica: Wiki, Facebook, Forums

Post by EduardoCarvajal
aljcd wrote:Hi, I like your script a lot, and it has helped me draw several rivers. However, the maximum number of nodes the road to become river allows me to have is only 55, no more. If a draw a street with more nodes than that, the polygon stops before the end of the road. Is this a normal behavior?
Hi alcd:

If you draw a huge river at once sometimes, WME Editor fails to save it. This is why the script limits the river to 55 nodes.

If you need to draw a very big river, it is better to expand it instead of creating a new huge river. Follow these steps:
  • Draw a helper street
  • Press StreetToRiver button (This create the initial river)
  • Delete the helper street
  • Save Changes
  • Draw a new helper street inside the new river but near the end of it.
  • Press StreetToRiver button (The river expands)
  • Delete helper street
  • Save Changes
  • Repeat the process until you reach the desired river size
To create a new river:
StreetToRiver-Create.png
StreetToRiver - Create
(200.09 KiB) Downloaded 1055 times
To expand an existing river:
StreetToRiver-Expand.png
Street to River - Expand
(172.1 KiB) Downloaded 1060 times
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
Posts: 944
Has thanked: 184 times
Been thanked: 310 times
Send a message
download/file.php?id=66141
Local Champ - Level 6
Waze Costa Rica: Wiki, Facebook, Forums

Post by EduardoCarvajal
esalvat wrote:Hola!

Es un script excelente. ¿Ha considerado que exista una opción para unir dos landmarks de rios?

Saludos!
Hola,

Unir dos landmarks es una buena idea. Gracias por su aporte.

Hi,

Join two landmarks is a good idea. Thank you for your contribution.
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
Posts: 944
Has thanked: 184 times
Been thanked: 310 times
Send a message
download/file.php?id=66141
Local Champ - Level 6
Waze Costa Rica: Wiki, Facebook, Forums

Post by EduardoCarvajal
Nomenclator1677 wrote:Hi,

It seems the script is out. I can't add a new river.

No problem for me as few days ago it worked perfectly

Thanks ;)
Hi,

I'm working on it.
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
Posts: 944
Has thanked: 184 times
Been thanked: 310 times
Send a message
download/file.php?id=66141
Local Champ - Level 6
Waze Costa Rica: Wiki, Facebook, Forums

Post by EduardoCarvajal
Hi All

Version 15.05.01 is here

This version includes:
  1. Fix compatibility problems with new Waze Editor
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
Posts: 944
Has thanked: 184 times
Been thanked: 310 times
Send a message
download/file.php?id=66141
Local Champ - Level 6
Waze Costa Rica: Wiki, Facebook, Forums

Post by EduardoCarvajal
seb-d59 wrote:
Glodenox wrote:
seb-d59 wrote:Can you modify your bootstrap for compatibility with FF ;)
I thought for a moment you were talking to me :lol: It shouldn't have taken me two minutes to realise that's a message to the script author...
Oups! :mrgreen:
My message is addressed to the script author :D
Firefox compatibility fixed on version 16.3.1
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
Posts: 944
Has thanked: 184 times
Been thanked: 310 times
Send a message
Last edited by EduardoCarvajal on Thu Mar 31, 2016 1:26 am, edited 1 time in total.
download/file.php?id=66141
Local Champ - Level 6
Waze Costa Rica: Wiki, Facebook, Forums

Post by EduardoCarvajal
Hi All

Version 16.03.1 is here

This version includes:
  1. Fix Firefox compatibility problems
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
Posts: 944
Has thanked: 184 times
Been thanked: 310 times
Send a message
download/file.php?id=66141
Local Champ - Level 6
Waze Costa Rica: Wiki, Facebook, Forums

Post by EduardoCarvajal
Hi All

Version 16.05.12 is here

This version includes:
  1. Now you can add and expand rivers inside another landmark (like a Forest)
EduardoCarvajal
Local Champ Mentor
Local Champ Mentor
Posts: 944
Has thanked: 184 times
Been thanked: 310 times
Send a message
download/file.php?id=66141
Local Champ - Level 6
Waze Costa Rica: Wiki, Facebook, Forums