A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: GoogleEarth kmz for profile

  1. #1
    Flash Gordon McUsher's Avatar
    Join Date
    Mar 2001
    Location
    Krautland
    Posts
    1,560

    GoogleEarth kmz for profile

    I just had the idea of adding a kmz (Google Earth location File) file
    to my Signature as a link.

    Then i thought, why not suggest adding a possibility to upload
    such a kmz file to your Profile.
    I know this is vBulletin, which is OpenSource, so just an idea

    Maybe it is too much work, but i think it'll be a nice and special
    goodie, which other sites don't offer


    Here is, where i live:
    http://www.aschers.de/sig/McUsher.kmz
    If you have GoogleEarth installed you can open it directly there
    My letters on the F1 key have faded, how are yours today?

  2. #2

  3. #3
    Flash Gordon McUsher's Avatar
    Join Date
    Mar 2001
    Location
    Krautland
    Posts
    1,560
    damn i missed that somehow
    tnx for the input
    I thought only plain text is allowed in title.
    Last edited by McUsher; 11-28-2005 at 10:03 PM.
    My letters on the F1 key have faded, how are yours today?

  4. #4
    kevin_smithers's Avatar
    Join Date
    Apr 2004
    Location
    Swindon, UK
    Posts
    375
    Hay guys just an update for you the flash tracker should of been done by now but I have been really busy and off work for a week with a cold so I am trying to catch up at the moment.

    Everything I needed to get working for the Google map tracker I now have working, my main problem was the post variables to the map for the coordinates which is working great now I figured out the initial cords to form code.

    So this should be done for you by Christmas.

    Mike quick question for you, in addition to the Google map clone of the flash tracker would you guys also want the map I have at www.wiltshire-hosting.com/map.php on here for all members? I do have another version of that one where by you could integrate it into the vBulletin database so the members would log into the map with their FL username and Password adn chainge their map details them selves, could be a good addition!! what do you think?

    So far it has been quite popular with 58 Total members and I only posted the URL in the coffee lounge.
    Last edited by kevin_smithers; 12-06-2005 at 10:02 AM.

  5. #5
    Thanks for all the great work Kevin. We're all looking forward to the final version.

  6. #6
    Avanza Comunicación Málaga
    Join Date
    May 2009
    Location
    Málaga (Spain)
    Posts
    2

    Lightbulb

    We have the same problem and try many options:

    Code:
    getURL("/google-earth-file.kmz");
    getURL("javascript:self.location='/google-earth-file.kmz';");
    getURL("javascript:window.open(/google-earth-file.kmz');");
    but any works :-(


    The solution is force the download with a little PHP script named download.php (for example). Copypaste:


    PHP Code:
    <?php
    $filename 
    $_GET['file'];
    if(
    ini_get('zlib.output_compression'))  ini_set('zlib.output_compression''Off');
    $file_extension strtolower(substr(strrchr($filename,"."),1));

    if( 
    $filename == "" ) {
      
    // error: no $file specified
      
    exit;
    }
    elseif ( ! 
    file_exists$filename ) ) {
      
    // error: file not exists
      
    exit;
    };
    switch( 
    $file_extension ) {
      case 
    "kmz"$ctype="application/vnd.google-earth.kmz"; break;
      case 
    "kml"$ctype="application/vnd.google-earth.kml+xml"; break;
      default: 
    $ctype="application/force-download";
    }
    header("Pragma: public");
    header("Expires: 0");
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header("Cache-Control: private",false); 
    header("Content-Type: $ctype");
    header("Content-Disposition: attachment; filename=\"".basename($filename)."\";" );
    header("Content-Transfer-Encoding: binary");
    header("Content-Length: ".filesize($filename));
    readfile("$filename");
    exit();
    ?>
    in Flash you change the link with this:

    Code:
    getURL("/download.php?file=google-earth-file.kmz");

    It works perfect!




    Avanza Comunicación Málaga
    www.avanzacomunicacion.com

  7. #7
    Bearded (M|G)od MyFriendIsATaco's Avatar
    Join Date
    Dec 2002
    Location
    Awesomeville.
    Posts
    3,046
    Over 3 years old? Come on now.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center