Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
prodige
bdl_visualiseur_core
Commits
25f52691
Commit
25f52691
authored
Oct 07, 2021
by
Chef Projet Prodige
Browse files
Update PrintController.php
parent
961c70c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Controllers/PrintController.php
View file @
25f52691
...
...
@@ -630,7 +630,8 @@ class PrintController extends ControllerBase
/*$x = $extent[0] + ($extent[2] - $extent[0])/2;
$y = $extent[1] + ($extent[3] - $extent[1])/2;*/
$x
=
(
$minx
+
$maxx
)
/
2
;
$y
=
(
$miny
+
$maxy
)
/
2
;
// hack... ajout d'un décalage, pour centrer le polygone, décalage vers le bas sinon
$y
=
(
$miny
+
$maxy
)
/
2
-
450
;
$centerOfExtent
=
[
$x
,
$y
];
if
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment