Get a sneak peek at whats next for Permanent Hazards on our April 7th Office Hours!
Post by Superfraggle
No worries, I have reloaded the page several times, seems to be loading ok, but not working each time.

Interestingly though Timbones script shows me the advanced options.
Superfraggle
Area Manager
Area Manager
Posts: 1015
Has thanked: 43 times
Been thanked: 107 times
Send a message
[img]https:///AvrXT[/img][img]https:///p9mgM[/img]

Post by Superfraggle
Not sure about the latest release but at last check it was still pronouncing it as street.
Superfraggle
Area Manager
Area Manager
Posts: 1015
Has thanked: 43 times
Been thanked: 107 times
Send a message
[img]https:///AvrXT[/img][img]https:///p9mgM[/img]

Post by theMadcabbie
A slight bug that may become an irritant. If you do something that might refresh the map, and with the OSOpenData dropdown closed, the visible map will load in a misaligned version of the Open Roads map, just for the visible view. I've found this mostly happens when you open up street view:
I have found the same, but a huge thank you, I'm loving this update.

Oh how I wish I could script :mrgreen:
theMadcabbie
Posts: 592
Has thanked: 305 times
Been thanked: 142 times
Send a message
Mark
theMadcabbie
I've now returned to the NHS and nursing - So editing time is limited
https://storage.googleapis.com/wazeoped ... Rank_5.pnghttps://storage.googleapis.com/wazeoped ... Tester.pnghttps://storage.googleapis.com/wazeoped ... _Badge.png
AM for Thames Valley / Sierra Leone & Ghana / Isle of Man / Scotland, Shetlands and Outer Scottish Islands :evil:

https://storage.googleapis.com/wazeoped ... IPIain.png R I P Iain House - Oct 2021

Post by Timbones
Has anyone worked out how to open the OS Viewer at a certain location? That would make for a very handy bookmarklet...
Timbones
Coordinators
Coordinators
Posts: 7357
Answers: 2
Has thanked: 952 times
Been thanked: 2916 times
Send a message
Timbones(6) • UK Coordinator • Forum Moderator • Closure Monitor
Scripts: WME Colour HighlightsWME Route TesterWME Geometries

Post by Timbones
I've split this thread from the other one, as it serves a different purpose now.

Twister_UK - great work by the way. You might want to merge these two into a single script, which should be easy to do if you test the document.location in the body of the script. Also, have you considered uploading it to userscripts.org? I did this with the Livemap Navigation script, and it's easier to maintain and distribute to users. I can help with either of these if you like...

PS: Or, you could host the script(s) on your own server if you prefer.
Timbones
Coordinators
Coordinators
Posts: 7357
Answers: 2
Has thanked: 952 times
Been thanked: 2916 times
Send a message
Timbones(6) • UK Coordinator • Forum Moderator • Closure Monitor
Scripts: WME Colour HighlightsWME Route TesterWME Geometries

Post by Timbones
xteejx wrote:Even if a previously opened link is open from the same site, the script will still open another tab. Any way to <test> the opened tabs to see if one is already open and refresh it?
This should be easy to do - just need to set target="OSOpenData" to the href elements.
xteejx wrote:Once one (or several different) tabs are open, would it be possible to continuously poll for changes in lat/long and change it automatically according to WME? i.e. have another window open in a side-by-side Windows 7 click-to-side thing and drag WME in Window 1 and Window 2 moves too?
I wanted to do this before, but never got around to trying to work out how.

Meanwhile, I'm trying to workout how to replace the second script with bookmarklets. The MusicalChairs link is easy, but I'm struggling to persuade OpenLayers to do the transform to EPSG:27700. Failing that, it should be possible to do a version of the script that does the conversions via the onClick event, rather than continuously polling the browser.[/nerd]
Timbones
Coordinators
Coordinators
Posts: 7357
Answers: 2
Has thanked: 952 times
Been thanked: 2916 times
Send a message
Timbones(6) • UK Coordinator • Forum Moderator • Closure Monitor
Scripts: WME Colour HighlightsWME Route TesterWME Geometries

Post by Timbones
Dave2084 wrote:All we need now is "WME musical chairs" to check Waze road-names against the OS Locator DB :D
I have started working on something to do this... not got very far.
Timbucks had something going too.
Timbones
Coordinators
Coordinators
Posts: 7357
Answers: 2
Has thanked: 952 times
Been thanked: 2916 times
Send a message
Timbones(6) • UK Coordinator • Forum Moderator • Closure Monitor
Scripts: WME Colour HighlightsWME Route TesterWME Geometries

Post by Timbones
dmcconachie wrote:Not always. I still refuse to go by that up here! Even under the pretense that we some day get a region field and it'll be easier to parse, it's butt ugly on the client /today/!
Ditto. If we do ever get this field, Counties would be best defined geographically.

County suffixes are only need on non-unique names.
Timbones
Coordinators
Coordinators
Posts: 7357
Answers: 2
Has thanked: 952 times
Been thanked: 2916 times
Send a message
Timbones(6) • UK Coordinator • Forum Moderator • Closure Monitor
Scripts: WME Colour HighlightsWME Route TesterWME Geometries

Post by Timbones
Great work on these scripts, Twister!

I think I know what you need to do to get this working in Chrome. The @require feature can be replicated by injecting the script directly into the body of the editor's HTML. This is how the Extended Tools plugin does it. Something like this (untested):

Code: Select all

  var script = document.createElement("script");
  script.setAttribute('type','text/javascript');
  script.src = "http://greasemonkey.chizzum.com/osl_10km.js";
  document.getElementsByTagName("head")[0].appendChild(script);
Timbones
Coordinators
Coordinators
Posts: 7357
Answers: 2
Has thanked: 952 times
Been thanked: 2916 times
Send a message
Timbones(6) • UK Coordinator • Forum Moderator • Closure Monitor
Scripts: WME Colour HighlightsWME Route TesterWME Geometries

Post by Timbones
Setting the "Expires" header on the .js file would fix that. Enabling compression would get the file size down, while JSON may be a better file format to use for the data.

In my (incomplete) version, I kept the OS data on my server, and queried just the coords I needed. I'll see if I can contribute some improvements later this week.

via mobile
Timbones
Coordinators
Coordinators
Posts: 7357
Answers: 2
Has thanked: 952 times
Been thanked: 2916 times
Send a message
Timbones(6) • UK Coordinator • Forum Moderator • Closure Monitor
Scripts: WME Colour HighlightsWME Route TesterWME Geometries