Skip to content
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

support OSGeo format for tiles #1978

Closed
wants to merge 1 commit into from
Closed

support OSGeo format for tiles #1978

wants to merge 1 commit into from

Conversation

stoecker
Copy link

See #1948

@@ -44,7 +44,8 @@ ol.TileUrlFunction.createFromTemplate = function(template) {
} else {
return template.replace('{z}', tileCoord.z.toString())
.replace('{x}', tileCoord.x.toString())
.replace('{y}', tileCoord.y.toString());
.replace('{y}', tileCoord.y.toString())
.replace('{-y}', (1<<tileCoord.z)-1-tileCoord.y).toString());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make the linter happy, you'll need to change this to something like

.replace('{-y}', (1 << tileCoord.z) - 1 - tileCoord.y).toString());

and make sure that the line is not longer than 80 characters. Also see the output of Travis for error messages, or run ./build.py check locally before committing.

@fredj
Copy link
Member

fredj commented Apr 14, 2014

See #1983, also adds an example a unit tests.

@fredj
Copy link
Member

fredj commented Apr 14, 2014

fixed with 9b5512c

@fredj fredj closed this Apr 14, 2014
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.

None yet

3 participants