personal2222 / kmlcircle

Automatically exported from code.google.com/p/kmlcircle
0 stars 0 forks source link

php version #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
the longitude is always a bit off but i couldnt find the problem. rest is
working like in python. see examples ;)

greets,
tobsn@php.net

Original issue reported on code.google.com by orte...@gmail.com on 21 Nov 2007 at 10:17

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for your code snippets, Orterer and Nick Galbreath! Works nice.

Here is a sample to have a semi-transparent circle:

header("Content-Type: application/vnd.google-earth.kml+xml");
header("Content-Disposition: attachment; filename=location.kml");
$kml_regular_polygon = $_GET['kml_regular_polygon'];

echo('<?xml version="1.0" encoding="utf-8"?>');
?>
<kml xmlns="http://earth.google.com/kml/2.1">
  <Document>
      <StyleMap id="msn_ylw-pushpin">
    <Pair>
      <key>normal</key>
      <styleUrl>#sn_ylw-pushpin</styleUrl>
    </Pair>
    <Pair>
      <key>highlight</key>
      <styleUrl>#sh_ylw-pushpin</styleUrl>
    </Pair>
  </StyleMap>
  <Style id="sh_ylw-pushpin">
    <IconStyle>
      <scale>1.2</scale>
    </IconStyle>
    <LineStyle>
      <color>ffff0000</color>
      <width>5</width>
    </LineStyle>
    <PolyStyle>
      <color>7fffff00</color>
    </PolyStyle>
  </Style>
  <Style id="sn_ylw-pushpin">
    <LineStyle>
      <color>ffff0000</color>
      <width>5</width>
    </LineStyle>
    <PolyStyle>
      <color>7fffff00</color>
    </PolyStyle>
  </Style>
  <Placemark>
    <styleUrl>#msn_ylw-pushpin</styleUrl>
       <?php echo($kml_regular_polygon); ?>
        </Placemark>
    </Document>
</kml>

Original comment by guilhem.martin on 6 Nov 2008 at 3:57

GoogleCodeExporter commented 9 years ago
do you think it would be possible to increase the size of many circles based on 
%
over a network link?
reason why im asking is that we have some stats running on google earth (see
http://youtube.com/watch?v=OTtsh2-wUOk) and im wondering if i could use circles 
to
display the amount of traffic per city/area instead of using dots.

Original comment by orte...@gmail.com on 6 Nov 2008 at 5:38