Geo::GoogleEarth::Pluggable::StyleBase - Geo::GoogleEarth::Pluggable StyleBase Object


Geo-GoogleEarth-Pluggable documentation Contained in the Geo-GoogleEarth-Pluggable distribution.

Index


Code Index:

NAME

Top

Geo::GoogleEarth::Pluggable::StyleBase - Geo::GoogleEarth::Pluggable StyleBase Object

SYNOPSIS

Top

  use base qw{Geo::GoogleEarth::Pluggable::StyleBase};

DESCRIPTION

Top

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

USAGE

Top

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

METHODS

Top

id

url

BUGS

Top

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

SUPPORT

Top

Try geo-perl email list.

AUTHOR

Top

  Michael R. Davis (mrdvt92)
  CPAN ID: MRDVT

COPYRIGHT

Top

SEE ALSO

Top

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


Geo-GoogleEarth-Pluggable documentation Contained in the Geo-GoogleEarth-Pluggable distribution.
package Geo::GoogleEarth::Pluggable::StyleBase;
use base qw{Geo::GoogleEarth::Pluggable::Base};
use warnings;
use strict;

our $VERSION='0.09';
our $PACKAGE=__PACKAGE__;

sub id {
  my $self=shift();
  $self->{'id'}=shift if @_;
  $self->{'id'}=$self->document->nextId($self->type) unless defined $self->{"id"};
  return $self->{'id'};
}

sub url {
  my $self=shift;
  return sprintf("#%s", $self->id);
}

1;