logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Geo::GoogleEarth::Pluggable::Style - Geo::GoogleEarth::Pluggable Style Object

Author

           Michael R. Davis (mrdvt92)
           CPAN ID: MRDVT

Bugs

       Please log on RT and send to the geo-perl email list.

Constructor

new
         my $style=$document->Style(id=>"Style_Internal_HREF",
                                    iconHref=>"http://.../path/image.png");

Description

       Geo::GoogleEarth::Pluggable::Style is a Geo::GoogleEarth::Pluggable::Base with a few other methods.

Methods

type
       Returns the object type.

         my $type=$style->type;

   nodecolor
       Returns a color code for use in the XML structure given many different inputs.

         my $color=$style->color("FFFFFFFF"); #AABBGGRR in hex
         my $color=$style->color({color="FFFFFFFF"});
         my $color=$style->color({red=>255, green=>255, blue=>255, alpha=>255});
         my $color=$style->color({rgb=>[255,255,255], alpha=>255});
         my $color=$style->color({abgr=>[255,255,255,255]});
        #my $color=$style->color({name=>"blue", alpha=>255});  #TODO with ColorNames

       Note: alpha can be 0-255 or "0%"-"100%"

Name

       Geo::GoogleEarth::Pluggable::Style - Geo::GoogleEarth::Pluggable Style Object

See Also

       Geo::GoogleEarth::Pluggable creates a GoogleEarth Document.

perl v5.32.1                                       2021-11-28             Geo::GoogleEart...luggable::Style(3pm)

Support

       Try geo-perl email list.

Synopsis

         use Geo::GoogleEarth::Pluggable;
         my $document=Geo::GoogleEarth::Pluggable->new();
         my $style=$document->Style();

Usage

         my $style=$document->Style(id=>"Style_Internal_HREF",
                                    iconHref=>"http://.../path/image.png");

See Also