Skip to content

Commit 07b4fc1

Browse files
author
xavier
committed
Fix ScreenOverlay issues
1 parent 3be2dfb commit 07b4fc1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

libKML/features/overlays/ScreenOverlay.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ public function __toString() {
2727
}
2828

2929
if (isset($this->overlayXY)) {
30-
$output[] = sprintf("\t<overlayXY %s />", $this->overlayXY);
30+
$output[] = sprintf("\t<overlayXY %s />", (string)$this->overlayXY);
3131
}
3232

3333
if (isset($this->screenXY)) {
34-
$output[] = sprintf("\t<screenXY %s />", $this->screenXY);
34+
$output[] = sprintf("\t<screenXY %s />", (string)$this->screenXY);
3535
}
3636

3737
if (isset($this->rotationXY)) {
38-
$output[] = sprintf("\t<rotationXY %s />", $this->rotationXY);
38+
$output[] = sprintf("\t<rotationXY %s />", (string)$this->rotationXY);
3939
}
4040

4141
if (isset($this->size)) {
42-
$output[] = sprintf("\t<size %s />", $this->size);
42+
$output[] = sprintf("\t<size %s />", (string) $this->size);
4343
}
4444

4545
$output[] = "</ScreenOverlay>";

0 commit comments

Comments
 (0)