Google Earth API

KmlIconStyle Interface Reference

Inheritance diagram for KmlIconStyle:
Inheritance graph

List of all members.

Public Member Functions

float getScale ()
void setScale (float scale)
float getHeading ()
void setHeading (float heading)
KmlIcon getIcon ()
void setIcon (KmlIcon icon)
KmlVec2 getHotSpot ()

Detailed Description

Specifies how icons for point placemarks are drawn in Google Earth. The icon property specifies the icon image. The scale property specifies the x, y scaling of the icon. The color specified in the color property of KmlIconStyle is blended with the color of the Icon.

Member Function Documentation

Resizes the icon.

void KmlIconStyle.setScale ( float  scale)

Resizes the icon.

The direction that icons are set to point, clockwise, and in degrees.

void KmlIconStyle.setHeading ( float  heading)

The direction that icons should point, clockwise, and in degrees. The default is 0 (North). Values range from 0 to 360 degrees.

A custom Icon. In KmlIconStyle, the only child element of KmlIcon is href and href is an HTTP address or a local file specification used to load an icon.

void KmlIconStyle.setIcon ( KmlIcon  icon)

A custom Icon. In KmlIconStyle, the only child element of KmlIcon is href and href is an HTTP address or a local file specification used to load an icon.

Specifies the position within the Icon that is anchored to the point specified in the placemark. The x and y values can be specified in three different ways: as pixels, as fractions of the icon, or as inset pixels, which is an offset in pixels from the upper right corner of the icon. The x and y positions can be specified in different ways. For example, x can be in pixels and y can be a fraction. The origin of the coordinate system is in the lower left corner of the icon.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.