[Script] Live Map UR Layer v2.21 (20150317)

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.

Moderator: Unholy

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] Live Map UR Layer v1.0 (20130226)

Postby twist3r » Sat Mar 16, 2013 8:15 am

Is this script supposed to work on Chrome ? Because I can't see anything new in Livemap even if there are UR's that I have the right to edit.
Country Manager Romania
Waze 3.9 - Android 5.0.2 OnePlusOne
Logo Waze România
Harta Waze România - Neoficial
ImageImage
https://www.facebook.com/TMTrafic
twist3r
Country Manager
Country Manager
 
Posts: 731
Joined: Sun Jul 04, 2010 1:22 pm
Location: Timișoara, România
Has thanked: 78 times
Been thanked: 126 times

Re: [Script] Live Map UR Layer v1.0 (20130226)

Postby twist3r » Sat Mar 16, 2013 10:37 am

I was expecting that but no bar was visible. However I missed the part were it was written that you have to be on https version of livemap, not the http. I always used the default one that is http and never thought using a more secure one.

Now with https:// the bar is visible and the script is working just fine. My bad
Country Manager Romania
Waze 3.9 - Android 5.0.2 OnePlusOne
Logo Waze România
Harta Waze România - Neoficial
ImageImage
https://www.facebook.com/TMTrafic
twist3r
Country Manager
Country Manager
 
Posts: 731
Joined: Sun Jul 04, 2010 1:22 pm
Location: Timișoara, România
Has thanked: 78 times
Been thanked: 126 times

[Script] Live Map UR Layer v2.21 (20150317)

Postby Twister-UK » Wed Oct 17, 2012 6:15 am

This is a first stab at hacking together a UR/map problems layer for the Waze livemap view. This version is intended for users to test the core functionality required in such a layer - namely the ability for a third-party script to retrieve UR/problem data from the Waze server when no such data is already present on the page, and to then display it somehow over the existing map view.

After installation, you should see a new checkbox at the bottom of the Live Map window, titled "Update Requests". Tick this box to activate the script. Once active, the script monitors for any movement/zooming of the live map view, and requests the current UR/problem data from the Waze server for the area being viewed. The locations of any received URs are then plotted on the map as a small red/blue box (map problems are not plotted at present).

The Waze servers will not return any data for an area wider or taller than 1 degree of lat/lon, so if the livemap is zoomed out too far the script will only retrieve data for the central area. The area in which data is being requested should show up as a translucent yellow box.

Note that the Waze server will only return data if there is a logged-in user, and the data returned is filtered according to the editable areas assigned to that user - this script cannot display ALL the URs/problems in a given area, ONLY those that the logged-in user would be able to edit.


Firefox+Greasemonkey version: https://greasyfork.org/scripts/1948-livemap-ur-overlay
Chrome Web Store version: https://chrome.google.com/webstore/deta ... niefljookp
Last edited by Twister-UK on Tue Mar 17, 2015 8:27 pm, edited 41 times in total.
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1505
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 179 times
Been thanked: 1046 times

Re: Proof of Concept script: UR layer in Live Map

Postby Twister-UK » Wed Oct 17, 2012 11:50 am

A few improvements for the 0.2 proof of concept release

* should now work on the NA server as well as the world one
* prompts users to log-in if they aren't already
* now shows map problems as green dots

Note - the script will only be activated if you are using the secure live map server - if you do not see the checkbox at the bottom of the live map window, you're probably on the non-secure server...

http://userscripts.org/scripts/show/150276
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1505
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 179 times
Been thanked: 1046 times

Re: Proof of Concept script: UR layer in Live Map

Postby Twister-UK » Sun Nov 04, 2012 12:49 am

V0.3 now shows the users managed and editable areas - since the UR and problem data is only returned within these areas, displaying them on the livemap makes it clearer whether or not an area is genuinely devoid of problems or simply appears so because you don't have editing rights there...

http://userscripts.org/scripts/show/150276
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1505
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 179 times
Been thanked: 1046 times

Re: Proof of Concept script: UR layer in Live Map v0.4

