Skip to content

Consider tilesize when calculating the grid#45

Open
WMDE-Fisch wants to merge 1 commit intomapbox:masterfrom
wikimedia:fix-tilesize-upstream
Open

Consider tilesize when calculating the grid#45
WMDE-Fisch wants to merge 1 commit intomapbox:masterfrom
wikimedia:fix-tilesize-upstream

Conversation

@WMDE-Fisch
Copy link

This never worked before. The calculation for sizes other than 1 did use the right center point for the static image.

The patch fixes that and also adjusts the test for it.

The code is currently used in a different fork that's deployed on the servers used here:

https://maps.wikimedia.org/img/osm-intl,18,43.748,7.434,400x400.png
https://maps.wikimedia.org/img/osm-intl,18,43.748,7.434,400x400@2x.png

@2x zooms the stitched tiles.

There's also an older pull request that's a bit outdated now. #39

This never worked before. The calculation for sizes other than 1
did use the right center point for the static image.

The patch fixes that and also adjusts the test for it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant