| Geo-GoogleEarth-Pluggable documentation | Contained in the Geo-GoogleEarth-Pluggable distribution. |
Geo::GoogleEarth::Pluggable::LookAt - Geo::GoogleEarth::Pluggable LookAt package
my $lookat=$document->LookAt(
latitude => 38.1741527,
longitude => -96.7839388,
range => 3525808,
heading => 0,
tilt => 0,
);
$point->lookat($lookat);
$folder->lookat($lookat);
$document->lookat($lookat);
Provides a way to configure a LookAt for all Folders and Placemarks.
Returns the XML::LibXML::LazyBuilder element for the LookAt object.
Please log on RT and send to the geo-perl email list.
DavisNetworks.com supports all Perl applications including this package.
Michael R. Davis (mrdvt92) CPAN ID: MRDVT
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 creates a GoogleEarth Document.
| Geo-GoogleEarth-Pluggable documentation | Contained in the Geo-GoogleEarth-Pluggable distribution. |
package Geo::GoogleEarth::Pluggable::LookAt; use strict; use warnings; use base qw{Package::New}; use XML::LibXML::LazyBuilder qw{E}; our $VERSION="0.14";
sub latitude { my $self=shift; $self->{"latitude"}=shift if @_; return $self->{"latitude"}; }
sub longitude { my $self=shift; $self->{"longitude"}=shift if @_; return $self->{"longitude"}; }
sub range { my $self=shift; $self->{"range"}=shift if @_; return $self->{"range"}; }
sub tilt { my $self=shift; $self->{"tilt"}=shift if @_; return $self->{"tilt"}; }
sub heading { my $self=shift; $self->{"heading"}=shift if @_; return $self->{"heading"}; }
sub node { my $self=shift; my @elements=(); my %skip=map {$_=>1} qw{document}; foreach my $key (sort keys %$self) { next if exists $skip{$key}; push @elements, E($key => {}, $self->{$key}); } return E(LookAt => {}, @elements); }
1;