Forum Replies Created
-
AuthorPosts
-
@GetMeOutdoors wrote:
Replace the ScaleChange function with this code. (In Firefox, after you have the regular script installed, click the greasemonkey down arrow and select “Manage User Scripts”. Right click “Geocaching.com – Image map scale” entry and select Edit.)
function ScaleChange() {
var feetperpixel = 513592.6516 * Math.cos(MapSettings.Map.getCenter().lat*(Math.PI/180)) / Math.pow(2,MapSettings.Map._zoom);
var milesperpixel = 97.27133 * Math.cos(MapSettings.Map.getCenter().lat*(Math.PI/180)) / Math.pow(2,MapSettings.Map._zoom);
if (Aprox(feetperpixel) >= 5280) {
document.getElementById('scaletext').innerHTML = Aprox(milesperpixel) + " mi" ;
$("#scale").width(Math.round(Aprox(milesperpixel)/milesperpixel)+4);
}
else {
document.getElementById('scaletext').innerHTML = Aprox(feetperpixel) + " ft";
$("#scale").width(Math.round(Aprox(feetperpixel)/feetperpixel)+4);
}
}Optional: I wanted the scale to be wider. It seemed way to small to get a real idea of how far away something was. If you want a wider scale as well, change the line in the Approx() funciton that says :
number = number*90;to
number = number*200;or whatever multiplier you want.
Save the script and refresh the map page.
Awesome! Thank you very much, sir.
@GetMeOutdoors wrote:
Actually, I modified it to use feet and miles… NOW I’m satisfied! 🙂
How did you manage to do this?
Congratulations!!
Congratulations!!
Thanks guys!!
@labrat_wr wrote:
Congrats on downing 1600 chili beans!
That might explain my why Karen had the car window down all the way home. 😆
Loud clapping!!!!!!!!
WHOO HOOO!!!!
EXTERMINATE!!!!
All your base are belong to us!!!
BOT ALERT BOT ALERT!!!
AWWWWW so cute!! Congratulations!!
Nice! Works great in Google Chrome as well. So much nicer then the other maps for sure!!
I would certainly attend such an event, though my musical abilities are less then bad. 😀
Congrats buddy, you’ll catch up in no time!!
I wasn’t aware of this plug-in for gsak, very nice.
Not sure if this is an option, but when I want to do some mapping of cache locations I’ll do it using Google Earth. Seems to work well enough for my needs though I’m not using it as my primary caching tool either.
-
AuthorPosts