Geo::G...:Folder(3pm)
π Geo::G...:Folder(3pm) π
okay bestie, this is a page from the User Contributed Perl Documentation, and it's all about the cutest little folder object in the Google Earth-verse. let's get into it π
β¨ NAME β¨
Geo::GoogleEarth::Pluggable::Folder β it's giving Geo::GoogleEarth::Pluggable::Folder object. that's it, that's the name, no notes π
πΈ SYNOPSIS πΈ
so here's the whole vibe in three lines, look at her go:
use Geo::GoogleEarth::Pluggable;
my $document=Geo::GoogleEarth::Pluggable->new;
my $folder=$document->Folder(name=>"My Folder");
π¦ DESCRIPTION π¦
Geo::GoogleEarth::Pluggable::Folder is literally a Geo::GoogleEarth::Pluggable::Base with a few other methods sprinkled on top. iconic behavior honestly π
π USAGE π
the whole point: make folders, nest folders, live your truth β¨
my $folder=$document->Folder(); #add folder to $document
my $subfolder=$folder->Folder(); #add folder to $folder
π METHODS π
π initialize
we overide the default initialize method (yes bestie, the original says "overide", we don't fix typos in here, we respect the source π) β and the reason is so we can append the plugins method from Module::Pluggable onto the packages list of the Method::Autoload package.
here's the tea:
- the
packagesproperty? that's what theMethod::Autoloadpackage needs. - the
pluginsmethod? that's whatModule::Pluggableprovides.
so like... the Folder package now has every single method in the Plugins folder available to it at runtime. main character energy, no cap π
π Folder
Constructs a brand 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. so thoughtful of her π«Ά
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. same energy, different object π
$folder->NetworkLink(name=>"My NetworkLink", url=>"./anotherdoc.kml");
β¨ LookAt
Constructs a new LookAt object and returns the object reference so you can assign it to other objects' "lookat" properties. this is the where am I pointing one π₯
$document->LookAt(
latitude => $lat, #decimal degrees
longitude => $lon, #decimal degrees
range => $range, #meters
tilt => $tilt, #decimal degrees from veritical
heading => $header, #decimal degrees from North
);
ngl the comments sayveriticaland the variable is$headerβ that's exactly what the original says, so we keep it fr fr π
πΈ type
Returns the object type. short, sweet, slay.
my $type=$folder->type;
β node
(no description here bestie, it just exists. mysterious. love that for her.)
π data
Pushes arguments onto the data array and returns an array or reference that holds the folder object content. It's a list of objects that supports a type and structure method. β¨
my $data=$folder->data;
my @data=$folder->data;
$folder->data($placemark);
π open
(also no description. the silence is loud. moving on.)
π BUGS π
Please log on RT and send to the geo-perl email list. be a good citizen about it okay π«Ά
π LIMITATIONS π
Due to limitations in Perl hashes, it is not possible to specify the order of certain elements and attributes in the XML. it's not her fault, it's the hashes' fault π
π TODO π
(empty. nothing to do. a whole mood.)
π§ SUPPORT π§
Try geo-perl email list. that's the move bestie π
π AUTHOR π
Michael R. Davis (mrdvt92)
CPAN ID: MRDVT
β COPYRIGHT β
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. π
π SEE ALSO π
Geo::GoogleEarth::PluggableModule::PluggableMethod::AutoloadXML::LibXML::LazyBuilder
and that's the whole page bestie!! π this was perl v5.32.1 documentation from 2021-11-28, filed under Geo::G...:Folder(3pm) in the User Contributed Perl Documentation β go forth and nest those folders, you absolute icon πβ¨π
π¦ where this page comes from
- debian bookworm: libgeo-googleearth-pluggable-perl 0.17-1 Β· BSD-3-Clause~STOP
- debian trixie: libgeo-googleearth-pluggable-perl 0.17-1 Β· BSD-3-Clause~STOP
- ubuntu jammy: libgeo-googleearth-pluggable-perl 0.17-1 Β· BSD-3-Clause~STOP
- ubuntu noble: libgeo-googleearth-pluggable-perl 0.17-1 Β· BSD-3-Clause~STOP
- ubuntu resolute: libgeo-googleearth-pluggable-perl 0.17-1 Β· BSD-3-Clause~STOP
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms