Jump to content

OS Maps on Cache Pages (with Greasemonkey)


Recommended Posts

I've just released an update to the server-side portion of the code.

 

New features:

Google maps and satellite layers (automatically selected for caches outside of the UK)

The position of your mouse is now shown more clearly in the dd mm.mmm format we all know and love.

As a byproduct of this release, I also submitted a bug patch to the developers of the mapping library I use, so a bonus for them too!

 

There's no need to do anything, the updates should appear straight away.

 

I'm no closer to tracking down the "Image cannot be displayed" problems, my logs of tile usage suggest that there's no issue yet of the OS throttling us.

Link to comment

I've just released an update to the server-side portion of the code.

 

New features:

Google maps and satellite layers (automatically selected for caches outside of the UK)

The position of your mouse is now shown more clearly in the dd mm.mmm format we all know and love.

As a byproduct of this release, I also submitted a bug patch to the developers of the mapping library I use, so a bonus for them too!

 

There's no need to do anything, the updates should appear straight away.

 

I'm no closer to tracking down the "Image cannot be displayed" problems, my logs of tile usage suggest that there's no issue yet of the OS throttling us.

 

 

I still have trouble with the Image display. It works sometimes and not others. I'm trying to work out if it's connected with the route I take to the cache page. Last night I was setting out some new caches and I'd have OS maps on some windows & not on others. I had maps first thing this morning, but not for long and not at all now. Will let you know If I can work out when & what I do when they appear or not.

Link to comment

I've just released version 1.3.1 to fix several minor bugs:

  • Caches on the meridian/equator wouldn't display map.
  • Caches beyond 8° E/W would display in the wrong location on the map.
  • Prevent odd behaviour when loading multiple cache pages at the same time.
  • Add version check to prompt you to update in the future.
  • Cachebust the loaded html page.
  • (Reviewer version for Deci)

The updated version can be downloaded from here.

Edited by Edgemaster
Link to comment

Thanks - it works a treat here.

 

I do worry that this will be a victim of its own success though, as more people start to use it, the 30,000 tiles a day limit will be reached far sooner.

 

It might end up having to be a paid for application so that the OS will remove the limit??

Link to comment

Hi,

 

I stumbled over this script in the OSM diaries. I installed it sucessfully, but I saw only an empty OS map on a cache in Dresden, Germany. Is this script only working in UK? The OS map for Dresden is nearly perfect, so this is not the problem.

 

Thanks Wolfgang

Link to comment

Is this script only working in UK?

 

It works for Germany too, although the UK OS map is not applicable there, so you'll just get blank for that option. In UK it should default to UK OS maps, and for caches outside of UK should default to Google maps. Click on the + in top right to change maps (Google + OSM should work).

 

Works for me for caches in and around Darmstadt.

Link to comment

I'm sorry Edgemaster, But I still can't get the OS maps. just the 'Tile cannot be displayed' message, I can view all the other map options, just not the OS openspace.

I've uninstalled , reinstalled, severals times and don't know what else to try.

I did see them briefly and spasmodically for one day, but not since.

 

The other greasemonkey add-ons I use work ok.

 

Do you do a duffers guide for totally helpless cachers like me?

 

I really do miss the OS maps especially when everyone else says how easy it is to get in going.

 

Thanks for any feedback

Linda

Link to comment
I'm sorry Edgemaster, But I still can't get the OS maps. just the 'Tile cannot be displayed' message, I can view all the other map options, just not the OS openspace.

I've uninstalled , reinstalled, severals times and don't know what else to try.

I did see them briefly and spasmodically for one day, but not since.

 

The other greasemonkey add-ons I use work ok.

 

Do you do a duffers guide for totally helpless cachers like me?

 

I really do miss the OS maps especially when everyone else says how easy it is to get in going.

 

Thanks for any feedback

Linda

 

I had this proplem when I tried to update it on my laptop. Checking the list of scripts in 'Manage User Scripts', I found that I had several older versions still in there although not active. I uninstalled all of these, then installed the latest version and all was well.

 

Check that you have uninstalled ALL previous versions.

Link to comment
I'm sorry Edgemaster, But I still can't get the OS maps. just the 'Tile cannot be displayed' message, I can view all the other map options, just not the OS openspace.

I've uninstalled , reinstalled, severals times and don't know what else to try.

I did see them briefly and spasmodically for one day, but not since.

 

The other greasemonkey add-ons I use work ok.

 

Do you do a duffers guide for totally helpless cachers like me?

 

I really do miss the OS maps especially when everyone else says how easy it is to get in going.

 

Thanks for any feedback

Linda

 

I had this proplem when I tried to update it on my laptop. Checking the list of scripts in 'Manage User Scripts', I found that I had several older versions still in there although not active. I uninstalled all of these, then installed the latest version and all was well.

 

Check that you have uninstalled ALL previous versions.

 

Thanks for replying 'Just Roger'

I've uninstalled everything that mentions maps just to be sure and reinstalled, but still the same.

 

I'm now hoping that Bambography, son Chris, can sort it when he's here next weekend. I'll give up until then.

Thanks

Linda

Link to comment

