List Info

Thread: Placemark as hyperlink




Placemark as hyperlink
user name
2006-02-06 06:32:31
Hi Gang,

This has been asked before but in a different strain so i
think it
deserves a new topic.
ok so...

How is it possible to have a placemark on a website as a
hyperlink
without having to make it a downloadable file.
i do not have the time (most importantly) or facility to
upload a whole
bunch of kmz files to a website.

Any ideas on a solution?

cheers.

Placemark as hyperlink
user name
2006-02-06 18:23:37
Try just putting the latitude and longitude up on the web. 
Then people
can just copy and paste those numbers into the fly-to bar.

Placemark as hyperlink
user name
2006-02-06 23:19:12
Mike wrote:
> Try just putting the latitude and longitude up on the
web.  Then people
> can just copy and paste those numbers into the fly-to
bar.

Thats an idea thanks Mike, however i'm looking for something
that will
akin to the lazy bones (which i know most of the people on
the internet
are time poor and like it simple!)

i'm happy if it is a big long link with the coordinates in
it
somehow.etc 

Cheers,
TD

Placemark as hyperlink
user name
2006-02-07 23:36:26
I think it will have to be a kmz file, because those are the
only types
of files that Google Earth will open when you click on it in
the web
browser.  The kmz file for each placemark is actually very
small,
because it just contains the coordinates of the placemark,
and the zoom
+ angle.  Think of it as a 'text' file that contains all
this
information, it won't be very big.

I'm not exactly sure about the exact size of 1 placemark
would be (I'm
running Linux instead of Windows currently), so I can't be
sure.
However, I'd imagine it would be around the range of 1 to 2
kb.  (I
hope I'm not drastically wrong :P )  Anyway, you could
upload 100 kmz
files and still not be anywhere near 1 mb.

Placemark as hyperlink
user name
2006-02-10 17:05:24
Write one simple PHP script on your website that will allow
you to
create the KML file for you

Example (not actually tested, might need minor tweaking to
work):
<?php

$name = $_REQUEST['f'];
$desc = $_REQUEST['desc'];

$lat = $_REQUEST['lat'];
$lon = $_REQUEST['long'];

header('HTTP/1.1 200 OK');
header('Content-Type: application/keyhole');
header('Content-Disposition: inline;
filename="'.$name.'.kml');

echo '<?xml version="1.0"
encoding="UTF-8"?>'
?>
<kml xmlns="http://eart
h.google.com/kml/2.0">
<Placemark>
  <description><?= $desc; ?></description>
  <name><?= $name; ?></name>
  <LookAt>
    <longitude><?= $lon; ?></longitude>
    <latitude><?= $lat; ?></latitude>
  </LookAt>
  <visibility>1</visibility>
  <Point>
    <coordinates><?= $lat.','.$long;
?></coordinates>
  </Point>
</Placemark>
</kml>

Then you can simply call <a
href="myfile.php?name=Name&lon=-XX.XX&lat=YY.YY
">Click</a>

This way you only upload ONE single KML file and generate
them with
HTML links


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "google earth" group.
To post to this group, send email to google-earthgooglegroups.com
To unsubscribe from this group, send email to
google-earth-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/google-earth
-~----------~----~----~----~------~----~------~--~---
Placemark as hyperlink
user name
2006-02-12 19:50:12
I have such a script (not quite as customisable) which you
can use if
you like:

http://www.nearby.org.u
k/googleEarth.kml.php?lat=54.5467&long=-3.5467&p=Pla
cemark

Placemark as hyperlink
user name
2006-03-07 23:55:59
good stuff.
i like the PHP idea.
cheers guys.

barryhunter wrote:
> I have such a script (not quite as customisable) which
you can use if
> you like:
>
> http://www.nearby.org.u
k/googleEarth.kml.php?lat=54.5467&long=-3.5467&p=Pla
cemark


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "google earth" group.
To post to this group, send email to google-earthgooglegroups.com
To unsubscribe from this group, send email to
google-earth-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/google-earth
-~----------~----~----~----~------~----~------~--~---

Placemark as hyperlink
user name
2006-03-09 03:09:27
Hi,barryhunter,
Sorry ,I can not link to your website,can you email that
file to me.
barryhunter wrote:
> I have such a script (not quite as customisable) which
you can use if
> you like:
>
> http://www.nearby.org.u
k/googleEarth.kml.php?lat=54.5467&long=-3.5467&p=Pla
cemark


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "google earth" group.
To post to this group, send email to google-earthgooglegroups.com
To unsubscribe from this group, send email to
google-earth-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/google-earth
-~----------~----~----~----~------~----~------~--~---

[1-8]

about | contact  Other archives ( Real Estate discussion Medical topics )