Geo::GoogleEarth::Pluggable::Style(3pm)

Geo::GoogleEarth::Pluggable::Style3pm

Geo::googleearth::pluggable style object

Usage

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

Overview

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

Usage

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

Constructor

new

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

Methods

type

Returns the object type.

  my $type=$style->type;

node

color

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%"

Support

Try geo-perl email list.

Releases

7 releases since Debian 7 (Wheezy); the text changed 3 times.

  1. 7
  2. 8–10
  3. 11
  4. 12–13

Bugs

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

Author

    Michael R. Davis (mrdvt92)
    CPAN ID: MRDVT

From libgeo-googleearth-pluggable-perl 0.17-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.