Postby Twister-UK » Sun Nov 04, 2012 12:57 pm

Thanks for the bug report, 0.4 should now have solved that problem... In fixing that error, I've also resolved the problem where the editable area would appear and disappear if you were panning across certain parts of the map at certain zoom levels.

Linking the UR/problem markers to WME is my long-term intention for this script, but I don't want to rush into this until I'm happy that the foundations of the code are OK, hence all of these proof of concept versions.

http://userscripts.org/scripts/show/150276
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1505
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 179 times
Been thanked: 1046 times

Re: Proof of Concept script: Live Map UR Layer v0.5 (2012112

Postby Twister-UK » Tue Nov 20, 2012 10:18 pm

With the international editor out of action, I decided to dust off the LMUR source and do some long overdue updates...

0.5 fixes a data retrieval glitch which exhibited itself in the northern reaches of the UK (and would most likely also appear in other parts of the world too), it moves the script info/activation checkbox up to the top of the livemap view, and, saving the best till last, it now features overview popups for the UR and problem markers.

Note that, unlike the popups in my UROverview script, these ones are (for the moment at least) just for information - there's no links to open WME at the UR/problem location etc.

http://userscripts.org/scripts/show/150276
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1505
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 179 times
Been thanked: 1046 times

Re: Proof of Concept script: Live Map UR Layer v0.5 (2012112

Postby Twister-UK » Wed Nov 21, 2012 10:00 am

foxitrot wrote:I do not see the the overview popups for URs+MPs on INTL server - because of the shut down WME?


No, the script has been working OK for me all throughout the shutdown. If the red/green markers have been placed on the livemap, then the script has all the information it needs to generate the popups, so there must be some other reason why they're not appearing. Do you see any errors in the javascript console?

foxitrot wrote:Never mind. The script uses a vertical yellow rectangle, sized approx. 70 x 100 km, as a looking glass for the markers. Is there any specific reason to make it vertical (if not already a square), like an API constraint? A horizontal orientation would suit more...


When requesting the UR/problem data from the Waze server, the largest area you can ask for in a single request is 1 degree * 1 degree, and so this is what the script currently requests each time you move/zoom the map. The reason this 1*1 area appears to be rectangular rather than square is due to the projection method used to generate the live map - the further north or south you move from the equator, the more the projection vertically stretches the map. If you view the livemap near the equator, you should see the script bounding box appears to be a square, and as you then pan north or south, you'll see it slowly elongating into the portrait-oriented rectangle more familiar to users in non-equatorial regions...

One of the things I'll be looking into for future versions of the script is a more intelligent data request process, so that the script doesn't ask for more data than necessary if you're zoomed right into the map, and also so that it can request multiple blocks of data to cover more of the map when you're zoomed further out.


foxitrot wrote:The Extended Tools for Papyrus and one more Timbones' script contain (or contained) code for maximizing the usable area by (at least) hiding the upper black Waze banner and navigation bar. Could you try to bind such change (hide the "body_bg.png", "content_wrapper"/"navigation" and "content_wrapper"/"navigation_bottom_wrapper" in order to vertically enlarge the LiveMap's "map_container" area) on the "Show URs/map checkbox problems" state?


Possibly...
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1505
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 179 times
Been thanked: 1046 times

Re: Proof of Concept script: Live Map UR Layer v0.6 (2012112

Postby Twister-UK » Sun Nov 25, 2012 11:30 pm

0.6 resolves what I suspect was a long-standing problem which would incorrecly trigger the "unable to access..." handler if the server returned partial data for any other users in addition to the data expected for the logged-in user.

http://userscripts.org/scripts/show/150276
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1505
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 179 times
Been thanked: 1046 times

Re: [Script] Live Map UR Layer v0.6 (20121125)

Postby Twister-UK » Sat Dec 15, 2012 2:33 pm

Which browser? I've got an update for LMUR in the pipeline, so if there is a problem I'll look to fix it as part of that release.
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1505
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 179 times
Been thanked: 1046 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: dchary2418

cron