| line | % | coverage | condition |
| 149 | 100 | | defined $class and not &blessed($class) and not UNIVERSAL::isa($class, __PACKAGE__) |
| 157 | 100 | | Params::Get::get_params(undef, \@_) || {} |
| 161 | 100 | | $class //= __PACKAGE__ |
| 163 | 100 | | Params::Get::get_params(undef, \@_) || {} |
| 192 | 67 | | $params->{'cache'} //= "CHI"->new("driver", "Memory", "global", 1, "expires_in", "1 day") |
| 279 | 100 | | &blessed($_[0]) and $_[0]->can("latitude") |
| 100 | | defined $_[0] and not ref $_[0] and scalar(@_) % 2 != 0 |
| 281 | 100 | | Params::Get::get_params(undef, \@_) || {} |
| 288 | 100 | | Params::Get::get_params(undef, \@_) || {} |
| 293 | 100 | | Params::Get::get_params(undef, \@_) || {} |
| 314 | 67 | | defined $lat and defined $lon |
| 370 | 100 | | Params::Get::get_params(undef, \@_) || {} |
| 429 | 100 | | Params::Get::get_params(undef, \@_) || {} |
| 549 | 100 | | Params::Get::get_params(undef, \@_) || {} |
| 554 | 100 | | $params->{'key'} || 'name' |
| 555 | 100 | | $params->{'scale'} || ['#ffffcc', '#a1dab4', '#41b6c4', '#2c7fb8', '#253494'] |
| 560 | 100 | | $sorted_vals[-1] // 0 |
| 100 | | $sorted_vals[0] // 0 |
| 635 | 100 | | ref $point and $point->can("latitude") |
| 649 | 67 | | defined $lat and defined $lon |
| 801 | 100 | | $self->{'height'} || '400px' |
| 802 | 100 | | $self->{'width'} || '600px' |
| 803 | 50 | | $self->{'coordinates'} || [] |
| 804 | 100 | | $self->{'geojson'} || [] |
| 805 | 100 | | $self->{'heatmap_layers'} || [] |
| 806 | 100 | | $self->{'gpx_tracks'} || [] |
| 807 | 100 | | $self->{'choropleth_layers'} || [] |
| 809 | 83 | | A | B | C | D | E | dec |
|---|
| 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 1 | 1 | | 0 | 0 | 0 | 1 | X | 1 | | 0 | 0 | 1 | X | X | 1 | | 0 | 1 | X | X | X | 1 | | 1 | X | X | X | X | 1 |
| @$coordinates or @$geojson_layers or @$heatmap_layers or @$gpx_tracks or @$choropleth_layers |
| 819 | 67 | | defined $lat and defined $lon |
| 825 | 50 | | defined $lat and defined $lon and _validate($lat, $lon) |
| 918 | 50 | | $layer->{'opts'} || {} |
| 934 | 50 | | $layer->{'opts'} || {} |
| 935 | 100 | | $opts->{'radius'} || 25 |
| 936 | 100 | | $opts->{'blur'} || 15 |
| 1029 | 100 | | &blessed($rc) and $rc->can("latitude") |
| 1034 | 100 | | defined $rc->{'lat'} and defined $rc->{'lon'} |
| 1058 | 67 | | $self->{'ua'} || 'LWP::UserAgent'->new('agent', 'HTML::OSM' . "/$VERSION") |
| 1077 | 67 | | ref $data eq "HASH" and defined $data->{'lat'} |
| 1102 | 100 | | defined $lat && defined $lon && $lat =~ /$numeric/ && $lon =~ /$numeric/ && $lat >= $LAT_MIN && $lat <= $LAT_MAX && $lon >= $LON_MIN && $lon <= $LON_MAX |
| 1107 | 50 | | $lon // "undef" |
| 100 | | not $ok and defined $lat and defined $lon |
| 50 | | $lat // "undef" |
| 1133 | 100 | | shift() // "" |