mohitsgw / earth-api-samples

Automatically exported from code.google.com/p/earth-api-samples
0 stars 0 forks source link

Path following, clamped-to-ground labels #132

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What should this feature enhancement do?

* I want to be able to place path following, clamped-to-ground labels,
like how roads are labeled in Google Earth.

Are there any known workarounds that produce the similar results?

* Currently I'm using overlays to do this. I produce png labels using php
gd, then I made a software tool to place and orient them which works okay.
But it would save a lot of time and complexity if I could just access the
methods that do that on Google Earth directly. Also I'm not dynamically
scaling like Google Earth does. Of course, if it adds to much heft to the
plug-in I can do without it.

Original issue reported on code.google.com by the.muta...@gmail.com on 29 Dec 2008 at 4:19

GoogleCodeExporter commented 8 years ago
Forgot to add a link to an example: http://3dskimaps.com/alpinemeadows/ge

Original comment by the.muta...@gmail.com on 29 Dec 2008 at 4:21

GoogleCodeExporter commented 8 years ago
Although it's not path-following, you can achieve clampToGround labels like so:

<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
  <Document>
    <Placemark>
      <name>Hello World</name>
      <Style>
        <IconStyle><Icon/></IconStyle>
      </Style>
      <Point>
        <coordinates>-122,37</coordinates>
      </Point>
    </Placemark>
  </Document>
</kml>

Original comment by api.roman.public@gmail.com on 6 Jan 2009 at 4:53