[Script] WME Closest Segment

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] WME Closest Segment

Postby Bmtg » Fri Jul 17, 2015 4:06 pm

Hey SAR85, cool script. I've noticed that it will snap to railroads and other non-routing segments if they are closest. Any way to exclude those types? Thx!
Rank 5 Editor - Mentor

Important Links for New Editors
Welcome to Map Editing
Getting Started
Incorrect Edits

Waze Southeast specific Links (Alabama, Florida, Georgia)
Southeast Wiki
Join our regional Slack forum
Bmtg
Area Manager
Area Manager
 
Posts: 1060
Joined: Mon Jan 05, 2015 5:05 pm
Location: Tampa, FL USA
Has thanked: 463 times
Been thanked: 158 times

Re: [Script] WME Closest Segment

Postby Bmtg » Fri Jul 17, 2015 8:46 pm

Apologies, somehow I missed the second and third pages of the discussion. Doh.
Rank 5 Editor - Mentor

Important Links for New Editors
Welcome to Map Editing
Getting Started
Incorrect Edits

Waze Southeast specific Links (Alabama, Florida, Georgia)
Southeast Wiki
Join our regional Slack forum
Bmtg
Area Manager
Area Manager
 
Posts: 1060
Joined: Mon Jan 05, 2015 5:05 pm
Location: Tampa, FL USA
Has thanked: 463 times
Been thanked: 158 times

Re: [Script] WME Closest Segment

Postby carloslaso » Thu Jul 13, 2017 7:08 pm

G_W1Z wrote:
dspille wrote:
G_W1Z wrote:This script disrupts edits for AP's.


Have you considered using WME PIE, which has now incorporated the CS functionality (and improved upon it)?


I have PIE installed and use it. I just wanted to pass along my experience in case it was considered a bug worth squashing.


Like dspille said, it would be better if you continue using WME Place Interface Enhancements (WME PIE).

This script is not being worked on at the moment. I'll lock this thread and I will reopen it when/if the original developer comes back.

More info.
[ img ][ img ]
Coordinador de Comunidad en México / Foro MX / Waze Status
Supervisor Noroeste México

iPhone 11 Pro Max / iOS 13ß / Waze ß 4.x
carloslaso
Global Champ Mentor
Global Champ Mentor
 
Posts: 3166
Joined: Fri Aug 20, 2010 1:30 am
Location: Sonora, Mexico
Has thanked: 1840 times
Been thanked: 2482 times

Re: [Script] WME Closest Segment

Postby davielde » Sun Mar 22, 2015 4:35 pm

Nice work!

Aesthetically, I really like the stroke color matching WME, at least for point Places. I'm kind of up in the air about it though when looking at an area Place. It may be better to differentiate more between your closest segment line and area outline--if not by color then perhaps by stroke width?

[ img ]

Second thing is something that I would recommend after having coded the Measurement Tool for Toolbox. I noticed that you are using distanceTo between two points. In most cases, it probably would not make a difference, especially with smaller distances. With the spherical mercator map projection, however, it would be more appropriate to get the geodesic length, which is available if you first create a linestring between the two points. Here's some sample code from Toolbox:
Code: Select all
var line = new OpenLayers.Geometry.LineString([array containing your two OL.Geometry.Point(s)]);
var measureDistance = line.getGeodesicLength(Waze.map.getProjectionObject());
[ img ]
CM: USA
SM: Michigan, Vermont
AM: Ann Arbor, MI & Thunder Bay, ON
WME Michigan
davielde
 
Posts: 1219
Joined: Tue Sep 17, 2013 2:01 pm
Location: Michigan, USA
Has thanked: 461 times
Been thanked: 759 times

Re: [Script] WME Closest Segment

Postby davielde » Mon Mar 23, 2015 9:23 pm

Suggestion retracted! ;)
[ img ]
CM: USA
SM: Michigan, Vermont
AM: Ann Arbor, MI & Thunder Bay, ON
WME Michigan
davielde
 
Posts: 1219
Joined: Tue Sep 17, 2013 2:01 pm
Location: Michigan, USA
Has thanked: 461 times
Been thanked: 759 times

Re: [Script] WME Closest Segment

Postby dspille » Tue May 23, 2017 5:25 pm

I may have identified a possible issue with this script and the new entry points for PP venues feature in today's WME Version v1.35-7 release. With WME Closest Segment running, any changes to the venue entry point do not result in a change so you can press the save button. The new feature works properly if I disable this script. I'm running version 1.0.2.9.
Thanks,
dspille
Country Manager, Multi-State Manager - South Central Region

SCR Wiki
[ img ][ img ][ img ][ img ][ img ]
dspille
Country Manager
Country Manager
 
Posts: 415
Joined: Sat Mar 12, 2016 11:05 pm
Location: Texas, USA
Has thanked: 534 times
Been thanked: 151 times

Re: [Script] WME Closest Segment

Postby dspille » Tue May 23, 2017 5:39 pm

Thanks, JustinS83. That worked. I did restart my browser and disabled and re-enabled scripts one by one, but I didn't think to force an update, which is why I posted here. That would have definitely saved some time and trouble.
Thanks,
dspille
Country Manager, Multi-State Manager - South Central Region

SCR Wiki
[ img ][ img ][ img ][ img ][ img ]
dspille
Country Manager
Country Manager
 
Posts: 415
Joined: Sat Mar 12, 2016 11:05 pm
Location: Texas, USA
Has thanked: 534 times
Been thanked: 151 times

Re: [Script] WME Closest Segment

Postby dspille » Thu Jul 13, 2017 6:58 pm

G_W1Z wrote:This script disrupts edits for AP's.


Have you considered using WME PIE, which has now incorporated the CS functionality (and improved upon it)?
Thanks,
dspille
Country Manager, Multi-State Manager - South Central Region

SCR Wiki
[ img ][ img ][ img ][ img ][ img ]
dspille
Country Manager
Country Manager
 
Posts: 415
Joined: Sat Mar 12, 2016 11:05 pm
Location: Texas, USA
Has thanked: 534 times
Been thanked: 151 times

Re: [Script] WME Closest Segment

Postby Fredo-p » Sat Jul 04, 2015 7:18 pm

Stop point location shifts depending on how much of the area is show. This is on version 0.93.

When the place only has part of it shown, it snaps to the closest segment available.
place point ofset 01.jpg
(146.69 KiB) Downloaded 1439 times



When the place is centered in the map, it snaps to the correct, assuming it's the correct, location of the true stop point.
place point offset 02.jpg
(191.99 KiB) Downloaded 1434 times
[ img ][ img ]
Arizona Wiki | @Waze_Arizona Twitter
Verizon Samsung Galaxy S8+

Fredo-p
State Manager
State Manager
 
Posts: 2007
Joined: Mon Aug 05, 2013 4:35 am
Location: Everywhere
Has thanked: 269 times
Been thanked: 643 times

Re: [Script] WME Closest Segment

Postby G_W1Z » Mon Nov 14, 2016 12:58 am

First time using the script. It is nice. Thanks for your time put towards it!
G_W1Z
Pennsylvania LAM (USA:NOR)
Waze Etiquette | Pennsylvania Editing
A Phoenix out of the ashes...
iPhone XS | Apple Car Play
[ img ][ img ][ img ]
G_W1Z
Area Manager
Area Manager
 
Posts: 526
Joined: Sun Jan 25, 2015 5:05 pm
Location: Pennsylvania, USA (NOR)
Has thanked: 1036 times
Been thanked: 126 times

Next

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: jm6087