Hacking Google Maps and Google Earth (ExtremeTech)

(Dana P.) #1

Chapter 17 — History and Planning with Google Earth 329


Scaling the Icon


By default, Google Earth creates a relatively small icon based on the image that is provided,
regardless of the size of the image. This is to prevent the image from dominating the map,
when it is only really referring to a placemark.


To alter this behavior, styles must be defined that specify the format of the icon and the label
used to highlight the placemark. The key element in the following code is the Iconreference,
which refers to the image that will be used for an icon, and the scaleentity, which scales the
size of the icon in the placemark:



Figure 17-3 shows the difference between a non-scaled and a scaled icon.


FIGURE17-3: A non-scaled (small) and scaled (large) icon.

Free download pdf