Jump to content

jri

Members
  • Posts

    325
  • Joined

  • Last visited

Everything posted by jri

  1. Er, no, sorry, don't think that's it. That allows you to install the version published on the Userscripts page, which seems to be 0.6.4, and requires manual editting to get the OS maps back. I've already done that. What I'm after is jri's work-in-progress version, which ought to be accessible via his link, but in Chrome that link just produces the "Can't install scripts from here" warning. Nope, he's right! Those instructions should work. You just need to follow them using the link in my post in place of the install link on userscripts.org
  2. Just updated the work-in-progress version at http://geo.inge.org.uk/GeocachingMapEnhancements.user.js The configuration functions should now (mostly) be working, but still don't quite look right...
  3. In most browsers you need to save the new script over the old one (wherever that is). That depends on what browser you are using, and possibly also what operating system and plugins you have got. In Chrome, you need to re-install the script file, if you had previously installed it as an extension rather than using a script manager. It's much easier just to install my work-in-progress version of GME using the link and instructions in my post from the 22nd. Plus more of the script will be working!
  4. If you send me a copy of one of your (short!) tracks, I can have a look to see what the problem is. You can message me through my geocaching profile - open the GPX file in Notepad or a similar text editor, and cut'n'paste the contents into the message. If it's a fairly simple problem, I might be able to fix it in the next version of GME.
  5. I've updated the test version at the link above. The config menu still doesn't work, but it looks better than last night's effort! Unfortunately I've not got much time for programming at the moment, so I'm concentrating on fixing the script rather than replying to the messages here. It's great to see all the votes of thanks for the though, and the effort people are putting it in to helping each other get it working. We'll make programmers of you yet! However, now that I've got a partially working version, if you can't wait for a full update, my advice is not to edit the script yourself, but to install the latest temporary script from the link above. You should follow the installation instructions at http://geo.inge.org.uk/gme.htm but use the link above instead of the install button on the userscripts.org page.
  6. I've had a chance to get a better look at the changes Groundspeak made to the site on Tuesday night, and started fixing GME to work around them. I've come across three main changes so far: Updating the Leaflet API version. This broke display of certain types of map, including the OS maps, but will hopefully be better once I've got the script working with it properly. Changing the UTFGrid handling code. This is the bit that tells the browser when the mouse is hovering over a geocache icon. Changing it broke cache labelling. Removing the JQuery MobileUI library. This library handles the user interface for the config screens. I'm not sure why it was there in the first place (it didn't seem to be used by the website), but taking it away has caused lots of formatting problems for GME. I think I've fixed the first two problems, and if you want to test my code, you can install a temporary version from this link: http://geo.inge.org....cements.user.js NB. I've not done much testing on this, so it may be full of hideous bugs. In particular, the configuration screen won't be working, and there will be various other formatting issues. I'm also pondering whether there's an easy way for GME to give you access to all the new map types that are now available. That said, they're mainly just re-renderings of OpenStreetMap data, and not all of them work in the UK anyway...
  7. It's now on the i menu so that you can aim the search a bit better. Click the i icon, then click the point to centre your search on. Choose 'List caches' from the menu that pops up, and you'll get a list of the closest caches. The script should also have a way to label and list the caches on the map, but it's currently broken. You can see the full feature list at http://geo.inge.org.uk/gme.htm
  8. Yup, Groundspeaks update to the website last night broke GME again. On the main maps page, they have upgraded from v4 to v5.1 of the Leaflet Maps API, which has stopped OS maps (and other maps that use quadkeys) from working. They still work on cache listing pages (as those pages already use Leaflet v5.0). The fact that Groundspeak use different software versions on different parts of the site is one of the things that make writing scripts such a joy (and one reason the website is slower than it could be). Updating the script for the new API will be easy. In fact, if you know how to edit scripts yourself, search for the function extendLeaflet() then change the line if( L.version >= 0.5 ) {\ to if( true ) {\ and the maps should start working again. Unfortunately, it looks like there are also some changes to the layout or page structure which are breaking the sidebar menus and config screen. I'm away from home at the moment and can't do any debugging on the computer I have with me, so I'm not going to be able to post an updated script until sometime next week. In the meantime, if you spot any more problems that haven't already been mentioned here, let me know and I'll try to include them in the fix.
  9. That's a good idea. I'll keep it in mind for the next version.
  10. Click the i icon, then click on the map where you want to centre the circle, and choose 'Drop marker' from the menu. The default radius is 0.1 miles, the minimum cache separation distance. There isn't an option to put a circle around every cache at the same time as I would prefer it if people found a good location for a cache, then checked that they could place something there, rather than placing caches in mediocre locations because they fill gaps in the saturation map. Also, you still have the problem of avoiding the physical stages of multicaches and final locations of puzzles. These don't show up on the map, but will get flagged up during cache submission.
  11. Do you mean that when you hover the mouse over the map selector icon, the list of maps appears briefly then disappears before you can click on the one you want? That sometimes happens if there are cache icons in the area under the popup menu. There's not too much you can do, other than moving the mouse carefully, or panning the map to a less crowded area. However, you might work around it by using the GME config screen to set OS maps as your default, so it loads automatically. Click on the GME gear icon, then click 'Choose Maps to List' from the config dialog. If you mean that the map selector icon at the top-right of the map and/or the GME icons at the bottom-left just vanish, then it sounds like the script isn't loading properly. That could be caused by over-enthusiastic security software, or a clash with a different extension. If you are using Tampermonkey, you should be able to change the order in which your userscripts load. If that doesn't give you an obvious solution, it might be a bug in the script or a problem caused by something changing on the website. Try reloading the Maps page, then open the Chrome console (press Ctrl-Shift-J) and see if there are any error messages. You should normally see 5 errors and warnings about viewport arguments, and four messages about scripts being inserted.
  12. Which web browser do you use? You could get that problem if you are using Firefox but haven't got Greasemonkey installed (or accidentally disabled it), or if you are using a browser like Opera that needs the script to be saved somewhere specific. The installation section of the documentation may well help - see http://geo.inge.org.uk/gme.htm
  13. On the main map page, click on the GME 'i' icon, then click on the map where you want to start your route. Choose 'Measure Route' from the pop-up menu, and a marker will appear. Click again and choose 'Extend' to add more waypoints.
  14. Just in time for Easter, GME v0.6.4 is out! By popular request, you can set whether you want cache labels to show GC codes or cache names. The default is GC codes, because cache names tend to look very untidy and cover up far too much of the map, especially in areas that are saturated with geocaches. If you use the route measurement function, you can now export your route as a GPX file. You can also drag the GPX link onto another map page, or (in the Chrome browser only) directly to your desktop. I've also removed the broken Google Terrain maps from the default selection, and added in Colin Marquardt's Hillshading layer. NB this change shouldn't have any effect for existing users unless you reset the GME configuration back to defaults. If you are using custom map sources, you might want to export these before resetting. Another minor change: I've moved most of the documentation onto my own website, at http://geo.inge.org.uk/gme.htm As I learn more javascript, GME is getting better under the hood too, with various minor bugs fixed. It's now grown to over 100kB in size, more than 2000 lines of code and over 35,000 downloads! Hope you enjoy the latest version.
  15. jri

    UK souvenir

    Understood. Agreed. So why does the description of the UK Souvenir say "The United Kingdom consists of England, Scotland, Wales and Northern Ireland", if NI is excluded? It may be true of the political UK, but not the geocaching region. The same inconsistency is present in the maps on the statistics page, which highlight Northern Ireland as part of the UK when you log a cache in Great Britain. This would all be much clearer if the name Great Britain were used throughout the site. PS I've always felt that there was a similar issue with Alaska. Surely that's geographically part of Canada?
  16. I see this problem too. It seems to happen once I've been logged in for some while. Reloading the page doesn't help, but logging off then logging back on normally cures it. Like Potato Finder says, it's definitely not due to not having set my home coordinates.
  17. FWIW I'm getting the same on FireFox. Yup, Google have changed the URL scheme for terrain maps in some complicated way. As a quick workaround, you can use the standard Google map with Colin Marquardt's Hill Shading overlay. If you've not already added this to GME, click on the GME gear icon to go to the configuration screen, choose 'Manage additional maps', and paste the following into the 'Mapsource' box: {"alt":"Hillshading", "tileUrl":"http://toolserver.org/~cmarqu/hill/{z}/{x}/{y}.png", "attribution":"Hillshading by <a href='http://wiki.openstreetmap.org/wiki/User:Colin_Marquardt/Hike_%26_Bike_Map'>Colin Marquardt</a> from NASA SRTM data", "overlay":true} Hit OK and you then should be able to turn on and off the Hillshading overlay from the map selector control. You might also want to remove Google Terrain from the list of available maps (via 'Choose maps to list' on the configuration screen).
  18. jri

    Topo maps

    I agree, the popup that appears when you click "Select Map Preferences" is a bit misleading and needs updating. MyTopo used to be an option if you select Leaflet Maps, but it was removed some while ago. I think that the "User Contributed Maps" bullet could also be misleading. It presumably refers to the fact that when you've selected Leaflet Maps, all of the map options are based on user-contributed data from the OpenStreetMap project. However, it implies that there is some way for Geocaching.com users to supply their own maps to use on the website.
  19. The good news is, from JimJinks' feedback, it looks like GME already works in IE9, using the Trixie add-in. The fixes I've made in v0.6.3 should mean that the script largely works under both IE8 and IE9. It might work under IE10 too, but I haven't had any feedback. The bad news is, it doesn't look like Trixie is available any more. I was going to ask you to install it in IE10 and let me know if it works, but as their website has gone down and I can't see anywhere else to download it from, if you haven't already got it, you're stuck. Worse yet, I've not had any other feedback on other cunning ways of getting userscripts to run under IE, and can't see anything too helpful on Google. I might be able to do something a bit Heath-Robinson with bookmarklets, but otherwise, without any decent Greasemonkey clone for IE, it looks like GME support on Internet Explorer could be a bit of a no-hoper...
  20. I've fired up IE8 and confirmed I have the same problem too. It seems to be caused by the same thing as a known bug in the new v5.0 of the Leaflet Maps API, to do with TileLayer Opacity and IE8's shockingly poor support for Cascading Stylesheets. The main map page still uses Leaflet v4, which is why it hasn't broken. Unfortunately the Leaflet folk haven't yet released a fixed version (and Groundspeak may not update to it for a while anyway). Worse yet, the official Leaflet fix may not fix GME. I'll see if I can figure out a workaround, but I'm afraid supporting IE isn't a top priority for me at the moment Well, the workaround was easier than I thought. I've uploaded a bugfix version to http://userscripts.o...pts/show/109145
  21. I've been using OpenAndroMaps vector maps, which are also based on OSM data, but with custom render styles to make them better for hiking and biking. As it's OSM data, they're free to download (although the developer is looking for donations for a new rendering machine!) Maps are available for GB and many other locations worldwide. The maps work with Locus, Orux Maps, and other map software that uses the Mapsforge vector library. I've used the GB and Italy versions, and not had any problems with missing detail.
  22. I've still got this bug, although I've now upgraded to the latest versions of Firefox Mobile, Chrome Mobile and Opera Mobile. However, I think I've figured out what is causing it. What is supposed to happen is this. The sidebar tabs have an <A> link embedded in them. When you click on it, an event listener is supposed to pick up the href attribute from the link, clear all the <DIV> elements in the sidebar scroller (by setting "display:none;" in CSS), then make the <DIV> visible whose id matches the href from the link (by setting "display:block;"). On Android, what seems to happen is that JQuery Mobile intercepts the click, and sets the href attribute on the link to "#" (JQuery Mobile uses hashes for its own inter-page navigation). That means that all of the tabs in the sidebar get cleared, but the event listener can't find the correct one to show. A workaround is possible, which could either be implemented by Groundspeak or inserted using a script on browsers with userscript support. You need to copy the href attribute in each of the tab links into a new attribute, then add a modified event listener that looks for the new attribute. Here's some code that works for me (tested in Opera only): (function() { var i, t; for (t = $("#searchtabs a"),i = t.length-1;i>=0;i--) { t[i].setAttribute("data-gme-href",t[i].getAttribute("href")); }; $("#searchtabs").on("click", function (e) { $("#scroller>div").css("display", "none"); $(document.getElementById(e.target.id || e.target.parentNode.id || e.target.parentNode.parentNode.id || "searchlink" ).getAttribute("data-gme-href")).css("display", "block"); }); }());
  23. The Find My Location button doesn't use Groundspeak data to locate you. It relies on the Geolocation API in your web browser to figure out where you are, and different browsers use different methods. Some desktop browsers are limited to using your IP address, which can be off by hundreds of miles, but some like Chrome and Firefox can also use information about which wifi networks your computer can see, giving a much more accurate result. These methods rely on database services like Google Location Service or Skyhook. Mobile devices are generally better as they have a location API built into the operating system. As well as the methods above, depending on their hardware and service provider they can also use mobile network cell id, cell triangulation or built-in GPS for location. If Find My Location used to work well for you, then got bad, either your browser has switched from one location method to another (perhaps you accidentally disabled wifi or GPS?), or something has changed in your network setup (your ISP gave you a new IP address, someone switched off a wifi network in a neighbouring building, etc.) If you are using a desktop computer, you might get a different result by switching web browser.
  24. I've fired up IE8 and confirmed I have the same problem too. It seems to be caused by the same thing as a known bug in the new v5.0 of the Leaflet Maps API, to do with TileLayer Opacity and IE8's shockingly poor support for Cascading Stylesheets. The main map page still uses Leaflet v4, which is why it hasn't broken. Unfortunately the Leaflet folk haven't yet released a fixed version (and Groundspeak may not update to it for a while anyway). Worse yet, the official Leaflet fix may not fix GME. I'll see if I can figure out a workaround, but I'm afraid supporting IE isn't a top priority for me at the moment
  25. I had a brief look at getting GME to work with IE. Unfortunately, it's all rather more effort than I can afford, especially since my first daughter was born last summer! Part of the problem is IE's support for javascript and other web standards. The later versions are supposed to better in that respect, but IE8 is the version I have installed on the Win XP machine I do most of my development on (we're still stuck with IE6 at work!) The next problem is support for development and debugging. Again, later versions might be better, but the other browsers are much easier to work with. The final issue is support for Greasemonkey and userscripts in general. Last time I fished about, I couldn't find much information about IE extensions to provide userscript functionality. I've used Trixie with IE8, but I've no idea if it works with IE9 or 10. There was also an extension called IE7Pro that was reputed to work (and not just with IE7). However, I've not had any user feedback about either system.
×
×
  • Create New...