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

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

✨ NAME ✨

Geo::GoogleEarth::Pluggable::StyleMap β€” bestie, it's the StyleMap object for Geo::GoogleEarth::Pluggable. That's it, that's the whole vibe check πŸ’…


🌈 SYNOPSIS 🌈

okay so here's how you actually use it, no cap:

use Geo::GoogleEarth::Pluggable;
my $document=Geo::GoogleEarth::Pluggable->new;
my $style=$document->StyleMap(%data);
print $document->render;

like. look at her. iconic behavior πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

Geo::GoogleEarth::Pluggable::StyleMap is literally a Geo::GoogleEarth::Pluggable::Base with a few other methods. that's the tea, that's the whole thing, periodt πŸ’–


🌸 USAGE 🌸

the way you call it is by handing over your normal and highlight styles, like:

my $style=$document->StyleMap(
                              normal    => $style1,
                              highlight => $style2,
                             );

so normal gets $style1 and highlight gets $style2 β€” two keys, two styles, we love a clean pairing 🫢


πŸ‘‘ CONSTRUCTOR πŸ‘‘

new

my $style=$document->StyleMap;

yes bestie, you just call StyleMap on the document and boom β€” new object, main character energy ⭐


πŸ’œ METHODS πŸ’œ

type

returns the object type. she tells you who she is:

my $type=$style->type;

ngl, knowing your own type? growth 🌱

node

generates XML. and it looks exactly like this, character for character, do not touch:

<StyleMap id="StyleMap-perl-69">
  <Pair>
    <key>normal</key>
    <styleUrl>#Style-perl-19</styleUrl>
  </Pair>
  <Pair>
    <key>highlight</key>
    <styleUrl>#Style-perl-11</styleUrl>
  </Pair>
</StyleMap>

two <Pair>s, one normal, one highlight, each with its own <styleUrl> β€” it's giving matching bestie outfits πŸŽ€βœ¨


πŸ’€ BUGS πŸ’€

found a bug? 😭 please log on RT and send it to the geo-perl email list. don't just suffer in silence, that's not the move.


🫢 SUPPORT 🫢

try the geo-perl email list. the girlies there know things, iykyk πŸ’–


🧚 AUTHOR 🧚

Michael R. Davis (mrdvt92)
CPAN ID: MRDVT

shoutout to the author, absolute legend for this one πŸ‘‘


this program is free software licensed under the... ✨

The BSD License

the full text of the license lives in the LICENSE file that ships with this module β€” go read it, it's right there bestie πŸ“œ


🌈 SEE ALSO 🌈

  • Geo::GoogleEarth::Pluggable
  • XML::LibXML::LazyBuilder
  • Scalar::Util

the whole friend group, honestly πŸ’…


and that's the page!! perl v5.32.1, dated 2021-11-28 β€” the Geo::G...tyleMap(3pm) manual, brought to you with love, sparkles, and zero lost details πŸ¦‹πŸ’–πŸŽ€βœ¨
πŸ“¦ where this page comes from