
Geo::GoogleEarth::Document::Placemark - Geo::GoogleEarth::Document::Placemark

use Geo::GoogleEarth::Document; my $document=Geo::GoogleEarth::Document->new(); $document->Placemark();

Geo::GoogleEarth::Document::Placemark is a Geo::GoogleEarth::Document::Base with a few other methods.

my $placemark=$document->Placemark(name=>"Placemark Name",
lat=>$lat,
lon=>$lon,
alt=>$alt);

my $placemark=$document->Placemark(
name => "White House",
lat => 38.89769, #signed decimal degrees WGS-84
lon => -77.036549, #signed decimal degrees WGS-84
alt => 30, #meters above ellipsoid WGS-84
);
my $placemark=$document->Placemark(
name => "White House",
address => "1600 Pennsylvania Ave NW, Washington, DC 20006",
);

Returns the object type.
my $type=$placemark->type;
Returns a hash reference for feeding directly into XML::Simple.
my $structure=$placemark->structure;
Sets or returns address
my $address=$placemark->address;
Set or returns the description. Google Earth uses this as the HTML description in the Placemark popup window.
Sets or returns the "snippet", which is the descriptive text shown in the places list. Optionally sets the maximum number of lines to show.
my $snippet=$placemark->snippet($text);
$placemark->snippet($text, {maxLines=>2});
$placemark->snippet("", {maxLines=>0}); #popular setting
Sets or returns visibility
my $visibility=$placemark->visibility;
Sets or returns latitude. The format is signed decimal degrees WGS-84.
my $lat=$placemark->lat;
Sets or returns longitude. The format is signed decimal degrees WGS-84.
my $lon=$placemark->lon;
Sets or returns altitude. The units are meters above the ellipsoid WGS-84.
my $alt=$placemark->alt;
Typically, Google Earth "snaps" Placemarks to the surface regardless of how the altitude is set.


Try geo-perl email list.

Michael R. Davis (mrdvt92)
CPAN ID: MRDVT

This program is free software licensed under the...
The BSD License
The full text of the license can be found in the LICENSE file included with this module.

Geo::GoogleEarth::Document creates a GoogleEarth KML Document.