Jump to content

UK Counties map


Recommended Posts

It looks great, but is it suffering from the same bug the cache finds map we discussed here the other day had - it's showing we've found a cache in Somerset which is not right as we've not had the pleasure of caching there yet?

 

Don't know if it will help you, but GeocacheUK can also create auto-updating counties map, see this recentish thread

 

(or look at my profile for a lame example)

Link to comment

It looks great, but is it suffering from the same bug the cache finds map we discussed here the other day had - it's showing we've found a cache in Somerset which is not right as we've not had the pleasure of caching there yet?

 

 

Try adding &found=1 to only show found logs, which sometimes helps...

 

http://stats.guk2.com/pics/make_countymap....102&found=1

vs

http://stats.guk2.com/pics/make_countymap....nt&c=479102

 

However I don't see Sumerset highlighted on either map?

Link to comment

That's better, but it still does not work if I use the flat colour option:

 

http://stats.guk2.com/pics/make_countymap....600&found=1

 

Hmm - if it's not Somerset it's whatever county is between Somerset and Devon - North Devon?

 

It looks great, but is it suffering from the same bug the cache finds map we discussed here the other day had - it's showing we've found a cache in Somerset which is not right as we've not had the pleasure of caching there yet?

 

 

Try adding &found=1 to only show found logs, which sometimes helps...

 

http://stats.guk2.com/pics/make_countymap....102&found=1

vs

http://stats.guk2.com/pics/make_countymap....nt&c=479102

 

However I don't see Sumerset highlighted on either map?

Link to comment

That's better, but it still does not work if I use the flat colour option:

 

http://stats.guk2.com/pics/make_countymap....600&found=1

 

Hmm - if it's not Somerset it's whatever county is between Somerset and Devon - North Devon?

 

 

Looks to me like it's getting confused and replacing N. Yorkshire with Hereford and Worcester...

 

Does the same to us too, which is a pain since nearly a third of our caches were done in N. Yorks.

 

B.

Link to comment

That's better, but it still does not work if I use the flat colour option:

 

http://stats.guk2.com/pics/make_countymap....600&found=1

 

Hmm - if it's not Somerset it's whatever county is between Somerset and Devon - North Devon?

 

 

Looks to me like it's getting confused and replacing N. Yorkshire with Hereford and Worcester...

 

Does the same to us too, which is a pain since nearly a third of our caches were done in N. Yorks.

 

B.

 

Looks like the problem is with the "flat" attribute. Compare

 

http://stats.guk2.com/pics/make_countymap....600&found=1

 

with

 

http://stats.guk2.com/pics/make_countymap....&found=1

 

Phil

Link to comment

Hmmm, strange! I'll take a look...

Found the problem! The program was looking for specific colours on the map at the same time as changing them into the desired colour. That was fine for the standard colouring (with a little care over sort orders etc), but when a flat colour was introduced it was mucking things up. I've now changed it so that it works out what all the colours should be on a first pass, then changes them all on a second pass. Things now look a little more consistent.

 

I also fixed the "DNF" bug, so the map now shows counties where you've found a cache, as opposed to counties where you've logged a cache.

 

Still no fix for the general problem of mobile caches though :laughing:

Link to comment

Hmmm, strange! I'll take a look...

Found the problem! The program was looking for specific colours on the map at the same time as changing them into the desired colour. That was fine for the standard colouring (with a little care over sort orders etc), but when a flat colour was introduced it was mucking things up. I've now changed it so that it works out what all the colours should be on a first pass, then changes them all on a second pass. Things now look a little more consistent.

 

Works fine for us now, Thanks! In fact we like the look so much and the fact that it updates, that we've replaced the old map permanently.

 

B.

Link to comment

Try this

 <img>http://stats.guk2.com/pics/make_countymap.php?type=count&c=78370&flat=ff6600&found=1</img>

or

 <img>http://stats.guk2.com/pics/make_countymap.php?type=count&c=78370&found=1</img>

 

I thought that this was working fine for me but have just noticed that Hampshire is not yellowed when I've found caches there. Anyone know why this might be?

FMC

Link to comment

I thought that this was working fine for me but have just noticed that Hampshire is not yellowed when I've found caches there. Anyone know why this might be?

FMC

 

Because by default the map doesnt show archived caches, add a &unavail=Y to the end of the image url eg

 

http://stats.guk2.com/pics/make_countymap.php?type=count&c=470314&unavail=Y

 

 

(I should also mention that the &found=1 that I have mentioned before is no longer needed it will always count found logs only)

Edited by barryhunter
Link to comment

I have recently found a cache in Dyfed but the county is not showing up on my map though the dot is showing up on my geocacheuk profile. The code I am using is http://stats.guk2.com/pics/make_countymap....f&unavail=y

Have I got the code wrong or am I just impatient?

 

I was also wondering if it is possible to ignore a particular type of cache. I have avoided doing YOSMs to avoid having random counties lighting up but if virtuals could be disregarded this would solve that.

 

