This thread is for discussion of Google Maps hacking as described at http://libgmail.sourceforge.net/googlemaps.html
I've got a wiki (not specific to this, but available)....
Do you mind if I rob the content of your page:
I'll change "I" to to "xfollower", or your real name, if you tell me what that is. ;-)
Sure, you can throw this on a Wiki if you provide attribution. ("Follower" is fine with a link to the http://libgmail.sourceforge.net/googlemaps.html page.)
Wiki page is up here:
Thanks for hosting the Wiki, one quick thing I noticed is that the bookmarklets no longer seem draggable, just the code is shown.
Or did I miss something... :-)
I'm intending to link to the Wiki from the page here.
I could probably patch it to do so, but I'm not going to get to it soon...
we are working on getting a PHP (+ SQL in the longer term) implimentation done. If you can help, please go to the wiki
I think that one very useful tack for this would be to link the code to a different map server, rendering a different planet (say, the moon, or mars).
I also think that it'd make a great platform for a top-down view video game, set on a map. Where in Google is Carmen Sandiego, anyone?
> I also think that it'd make a great platform for a top-down
> view video game, set on a map.
Yeah, I've been thinking that since the SimCity comments started being made. Either that or a movie background. Anybody got an image of the SimCity Godzilla? :-)
Actually, when I was working on animating the person icon I accidentally hit the bookmark multiple times and ended up with a whole pile of people travelling the route! :-)
> Where in Google is Carmen Sandiego, anyone?
I was thinking more "GTA : Google Edition"...
Can anyone get directions to display on Puerto Rico?
I was hoping to get a route from there to Florida (or even Hawaii)
I have extended this technique to allow an automatically updating clock (with the data retrieved from a non-Google URL) proof-of-concept which lays the groundwork for some interesting possibilities...
Do you plan to post that?
I'm surprised by the claim, because as far as I knew, 3rd party data (other than <img> and similar) wasn't allowed by the JS security model.
I have emailed your SF user account with a URL.
You're injecting another script tag, and setting the href to the foreign URL.
Which, of course, is dangerous.
But I thought you meant that you were able to use XMLHTTPRequest or similar.
Thanks for the clarification.
I see you're still adding here.
I'm curious why you're not using the wiki?
I'm asking because it may not make sense for me to add to the wiki if I'm just duplicating your work here.
It's possible people will start contributing there more, but not so far...
> I'm curious why you're not using the wiki?
Sorry, I didn't mean you to think I've been ignoring it...
I was intending it more as an adjunct rather than a replacement for my page. A central place where other people could add their research & remarks.
> I'm asking because it may not make sense for me to add
> to the wiki if I'm just duplicating your work here.
I appreciate you adding my new content but it's fine if you just say that there's some updated content on the libgmail site.
> It's possible people will start contributing there more,
> but not so far...
It's looking like people are beginning to add stuff, and I've been adding some bits too (mostly other tools).
BTW I think having the separate user-focused page is a good idea.
Hope this explanation is okay. Thanks again for setting up the wiki.
While I've seen stuff that allows the plotting of GPS data to a Google Map I wonder if there is a way that you can feed multiple address and information to a map for a walking tour of some type. Ok you got me, I'm plotting the stops for a 12 stop Pub Crawl in the wrigleyville area of Chicago. The icons would be listed "1", "2", and so one with the bars and addresses listed down the right instead of directions. Great work from what I've seen so far.
Ok, I have a javascipt question. I want to use the lat/long position bookmarklet, but I would like it to display the lat and long in D M' S.SS" rather than the current D.DDDDD. So what don't my math.* commands work? Somehow I'm guessing that this is an easy issue for one of you ;-)
thanks for any help!
A lat/lon displayed as D.DDDDD can be converted to D M' S.SS" using a standard conversion function.
This should get you going; otherwise, google is your friend:
var dec_deg, isLat, deg, min, sec, temp;
isLat = //true if lat, false if long
dec_deg = //your decimal value here...;
if (dec_deg >= 0)
deg = Math.floor(dec_deg);
deg = Math.ceil(dec_deg);
temp = Math.abs(dec_deg - deg);
temp = temp * 60;
min = Math.floor(temp);
temp = temp - min;
sec = temp * 60;
sec = Math.round(sec*Math.pow(10,3))/Math.pow(10,3);
if (deg >= 0)
hemisphere = " N";
hemisphere = " S";
if (deg >= 0)
hemisphere = " E";
hemisphere = " W";
alert(deg + ' ' + min + "' " + sec + '"');
Oh yes, that is much nicer than the code I was testing with, but as soon as I put a math.* function into the google map bookmarklet it quits working.
to avoid the complexity of the conversion for a second... this code should return just the integer part of the degrees, but it simple does nothing for me.
var lat= Math.floor(map.getCenterLatLng().x);
what am I doing wrong?
The dialog baloon seems to be broken. Any location that i try to map, comes up with any ampty baloon. The location appears in teh right location. clicking on it renders an empty baloon. any one know how to fix this. I tried several xsl files, including the one posted on gmap and the one returned by google maps. Any idea on what i may be doing wrong?
can anyone post amended versions of the files in gmaps-standalone-0.0.5.tgz that will work on a web server with a /cgi-bin/ directory for .cgi files ?
My ISP only allows pyhton cgi scripts in cgi-bin and will not allow any html to run in cgi-bin :(
From memory ...
getrawfile.cgi goes in cgi-bin, with all else wherever in non-cgi land. Open gmaps-standalone.js, look for:
var URL_GETFILE_CGI = "getrawfile.cgi?url=";
and change that to the correct cgi path, ala:
var URL_GETFILE_CGI = "/cgi-bin/getrawfile.cgi?url=";
IIRC, that was all that was needed.
hmm, i thought that may be all i needed to do and i tried it before posting, but it didn't work
I will try again when i get home.
thanks for confirming.
ok i went back to square 1 and realised that in order to solve the problem i had to get getrawfile.cgi to output the xml when called directly - regardless of interfacing the rest of the program to a /cgi-bin/ type setup.
I found that it didn't work properly on my free webspace with my ISP (it all works fine on my test setup so i know i know how to do it right...)
It appears that the problem is that my ISP won't allow anything other than .cgi to view in cgi-bin. if i put an xml file in cgi-bin and try to view it i get an internal server error - the same file is fine elsewhere.
The error i am getting when trying to run getrawfile.cgi with a ?url=http://.... query is the same internal server error.
I modified getrawfile.cgi to change it from xml to html and it prints out the html parts of the xml file, so i figure it is a server error and not me.
thanks for your help though
Maybe I am missing something ... but the xml (& xsl, html, etc) can be anywhere. The paths may have to be spelled out explicitily though.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.