Geo::G...:Style(3pm)
β¨ Geo::GoogleEarth::Pluggable::Plugin::Style(3pm) β¨
okay bestie, gather round π this is the manual page for Geo::GoogleEarth::Pluggable::Plugin::Style(3pm) (it shows up in the header all squished as Geo::G...:Style(3pm), but you know her full name now). She's a plugin package, and she's the one handing out all the Style methods for Geo::GoogleEarth::Pluggable. It's giving "user contributed perl documentation" and honestly? iconic.
πΈ NAME πΈ
Geo::GoogleEarth::Pluggable::Plugin::Style β the Style Plugin Methods for Geo::GoogleEarth::Pluggable. no cap, that's literally her whole job π
π¦ SYNOPSIS π¦
use Geo::GoogleEarth::Pluggable;
my $document=Geo::GoogleEarth::Pluggable->new; #ISA L<Geo::GoogleEarth::Pluggable>
my $style=$document->IconStyle(color=>{red=>255}); #ISA L<Geo::GoogleEarth::Pluggable::Style>
my $point=$document->Point(style=>$style); #ISA L<Geo::GoogleEarth::Pluggable::Contrib::Point>
print $document->render;
see how easy? build a document, grab a style, slap it on a point, render. main character workflow fr fr π
π METHODS π
okay so here's the tea: the methods in this package get AUTOLOADed into the Geo::GoogleEarth::Pluggable::Folder namespace at runtime. yes, at runtime. she's mysterious like that β¨
π Style π
Constructs a brand new Style object and appends it to the document object. Returns the Style object reference. two ways to call her, and both are valid bestie:
my $style=$folder->Style(
id => $id, #default is good
IconStyle => {},
LineStyle => {},
PolyStyle => {},
LabelStyle => {},
ListStyle => {},
);
note theidthere β the comment says#default is good, so you can just... let her do her thing π«Ά
or, if you already have styles lying around and you just want to lift parts out of them:
my $style=$folder->Style(
IconStyle => $style1, #extracts IconStyle from $style1
LineStyle => $style2, #extracts LineStyle from $style2
PolyStyle => $style3, #extracts PolyStyle from $style3
);
she extracts what she needs. very efficient. very demure. π
π StyleMap π
Constructs a new StyleMap object and appends it to the document object. Returns the StyleMap object reference. she takes a normal and a highlight, like moods, but for styles:
my $stylemap=$document->StyleMap(
normal => $style1,
highlight => $style2,
);
β IconStyle β
my $style=$folder->IconStyle(
color => $color,
scale => $scale,
href => $url,
);
π§ LineStyle π§
my $color={red=>255, green=>255, blue=>255, alpha=>255};
my $style=$folder->LineStyle(color=>$color);
π PolyStyle π
my $color={red=>255, green=>255, blue=>255, alpha=>255};
my $style=$folder->PolyStyle(color=>$color);
π LabelStyle π
my $style=$folder->LabelStyle(
color => $color,
scale => $scale,
);
πΈ ListStyle πΈ
my $style=$folder->ListStyle(
href => $url,
);
π TODO π
Need to determine what methods should be in the Folder package and what should be on the Plugin/Style package and why.
(yeah. she said it. open question. we love an honest queen π)
π BUGS π
Please log on RT and send to the geo-perl email list.
π LIMITATIONS π
listen. this is important. this will construct 100 identical style objects and that's not the vibe:
foreach (1 .. 100) {
$document->Point(style=>$document->IconStyle(color=>{red=>255}));
}
Do this instead:
my $style=$document->IconStyle(color=>{red=>255});
foreach (1 .. 100) {
$document->Point(style=>$style);
}
build the style once, reuse it, save your poor little machine the drama. periodt. π₯
π«Ά SUPPORT π«Ά
Try geo-perl email list.
π 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::Pluggablecreates a GoogleEarth Document.
and that's the whole page bestie, you ate it π
this was Geo::G...:Style(3pm) from perl v5.32.1, dated 2021-11-28 β go forth and style responsibly πβ¨π¦
π¦ 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