O'Reilly logo

The KML Handbook: Geographic Visualization for the Web by Josie Wernecke

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required