Skip to content

Adds ability to set Y Axis Positive upwards using a tms attribute on link elements #197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Nov 10, 2020

Conversation

ahmadayubi
Copy link
Member

@ahmadayubi ahmadayubi commented Oct 27, 2020

Allows author to set the y axis positive upwards using a tms attribute on link elements for example:

<link tms rel="tile" tref="https://maps4html.org/TiledArt-Rousseau/TheBanksOfTheBièvreNearBicêtre/{zoomLevel}/{col}/{row}.png" />

The tms attribute indicates that the row values of each tile should be subtracted from the max row value of the projection at the zoom level.
i.e. tile{col:1, row:1} is converted to tile{col:1, row:4}, given that the projection max at the given zoom level is 5.

A working example can be seen in demo/painting.html
Still needs tests.
Closes #192
Closes #205

@ahmadayubi ahmadayubi changed the title Adds ability to set Y Axis Positive upwards using -y following TMS convention Adds ability to set Y Axis Positive upwards using a tms attribute on link elements Nov 10, 2020
@ahmadayubi ahmadayubi marked this pull request as ready for review November 10, 2020 16:52
@prushforth prushforth merged commit a1147d9 into Maps4HTML:master Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants