Script Summary: Overlays UR/map problem markers onto the Waze Livemap
0.1 - 20121017 - initial release
0.2 - 20121017 - adds markers for map problems, should now work on NA server, prompts user to login if not already logged-in
0.3 - 20121104 - shows the managed and editable areas for the currently logged-in user
0.4 - 20121104 - managed/editable area rendering code no longer triggers the "Unable to access UR/problem data on server" error, and now also handles editable areas which are defined as multiple smaller areas (this is why the editable area highlight could disappear and reappear as you panned across certain areas of the map at certain zoom levels). Code is now event driven
0.5 - 20121120 - URs and problems now have simple overview popups, fixed problem getting UR etc data in northern parts of the UK (the same problem almost certainly existed in other areas of the map as well...), and moved script info/checkbox up to top of livemap
0.6 - 20121125 - Now handles the occasional instance where Waze returns partial data for other users in addition to the full data for the logged-in user (the end result of which was that the script would trigger its "unable to access..." error handler despite the server having sent all the required data)
0.7 - 20121218 - Re-enables use of Search Address/Get Directions Livemap functions. Now loads UR/problem data for a 3 degree x 3 degree square centred on the current livemap centre position, caching all data loaded during this browser session and highlighting each of the 1x1 degree cached data squares in pale yellow. Fixes UR/problem pop-up non-appearance issue if the livemap window has been scrolled.
0.8 - 20121219 - Adds support for Turn Problems (these are marked on the map as green circles). Fixes the marker misalignment issue if the map is panned quickly.
0.9 - 20121228 - Fixes marker misalignment issue if map is nudged to provide space for a Waze-generated event popup.
1.0 - 20130226 - UR, map problem and turn problem markers can now be individually enabled/disabled. UR markers can be filtered by age. UR markers changed from squares to diamonds (this allows each of the three marker types to be differentiated both by colour AND shape).
1.1 - 20130318 - Added keyword filtering to UR markers, and type filtering to both URs and map problem markers, replicating and improving on the filtering options in the UROverview script.
1.1.1 - 20130319 - Problem marker filtering should now work OK in "Show" mode...
1.2 - 20130319 - Problem marker filtering now works for all problem types. Enabled display of URs and problems outside of the users editable area.
1.2.1 - 20130323 - Fixed keyword filtering. Marker popups now remain in view if marker is close to bottom or right-hand edge of the livemap.
1.3 - 20130326 - Prompts user to switch to HTTPS server if required. At zoom levels of 4 and below, clusters of 10 or more markers are replaced by black circles showing the number of markers within that cluster, reducing rendering time and visual clutter.
1.4 - 20130327 - User settings are now saved between sessions.
1.5 - 20130516 - Turn problem markers are now visible again, and map problem markers have reverted to squares...
1.6 - 20130525 - Map problems can now be filtered by their severity (i.e. what colour their markers are in WME)
1.7 - 20130820 - Supports new "Blocked road" URs. Improved startup behaviour when running on non-secure URL.
1.8 - 20130822 - Support regex searching of keywords.
2.0 - 20131012 - Rewritten to support new Livemap site.
2.1 - 20131013 - Enabled for localised Livemap URLs. Replaced auto show/hide UI functionality with manual controls to prevent unwanted scrolling of UI on systems unable to show full height UI.
2.2 - 20131015 - No longer blocks the native Report a problem/permalink/etc popup when "Hide Livemap markers" is ticked. Automatically refreshes data every 30s for the 3 degree x 3 degree area in the centre of the map, fades out visualisation of data that hasn't been refreshed, and discards it entirely after 300s. Marker popups include a comment on when the data for that marker was last refreshed.
2.3 - 20131020 - Tweak to UI layout code