icon

package
v1.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2021 License: MIT Imports: 2 Imported by: 3

Documentation

Overview

Package icon provides helper functions for standard Google Earth icons. See http://kml4earth.appspot.com/icons.html.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CharacterHref

func CharacterHref(c rune) string

CharacterHref returns the href of the icon wirh the specificed character, or an empty string if no such icon exists. See http://kml4earth.appspot.com/icons.html#pal3 and http://kml4earth.appspot.com/icons.html#pal5.

func DefaultHref

func DefaultHref() string

DefaultHref returns the href of the default icon.

func NoneHref

func NoneHref() string

NoneHref returns the icon of the empty icon.

func NumberHref

func NumberHref(n int) string

NumberHref returns the href of the icon with number n. See http://kml4earth.appspot.com/icons.html#pal3.

func PaddleHref

func PaddleHref(id string) string

PaddleHref returns the href of the paddle icon with id. See http://kml4earth.appspot.com/icons.html#paddle.

func PaddleIconStyle

func PaddleIconStyle(id string) kml.Element

PaddleIconStyle returns an IconStyle for the paddle icon with id and the hotspot set. See http://kml4earth.appspot.com/icons.html#paddle.

func PaletteHref

func PaletteHref(pal, icon int) string

PaletteHref returns the href of icon in pal.

func PushpinHref

func PushpinHref(color string) string

PushpinHref returns the href of pushpin of color. Valid colors are blue, green, ltblu, pink, purple, red, wht, and ylw. See http://kml4earth.appspot.com/icons.html#pushpin.

func ShapeHref

func ShapeHref(shape string) string

ShapeHref returns the href of the icon with the specified shape. See http://kml4earth.appspot.com/icons.html#shapes.

func TrackHref

func TrackHref(i int) string

TrackHref returns the href of the ith track icon. See http://kml4earth.appspot.com/icons.html#kml-icons.

func TrackNoneHref

func TrackNoneHref() string

TrackNoneHref returns the href of the track icon when there is no heading. See http://kml4earth.appspot.com/icons.html#kml-icons.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL