Geo::GoogleEarth::Pluggable::Folder3pm
Geo::googleearth::pluggable::folder object
Usage
use Geo::GoogleEarth::Pluggable;my $document=Geo::GoogleEarth::Pluggable->new;my $folder=$document->Folder(name=>"My Folder");
Overview
Geo::GoogleEarth::Pluggable::Folder is a Geo::GoogleEarth::Pluggable::Base with a few other methods.
Usage
my $folder=$document->Folder(); #add folder to $documentmy $subfolder=$folder->Folder(); #add folder to $folder
Methods
initialize
We overide the default "initialize" method in order to append the "plugins" method from Module::Pluggable on to the packages list of the Method::Autoload package.
The "packages" property is what is needed by Method::Autoload package. The "plugins" method is what is provided by Module::Pluggable. So, the Folder package now has available to it every method in the "Plugins" folder at runtime.
Folder
Constructs a new Folder object and appends it to the parent folder object. Returns the object reference if you need to make any setting changes after construction.
my $folder=$folder->Folder(name=>"My Folder");$folder->Folder(name=>"My Folder");
NetworkLink
Constructs a new NetworkLink object and appends it to the parent folder object. Returns the object reference if you need to make any setting changes after construction.
$folder->NetworkLink(name=>"My NetworkLink", url=>"./anotherdoc.kml");
LookAt
Constructs a new LookAt object and returns the object reference to assign to other object "lookat" properties.
$document->LookAt(latitude => $lat, #decimal degreeslongitude => $lon, #decimal degreesrange => $range, #meterstilt => $tilt, #decimal degrees from veriticalheading => $header, #decimal degrees from North);
type
Returns the object type.
my $type=$folder->type;
node
data
Pushes arguments onto data array and returns an array or reference that holds folder object content. This is a list of objects that supports a type and structure method.
my $data=$folder->data;my @data=$folder->data;$folder->data($placemark);
open
Limitations
Due to limitations in Perl hashes, it is not possible to specify the order of certain elements and attributes in the XML.
Todo
Support
Try geo-perl email list.
Releases
7 releases since Debian 7 (Wheezy); the text changed 3 times.