Switch to full style
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.

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.
Topic locked

Re: [Script] WME Closest Segment

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!

Re: [Script] WME Closest Segment

Fri Jul 17, 2015 8:46 pm

Apologies, somehow I missed the second and third pages of the discussion. Doh.

Re: [Script] WME Closest Segment

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.

Re: [Script] WME Closest Segment

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?

Image

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:
var line = new OpenLayers.Geometry.LineString([array containing your two OL.Geometry.Point(s)]);
var measureDistance = line.getGeodesicLength(Waze.map.getProjectionObject());

Re: [Script] WME Closest Segment

Mon Mar 23, 2015 9:23 pm

Suggestion retracted! ;)

Re: [Script] WME Closest Segment

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.

Re: [Script] WME Closest Segment

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.

Re: [Script] WME Closest Segment

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)?

Re: [Script] WME Closest Segment

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
place point ofset 01.jpg (146.69 KiB) Viewed 1354 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
place point offset 02.jpg (191.99 KiB) Viewed 1351 times

Re: [Script] WME Closest Segment

Mon Nov 14, 2016 12:58 am

First time using the script. It is nice. Thanks for your time put towards it!
Topic locked