[Script] WMEMagic

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: Unholy, bextein, Glodenox, JustinS83

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.

Re: [Script] WMEMagic

Postby Mvan231 » Thu Aug 15, 2019 2:49 am

It would be a great setting for Magic if it could turn off above (or below? zoomed out) a certain zoom level
- Mark
Mvan231 (3) MI AM
GLR | Michigan Editor
Wazeopedia :lol: | Engineer :geek: | iOS user :)
Mvan231
 
Posts: 717
Joined: Tue Feb 11, 2014 3:05 pm
Location: Great Lakes Region / Michigan
Has thanked: 646 times
Been thanked: 99 times

Re: [Script] WMEMagic

Postby dbcm » Mon Sep 02, 2019 7:41 pm

Mvan231 wrote:It would be a great setting for Magic if it could turn off above (or below? zoomed out) a certain zoom level


Magic does that on some plugins. You'll see that some are turned off
It's so Magic™ | Y U N0 W0RK? ¯\_(ツ)_/¯
dbcm
Coordinators
Coordinators
 
Posts: 580
Joined: Mon Feb 08, 2010 12:25 pm
Location: Berlengas, Portugal
Has thanked: 206 times
Been thanked: 604 times

Re: [Script] WMEMagic

Postby dbcm » Mon Sep 02, 2019 7:43 pm

Version 175 with minor stuff, mostly

- Added support for Belarus and Macau countries
- Added Russian language

For Belarus and Russian, alex_miami will do the magic.

Macau is with me
It's so Magic™ | Y U N0 W0RK? ¯\_(ツ)_/¯
dbcm
Coordinators
Coordinators
 
Posts: 580
Joined: Mon Feb 08, 2010 12:25 pm
Location: Berlengas, Portugal
Has thanked: 206 times
Been thanked: 604 times

Re: [Script] WMEMagic

Postby dbcm » Wed Sep 18, 2019 6:33 pm

Hi gang, Magic will be able to complain (if configured), if a specific roadType with toll is not protected correctly.

As toll prices are hardwired with segment IDs, those segments should not be deleted.
In Portugal we are protecting those segments with L6.

Below is our example. We are protecting freeways and ramps
seg_lockrank:freeway_roads_toll seg_lockrank freeway_roads_toll TRUE 6 HL if not rank locked
seg_lockrank:ramp_roads_toll seg_lockrank ramp_roads_toll TRUE 6 HL if not rank locked
It's so Magic™ | Y U N0 W0RK? ¯\_(ツ)_/¯
dbcm
Coordinators
Coordinators
 
Posts: 580
Joined: Mon Feb 08, 2010 12:25 pm
Location: Berlengas, Portugal
Has thanked: 206 times
Been thanked: 604 times

Postby Hugo_Moreira » Wed Sep 18, 2019 7:30 pm

Staff commented that they are thinking in a solution to prevent tampering with segments used to apply the tool fee (a warning perhaps), but until they come up with a solution, this is a very good option!

Otherwise, a simple click in toolbox merge segments, could jeopardize tolls!
Last edited by Hugo_Moreira on Wed Sep 18, 2019 7:32 pm, edited 2 times in total.
[ img ][ img ][ img ][ img ][ img ][ img ]
______________________________________
Country Manager Portugal, Area Manager Aveiro PT, Valencia ES
Hugo_Moreira
Country Manager
Country Manager
 
Posts: 144
Joined: Fri Feb 28, 2014 7:00 pm
Location: Aveiro, Portugal
Has thanked: 88 times
Been thanked: 76 times

Re: [Script] WMEMagic

Postby dbcm » Sat Sep 21, 2019 8:34 pm

Today i found out a very strange behavior.

ME: Hey, i found out a new bug on Magic.

Looking closer, and doing a lot of debug, it was actually a feature.

Looks like there were a geometry segment really close to the node.


Screen Shot 2019-09-21 at 21.08.26.jpg
(222.92 KiB) Downloaded 131 times


Screen Shot 2019-09-21 at 21.09.17.jpg
(48.25 KiB) Downloaded 136 times


Screen Shot 2019-09-21 at 21.09.28.jpg
(74.36 KiB) Downloaded 133 times
It's so Magic™ | Y U N0 W0RK? ¯\_(ツ)_/¯
dbcm
Coordinators
Coordinators
 
Posts: 580
Joined: Mon Feb 08, 2010 12:25 pm
Location: Berlengas, Portugal
Has thanked: 206 times
Been thanked: 604 times

Re: [Script] WMEMagic

Postby jm6087 » Sat Sep 21, 2019 8:54 pm

I have found the same "bug" myself on several occasions.

I have learned to dig deeper if I can't find something obvious :D
jm6087
US Waze Champs
US Waze Champs
 
Posts: 3674
Joined: Wed Jun 17, 2015 10:05 pm
Location: Texas
Has thanked: 620 times
Been thanked: 1497 times

Re: [Script] WMEMagic

Postby dbcm » Sat Sep 21, 2019 9:08 pm

Screen Shot 2019-09-21 at 22.05.38.jpg
(216.34 KiB) Downloaded 134 times


Related with my previous post. Looks like a geometry node is over a segment connection node.
W.selectionManager.getSelectedFeatures()[0].geometry.components[0].distanceTo(W.selectionManager.getSelectedFeatures()[0].geometry.components[1])
0


Magic will complain if the distance between geometry nodes is smaller than 1m.

LMK if you find any false positives.

WME Magic v179
It's so Magic™ | Y U N0 W0RK? ¯\_(ツ)_/¯
dbcm
Coordinators
Coordinators
 
Posts: 580
Joined: Mon Feb 08, 2010 12:25 pm
Location: Berlengas, Portugal
Has thanked: 206 times
Been thanked: 604 times

Re: [Script] WMEMagic

Postby dbcm » Sat Sep 21, 2019 9:47 pm

jm6087 wrote:I have found the same "bug" myself on several occasions.

I have learned to dig deeper if I can't find something obvious :D



Now that Magic complains, I'm finding several ones.

Well, extra points for the community. :)
It's so Magic™ | Y U N0 W0RK? ¯\_(ツ)_/¯
dbcm
Coordinators
Coordinators
 
Posts: 580
Joined: Mon Feb 08, 2010 12:25 pm
Location: Berlengas, Portugal
Has thanked: 206 times
Been thanked: 604 times

Re: [Script] WMEMagic

Postby dbcm » Sun Sep 22, 2019 12:01 am

hummmm....

https://www.waze.com/editor?env=row&lon ... lor=0F0F0F


Screen Shot 2019-09-22 at 00.59.47.png
(99.56 KiB) Downloaded 114 times



#WME SlackNotifier
It's so Magic™ | Y U N0 W0RK? ¯\_(ツ)_/¯
dbcm
Coordinators
Coordinators
 
Posts: 580
Joined: Mon Feb 08, 2010 12:25 pm
Location: Berlengas, Portugal
Has thanked: 206 times
Been thanked: 604 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: voludu2