Documentation ¶
Index ¶
- Variables
- func NewCoordinates(longitude, latitude, altitude float64) string
- func NewCoordinatesOffset(longitude, latitude float64) string
- type AltitudeModeKey
- type Description
- type DocKml
- type Document
- type Folder
- type Icon
- type IconStyle
- type Kml
- type LabelStyle
- type LineString
- type LineStyle
- type Placemark
- type Point
- type Style
Constants ¶
This section is empty.
Variables ¶
View Source
var AltitudeMode = [...]string{
"clampToGround",
"relativeToGround",
"absolute",
"clampToSeaFloor",
"relativeToSeaFloor",
}
Functions ¶
func NewCoordinates ¶
func NewCoordinatesOffset ¶
Types ¶
type AltitudeModeKey ¶
type AltitudeModeKey int
const ( ClampToGround AltitudeModeKey = iota RelativeToGround Absolute ClampToSeaFloor RelativeToSeaFloor )
type Description ¶
type Description struct {
Data string `xml:",cdata"`
}
type Folder ¶
type Folder struct { Name string `xml:"name"` Placemarks []Placemark `xml:"Placemark"` Open int `xml:"open"` }
func (*Folder) AddPlacemark ¶
type Kml ¶
type Kml struct { XMLName xml.Name `xml:"kml"` Namespace string `xml:"xmlns,attr"` AtomNamespace string `xml:"xmlns:atom,attr"` GxNamespace string `xml:"xmlns:gx,attr"` KmlNamespace string `xml:"xmlns:kml,attr"` Document Document `xml:"Document"` }
Kml template
type LabelStyle ¶
type LineString ¶
type LineString struct { Extrude int `xml:"extrude"` AltitudeMode string `xml:"altitudeMode"` Coordinates string `xml:"coordinates"` Tessellate int `xml:"tessellate"` }
linestring google template
func (*LineString) AddCoordinate ¶
func (l *LineString) AddCoordinate(longitude float64, latitude float64, altitude float64)
type Placemark ¶
type Placemark struct { Name string `xml:"name"` Description Description `xml:"description"` StyleUrl string `xml:"styleUrl"` Style *Style `xml:"Style,omitempty"` Point Point `xml:"Point,omitempty"` LineString []*LineString `xml:"LineString,omitempty"` }
Placemark template
func (*Placemark) AddLineString ¶
func (p *Placemark) AddLineString(lineString LineString)
func (*Placemark) AppendContent ¶
Click to show internal directories.
Click to hide internal directories.