TIA

celebr8

Link to comment

Try

http://stats.guk2.com/pics/make_countymap.php?type=count&c=586608&flat=00bfbf&unavail=Y

 

you had two small errors double t on the word count, and a lower case Y at the end. (both of which makes all the difference to the computer :huh:)

 

(we'll see what can do about 'avoiding' certain types of cache's as you say virtuals might be a good one to skip)

Link to comment

Thanks Barry, now sorted - I've also gone from Lib Dem to Tory :laughing: !

 

Berfore this geocaching malarkie I new nothing about html so this is another thing the past time has taught me - not that I'm pretending to understand this bit of code though :unsure: !

 

I keep a copy of my html in Word for both this and cache pages that I own - that way I can see the code but also put in hard returns, bolds, underlines etc so I can visualise them to make editing easier for me. It also allows me to edit offline and keep a backup. A workmate says I should not use Word as this tweaks the code which may have accounted for my 'slight error'. Any suggestions as to what I could use instead?

 

FMC

Link to comment

I would recommend just using Notepad (Probably found in Accessories in the Start Menu), this is a simple text editor that will store the text in plain .txt files. Being so simple it will not 'mess' with your code.

 

For the record I don't think in this case Word would really break the HTML, as its only if you do a 'save as' into a html format, even so it can cause problems so best avoided!

Link to comment

I now have Teasels excellent map, but I seem to have lost a county. I only had one cache find in that county and now the cache is archived, the county is missing from my map. Boo hoo hoo. is there are cure?

 

add &unavail=Y to the end of the URL inside the <img > tag :laughing:

 

Excellent! That brought my missing county back and changed the colours of some of the others too! :unsure:

Link to comment

Try this

 

 <img>http://stats.guk2.com/pics/make_countymap.php?type=count&c=78370&flat=ff6600&found=1</img>

 

or

 

 <img>http://stats.guk2.com/pics/make_countymap.php?type=count&c=78370&found=1</img>

 

http://stats.guk2.com/pics/make_countymap....f&unavail=Y

 

Thanks. I've used the above, but am not showing Kent, the IofW and West Sussex for some reason.......

Edited by Nick & Ali
Link to comment

Try

http://stats.guk2.com/pics/make_countymap.php?type=count&c=586608&flat=00bfbf&unavail=Y

 

you had two small errors double t on the word count, and a lower case Y at the end. (both of which makes all the difference to the computer :laughing:)

 

(we'll see what can do about 'avoiding' certain types of cache's as you say virtuals might be a good one to skip)

 

Thanks Barry, looks perfect now :unsure:

Link to comment

Try

 

<img>http://stats.guk2.com/pics/make_countymap.php?type=count&c=78370&unavail=Y</img>

 

Still doesn't work. Quite a few counties missing now.......

 

Viewing your profile, the image url ends

8370&unavail=Y%3C/a%3E

so I guess there is some sort of typo in the html you are using...

 

%3C/a%3E translates as </a> so I think you have either one of them extra, or perhaps an unclosed <a href tag which is confusing GC's htmltidy.

Link to comment

......................so I guess there is some sort of typo in the html you are using...

 

 

Are you using Microsoft Word to draft the html then copy and paste into Geocache.com? I used to do this with the same results. I was advised to switch to a simple editor, like Notepad, which has fixed the problem - Word's a bitch and tinkers with the html. FMC

Link to comment

......................so I guess there is some sort of typo in the html you are using...

 

 

Are you using Microsoft Word to draft the html then copy and paste into Geocache.com? I used to do this with the same results. I was advised to switch to a simple editor, like Notepad, which has fixed the problem - Word's a bitch and tinkers with the html. FMC

 

I do just cut and paste........ It works on everything else and not being that brill with computers (obviously!), I haven't a clue why it's not working with this.

 

Problem now solved. Thanks for the help.

Edited by Nick & Ali
Link to comment

......................so I guess there is some sort of typo in the html you are using...

 

 

Are you using Microsoft Word to draft the html then copy and paste into Geocache.com? I used to do this with the same results. I was advised to switch to a simple editor, like Notepad, which has fixed the problem - Word's a bitch and tinkers with the html. FMC

 

I do just cut and paste........ It works on everything else and not being that brill with computers (obviously!), I haven't a clue why it's not working with this.

 

Problem now solved. Thanks for the help.

 

E-mail sent, hope it works ;)

Link to comment

......................so I guess there is some sort of typo in the html you are using...

 

 

Are you using Microsoft Word to draft the html then copy and paste into Geocache.com? I used to do this with the same results. I was advised to switch to a simple editor, like Notepad, which has fixed the problem - Word's a bitch and tinkers with the html. FMC

 

I do just cut and paste........ It works on everything else and not being that brill with computers (obviously!), I haven't a clue why it's not working with this.

 

Problem now solved. Thanks for the help.

 

E-mail sent, hope it works ;)

 

It did. Thanks again.

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...