Directional icons in Google Earth

After last week’s attempt to create directional vector graphics for Google Earth, a commenter left a note saying that you can in fact control the heading of an icon, which would solve most of the problems posed. I just had a go playing with the <heading> tag under <iconstyle>, and it does indeed work, sort of.

My aim just now was to recreate in Google Earth the weather symbols that meteorologists often use, such as these (from which I stole the graphics). Again, I didn’t intend to do a good job; I wanted to see if it’s possible.

These weather symbols have two main components — wind speed/direction and percentage cloud cover. Only the wind speed/direction has a directional component to it, so I decided to split the symbol into two overlaid icons, with only the wind component being fixed by a <heading> tag. (This has the added advantage of needing to create far fewer symbols, because you can mix and match different components.)

Here are some examples.

symbols1.jpg

symbols2.jpg

The result is that while the cloud cover icon is always “right side up” like conventional icons, the wind icon will point in the direction dictated by the <heading> tag — though only accurately if you look at these icons from directly above. View them at an angle, and the direction is only accurate every 90 degrees as you rotate.

(Note: I used the ruins of Taxila — an ancient Buddhist seat of learning and a town populated by Alexander the Great — as the backdrop for the test icons. Download the KMZ file for an added “feature” I discovered while veering off the beaten path there, oh, 12 years ago. No guarantee it’s still there, though the stuff did grow wild everywhere.)

4 thoughts on “Directional icons in Google Earth”

  1. Nice idea with the icons Stefan. I like that application of the features. Did you test that field’s agricultural products 12 years ago? :-)

  2. Frank, no, I did not. The only idea I can think of that is worse than being caught doing drugs in countries with iffy legal systems is to be caught stealing somebody else’s drugs there:-)

  3. Old post but, in GE version 5.1.3533.1731, the heading no longer appears to affix the icon’s heading. It only alters the initial heading. I haven’t figured this out yet.

Comments are closed.