Odd, I'm watching this thread but I've not been emailed recently about it....

wondalfo: I'll release a version that allows you to default to OSM soon.

Cassie's Crusaders: I still have no clue what's wrong, sorry, I may try and put together some tests when I'm less busy. But for now, check that there's no adblocker acting against the script's image loading.

currykev: Printing the markers is still buggy - due to browser limitations.

Link to comment

It's very annoying!! :unsure:

 

It's only by keeping an eye on this forum and spotting a relevant thread that I can be sure to find out when and how to get the OS maps back. Would there be an easier way to keep updated on the OS script?

The script has an alert update when it actually appears on the page.

I'll revise it so it throws a banner up if it can't find the map to replace.

Link to comment

Just wondering... is it possible to be fixed with the new Google maps? Good as they are and a vast improvement on the Yahoo maps, they're still not a patch on the OS maps.

 

I still can't get OS maps to work on the main page but it turns up when I ask for a printable page.

Edited by Eclectic Penguin
Link to comment

Working perfectly for me on Firefox 2.0.0.14 Many thanks Edgy, you should be in line for quite few pints (beer, coke, whatever is your poison) for this utility.

 

Works great - nice to have it back - you don't realise how much you miss it until you can't see the red dotted footpaths!

Link to comment

I noticed that all the other scripts aren't working now either :)

 

Fiddled about with re-starting, turning Greasemonkey on and off. No luck.

Just noticed the little monkey in the bottom right in the page frame - looking rather sick and sad. Point my mouse at it and it tells me it's disabled. Click it and it's looking colourful and with a smile! Oh look, everything works again now!! :wub::D

 

I must have managed to accidentally click the monkey and disable it. :rolleyes:

 

So, all working well again - really great to have the OS maps back, although I was almost getting used to the Google ones - better than the useless Yahoo ones. But OS ones are the biz and just give such a clear view of where the cache is going to take you. The location of the additional waypoints is also very useful - where's the parking in relation to the cache?

(It would be good if Groundspeak included the add ways on the google map for those unlucky enough not to know edgemaster!)

 

Thanks edgemaster - your dedication and skill is appreciated! :D

Link to comment

I have just finished making changes to the Map Substituter script and am pleased to announce version 1.3.0.

I am trying to build this into more of a generic maps substituter, so will eventually allow maps to be shown from many different providers. For the moment, it currently only displays maps from the Ordnance Survey (50k scale), and OpenStreetMap (just because I want to spread the word of their excellent work some more!)

I will accept requests for more providers - I can probably add just about any that is requested.

 

The Geocaching Map Substituter (formally Enhanced OS Map Substituter) is a user script for Greasemonkey (Mozilla Firefox v2+)

It aims to replace the static Yahoo map on cache pages with an interactive slippy map that offers a selection of different map layers to view. (At the time of publishing this includes: Ordnance Survey OpenSpace, OS New Popular Edition (1940s), and OpenStreetMap)

 

If there are any feature regressions, bugs, other issues, please feel free to post here, this is almost a complete rewrite, so I expect there to be bugs!

 

You should probably uninstall the Geocaching Enhanced OS Map Substituter before installing this.

 

Install from http://edgemaster.geocache.org.uk/geocachingmaps.user.js

 

(Thanks to StuartP for setting me up with some webspace)

 

Can someone please help me I am sooo not good with computers!

 

I've clicked on the link, opened and run the program, and have all this writing on 'notepad', I've tried to read through it but just don't understand it. What should I do now?

 

Many thanks,

 

Emmeline

Link to comment

:)-->

QUOTE(SEJ & B @ Jun 29 2008, 01:39 PM) 3536970[/snapback]

I have just finished making changes to the Map Substituter script and am pleased to announce version 1.3.0.

I am trying to build this into more of a generic maps substituter, so will eventually allow maps to be shown from many different providers. For the moment, it currently only displays maps from the Ordnance Survey (50k scale), and OpenStreetMap (just because I want to spread the word of their excellent work some more!)

I will accept requests for more providers - I can probably add just about any that is requested.

 

The Geocaching Map Substituter (formally Enhanced OS Map Substituter) is a user script for Greasemonkey (Mozilla Firefox v2+)

It aims to replace the static Yahoo map on cache pages with an interactive slippy map that offers a selection of different map layers to view. (At the time of publishing this includes: Ordnance Survey OpenSpace, OS New Popular Edition (1940s), and OpenStreetMap)

 

If there are any feature regressions, bugs, other issues, please feel free to post here, this is almost a complete rewrite, so I expect there to be bugs!

 

You should probably uninstall the Geocaching Enhanced OS Map Substituter before installing this.

 

Install from http://edgemaster.geocache.org.uk/geocachingmaps.user.js

 

(Thanks to StuartP for setting me up with some webspace)

 

Can someone please help me I am sooo not good with computers!

 

I've clicked on the link, opened and run the program, and have all this writing on 'notepad', I've tried to read through it but just don't understand it. What should I do now?

 

Many thanks,

 

Emmeline

 

Using Firefox as your web browser?

Should install itself, if Greasemonkey is installed. (It comes up with a box, with the option to 'intall script'

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...