Geo::G...:Folder(3pm)

πŸ“¦
version 0.17 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute

πŸ’– 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 packages property? that's what the Method::Autoload package needs.
  • the plugins method? that's what Module::Pluggable provides.

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");

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 say veritical and 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

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::Pluggable
  • Module::Pluggable
  • Method::Autoload
  • XML::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