Bounding box values cast to int in TileProxyController::isInBoundingBox #13
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
codemacher/tile_proxy#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In TileProxyController::isInBoundingBox lines 62 - 65 the bounding box values are cast to integers with intval.
https://git.codemacher.de/codemacher/tile_proxy/src/branch/main/Classes/Controller/TileProxyController.php#L62
This causes the map to be empty, if a small bounding box is used, e.g.
8.16,49.96,8.39,50.04This would be cast to
8,49,8,50so the bounding box is emptyThe cast should be changed to floatval.
Tested with TYPO3 14.3
Hi,
welcome and thank you for reporting.
I'll take a look at it next week.
Best regards
Built-in and released