Skip to content

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