mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
Added the keep_aspect_ratio parameter to the render_map action
This commit is contained in:
parent
d85348821b
commit
a1155e5e71
@ -41,10 +41,10 @@ $graph_javascript = (bool)get_parameter('graph_javascript', false);
|
|||||||
if ($render_map) {
|
if ($render_map) {
|
||||||
$width = (int)get_parameter('width', '400');
|
$width = (int)get_parameter('width', '400');
|
||||||
$height = (int)get_parameter('height', '400');
|
$height = (int)get_parameter('height', '400');
|
||||||
|
$keep_aspect_ratio = (bool) get_parameter('keep_aspect_ratio');
|
||||||
|
|
||||||
visual_map_print_visual_map($id_visual_console, true, true, $width,
|
visual_map_print_visual_map($id_visual_console, true, true, $width,
|
||||||
$height, '', false, $graph_javascript);
|
$height, '', false, $graph_javascript, $keep_aspect_ratio);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user