Documentation
¶
Overview ¶
Package kmz provides convenience methods for creating and writing KMZ files.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KMZ ¶
type KMZ struct {
// contains filtered or unexported fields
}
A KMZ represents the contents of a KMZ file.
func NewKMZ ¶
NewKMZ returns a new KMZ with the specified roots.
Example ¶
kmz := NewKMZ(
kml.Placemark(
kml.Name("Simple placemark"),
kml.Description("Attached to the ground. Intelligently places itself at the height of the underlying terrain."),
kml.Point(
kml.Coordinates(kml.Coordinate{Lon: -122.0822035425683, Lat: 37.42228990140251}),
),
),
)
w := &bytes.Buffer{}
if err := kmz.WriteIndent(w, "", "\t"); err != nil {
log.Fatal(err)
}
Click to show internal directories.
Click to hide internal directories.