Group
Extension

Matches 5

Geo-Leaflet ( M/MR/MRDVT/Geo-Leaflet-0.03.tar.gz, MRDVT, 2024; MetaCPAN )
Geo-Leaflet/lib/Geo/Leaflet.pm ( view source; MetaCPAN )
et::polygon;
use Geo::Leaflet::polyline;
use Geo::Leaflet::rectangle;
use Geo::Leaflet::icon;
use JSON::XS qw{};
use HTML::Tiny qw{};;

our $VERSION = '0.03';
our $PACKAGE = __PACKAGE__;
our @OBJECTS 
>{'tileLayer'} = Geo::Leaflet::tileLayer->new(@_, JSON=>$self->JSON) if @_;
  $self->{'tileLayer'} = Geo::Leaflet::tileLayer->osm((), JSON=>$self->JSON) unless defined $self->{'tileLayer'};
  return $
e.html#icon>

=cut

sub icon {
  my $self = shift;
  my $icon = Geo::Leaflet::icon->new(@_, JSON=>$self->JSON);
  push @ICONS, $icon;
  return $icon;
}

=head1 MAP OBJECT CONSTRUCTORS

=head2 marker

Geo-Leaflet ( M/MR/MRDVT/Geo-Leaflet-0.03.tar.gz, MRDVT, 2024; MetaCPAN )
Geo-Leaflet/lib/Geo/Leaflet/icon.pm ( view source; MetaCPAN )
package Geo::Leaflet::icon;
use strict;
use warnings;
use base qw{Package::New};
use JSON::XS;

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

=head1 NAME

Geo::Leaflet::icon - Leaflet icon objec
icon(%s);}, $self->JSON->encode($self->options));
}

=head2 JSON

=cut

sub JSON {
  my $self        = shift;
  $self->{'JSON'} = JSON::XS->new->allow_nonref;
  return $self->{'JSON'};
}

=head1 SEE A
Geo-Leaflet ( M/MR/MRDVT/Geo-Leaflet-0.03.tar.gz, MRDVT, 2024; MetaCPAN )
Geo-Leaflet/lib/Geo/Leaflet/Base.pm ( view source; MetaCPAN )
package Geo::Leaflet::Base;
use strict;
use warnings;
use base qw{Package::New};
use JSON::XS;

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

=head1 NAME

Geo::Leaflet::Base - Leaflet base objec
printf('.bindPopup(%s)',   $self->JSON->encode($self->popup))   : '';
  my $tooltip = $self->can('tooltip') && $self->tooltip ? sprintf('.bindTooltip(%s)', $self->JSON->encode($self->tooltip)) : '';
 
$self->JSON->encode($value),
                 $self->JSON->encode($self->options),
                 $addmap,
                 $popup,
                 $tooltip,
                );
}

=head2 JSON

=cut
Geo-Leaflet ( M/MR/MRDVT/Geo-Leaflet-0.03.tar.gz, MRDVT, 2024; MetaCPAN )
Geo-Leaflet/lib/Geo/Leaflet/Objects.pm ( view source; MetaCPAN )
ip'} = shift if @_;
  return $self->{'tooltip'};
}

=head1 METHODS

=head2 stringify_base

=head2 JSON

=head1 SEE ALSO

=head1 AUTHOR

Michael R. Davis

=head1 COPYRIGHT AND LICENSE

Copyright (C) 20
Geo-Leaflet ( M/MR/MRDVT/Geo-Leaflet-0.03.tar.gz, MRDVT, 2024; MetaCPAN )
Geo-Leaflet/lib/Geo/Leaflet/marker.pm ( view source; MetaCPAN )
>popup   ? sprintf('.bindPopup(%s)',   $self->JSON->encode($self->popup))   : '';
  my $tooltip = $self->tooltip ? sprintf('.bindTooltip(%s)', $self->JSON->encode($self->tooltip)) : '';
  return sprin
%s)%s%s%s;},
                 $class,
                 $self->JSON->encode([$self->lat, $self->lon]),
                 $self->_hash_to_json($self->options),
                 $addmap,
                 
    );
}

#head2 _hash_to_json
#
#Custom JSON encoder!  Unfortunately, no Perl encoders support function name encoding as needed here for "icon" keys
#
#cut

sub _hash_to_json {
  my $self   = shift;

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.