blib/lib/HTML/GoogleMaps/V3.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 24 | 31 | 77.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
113 | 0 | 0 | 2 | defined $location->{'geometry'}{'location'}{'lat'} and defined $location->{'geometry'}{'location'}{'lng'} |
154 | 0 | 0 | 1 | $avg_lng < 0 and abs $avg_lng <= 90 |
line | l | !l | condition |
---|---|---|---|
178 | 1 | 0 | $self->_text_to_point($point_text) || (return 0) |
233 | 6 | 0 | {'normal', 'NORMAL', 'map_type', 'NORMAL', 'satellite_type', 'SATELLITE', 'satellite', 'SATELLITE', 'hybrid', 'HYBRID', 'road', 'ROADMAP'}->{$type} || (return 0) |
253 | 16 | 0 | $self->_text_to_point($opts{'point'}) || (return 0) |
281 | 1 | 4 | $opts{'color'} || '#0000ff' |
1 | 4 | $opts{'weight'} || 5 | |
1 | 4 | $opts{'opacity'} || 0.5 | |
366 | 9 | 7 | $self->{'id'} ||= 'map' |
367 | 10 | 6 | $self->{'height'} ||= '400px' |
368 | 10 | 6 | $self->{'width'} ||= '600px' |
369 | 8 | 8 | $self->{'type'} ||= 'NORMAL' |
370 | 8 | 8 | $self->{'zoom'} ||= 13 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
371 | 7 | 3 | 6 | $self->{'center'} ||= $self->_find_center |