Chapter 4. Styles and Icons

<feature><title>After reading this chapter, you’ll be able to do the following:</title>
  • List the six elements that define substyles for a KML feature.

  • Create a shared style that makes all polygons the same color.

  • Determine “who wins” when both a shared style and an inline style specify different values for the same SubStyle element.

  • Create a simple custom <BalloonStyle>.

  • Create a <StyleMap> that affects the appearance of an icon when the user mouses over it.

</feature>

Chapter Overview

Styles allow you to define a custom treatment for icons, lines, polygons, balloons, and list view entries. You can create a special style for all the lines, balloons, labels, and polygons in your presentation, or you can create multiple styles ...

Get The KML Handbook: Geographic Visualization for the Web now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.