Add default path width

main
Daniel Asher Resnick 5 months ago
parent 07c1494b77
commit d99d7446ca
  1. 5
      wiki-map.pl

@ -28,6 +28,7 @@ my $path_template_name = "MapPath";
my $border_width = 1;
my $border_colour = 'black';
my $default_path_stroke_width = 5;
my $show_coords = 0;
my $embed_images = 1;
@ -364,8 +365,8 @@ foreach my $page (values %{$path_tile_query_results->{query}{pages}})
do { carp "Skipping bad spec: $coords"; next; } unless $coords =~ $coords_regex;
push @path_coords, [$1,$2];
}
$grid->make_path_from($path_spec{id}, \@path_coords, css_class => 'path',
colour => $path_spec{colour}, style => { 'stroke-width' => $path_spec{stroke_width} });
$grid->make_path_from($path_spec{id}, \@path_coords, css_class => 'path', colour => $path_spec{colour},
style => { 'stroke-width' => $path_spec{stroke_width} // $default_path_stroke_width });
}

Loading…
Cancel
Save