Geo::GoogleEarth::Pluggable::Plugin::Styles - Pre-loaded Styles for Geo::GoogleEarth::Pluggable
use Geo::GoogleEarth::Pluggable; my $docuemnt=Geo::GoogleEarth::Pluggable->new; my $style=$document->IconStyleRedDot;
This package provides methods that when called from a Geo::GoogleEarth::Pluggable document or folder object will be autoloaded and available for use.
If you do not like my colors you can simply at the bottom of your script.
package Geo::GoogleEarth::Pluggable::Plugin::Styles; use base qw{Geo::GoogleEarth::Pluggable::Plugin::Styles}; sub red {return {red=>255,green=>0, blue=0, alpha=>"95%"}}; sub blue {return {red=>0, green=>0, blue=255,alpha=>"95%"}}; sub green {return {red=>0, green=>255,blue=0, alpha=>"95%"}};
my $style=$document->IconStyleRed(alpha=>"90%");
my $style=$document->IconStyleRedDot(alpha=>"90%"); #Typical call
my $style=$document->IconStylePaddle("paddle-type"); #see paddle method
my $style=$document->LineStyleRed(width=>2, alpha=>"90%");
PolyStyles are AreaStyles with a LineStyle
my $style=$document->AreaStyleRed(alpha=>"90%");
my $style=$document->AreaStyleRed(width=>2, alpha=>"90%");
All color methods return a hash reference {red=>$R, green=>$G, blue=>$B, alpha=>$A}
my $color=$document->red(alpha=>"90%"); #Typical call
All icon methods return a fully qualified url.
my $url=$folder->dot;
my $url=$folder->paddle; my $url=$folder->paddle("red-circle"); #default my $url=$folder->paddle("A"); my $url=$folder->paddle("1"); my $url=$folder->paddle("blu-blank");
my $url=$folder->shape; my $url=$folder->shape("placemark_circle"); #default
my $url=$folder->pin; my $url=$folder->pin("ylw"); #default my $url=$folder->pin("blue"); my $url=$folder->pin("grn"); my $url=$folder->pin("red");
Try geo-perl email list
Michael R. Davis CPAN ID: MRDVT STOP, LLC domain=>michaelrdavis,tld=>com,account=>perl http://www.stopllc.com/
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.
Geo::GoogleEarth::Pluggable
To install Geo::GoogleEarth::Pluggable::Plugin::Styles, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::GoogleEarth::Pluggable::Plugin::Styles
CPAN shell
perl -MCPAN -e shell install Geo::GoogleEarth::Pluggable::Plugin::Styles
For more information on module installation, please visit the detailed CPAN module installation guide.