Google Maps hacking discussion

follower
2005-02-11
2013-05-21
1 2 3 > >> (Page 1 of 3)
  • follower

    follower - 2005-02-11

    This thread is for discussion of Google Maps hacking as described at http://libgmail.sourceforge.net/googlemaps.html

     
    • Jeremy Dunck

      Jeremy Dunck - 2005-02-11

      I've got a wiki (not specific to this, but available)....

      Do you mind if I rob the content of your page:
      http://libgmail.sourceforge.net/googlemaps.html

      I'll change "I" to to "xfollower", or your real name, if you tell me what that is.  ;-)

       
      • follower

        follower - 2005-02-12

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

        --Phil.

         
        • Jeremy Dunck

          Jeremy Dunck - 2005-02-12
           
          • follower

            follower - 2005-02-13

            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.

            --Phil.

             
            • Jeremy Dunck

              Jeremy Dunck - 2005-02-13

              No, you didn't miss something.  Unfortunately, the wiki I'm running (Moin) won't link "javascript:" URLs.

              I could probably patch it to do so, but I'm not going to get to it soon...

               
          • Clive Galway

            Clive Galway - 2005-06-01

            we are working on getting a PHP (+ SQL in the longer term) implimentation done. If you can help, please go to the wiki

             
    • Richard Soderberg

      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?

       
      • follower

        follower - 2005-02-12

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

        --Phil.

         
    • RichB

      RichB - 2005-02-13

      Can anyone get directions to display on Puerto Rico?
      I was hoping to get a route from there to Florida (or even Hawaii)

       
    • Jeremy Dunck

      Jeremy Dunck - 2005-02-15

      Follower,
      "
      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.

       
      • follower

        follower - 2005-02-15

        I have emailed your SF user account with a URL.

        --Phil.

         
        • Jeremy Dunck

          Jeremy Dunck - 2005-02-15

          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.

           
    • Jeremy Dunck

      Jeremy Dunck - 2005-02-17

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

       
      • follower

        follower - 2005-02-17

        Hi Jeremy,

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

        --Phil.

         
    • Scot

      Scot - 2005-03-10

      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.

       
    • Jesse Rauch

      Jesse Rauch - 2005-04-28

      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!

      Jesse

       
      • Jeremy Dunck

        Jeremy Dunck - 2005-04-28

        Jesse,
          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:
        http://www.google.com/search?hl=en&lr=&c2coff=1&q=latitude+convert+degrees+minutes+%2Bjavascript&btnG=Search

            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);
            }
            else
            {
                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 (isLat)
            {
                if (deg >= 0)
                {
                    hemisphere = " N";
                }
                else
                {
                    hemisphere = " S";
                }
            }
            else
            {
                if (deg >= 0)
                {
                    hemisphere = " E";
                }
                else
                {
                    hemisphere = " W";
                }
            }
           
            alert(deg + ' ' + min + "' " + sec + '"');

         
        • Jesse Rauch

          Jesse Rauch - 2005-04-28

          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.

          javascript:
          (
            function()
              {_m.map.addStateListener
                (function(map)
                  {
              var lat= Math.floor(map.getCenterLatLng().x);
              var long=Math.floor(map.getCenterLatLng().y);
                  document.getElementsByClassName('title')[0].innerHTML=lat+' '+long
                  }
                 );
               }
          )()

          what am I doing wrong?

           
      • boomkap

        boomkap - 2005-04-30

        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?

         
    • Clive Galway

      Clive Galway - 2005-05-10

      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 :(

       
      • Hal Burgiss

        Hal Burgiss - 2005-05-10

        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.

         
        • Clive Galway

          Clive Galway - 2005-05-10

          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.

           
        • Clive Galway

          Clive Galway - 2005-05-10

          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

           
          • Hal Burgiss

            Hal Burgiss - 2005-05-10

            Maybe I am missing something ... but the xml (& xsl, html, etc) can be anywhere. The paths may have to be spelled out explicitily though.

             
1 2 3 > >> (Page 1 of 3)

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks