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

Add wrapX option to ol.source.XYZ #1868

Merged
merged 2 commits into from
Mar 17, 2014
Merged

Add wrapX option to ol.source.XYZ #1868

merged 2 commits into from
Mar 17, 2014

Conversation

twpayne
Copy link
Contributor

@twpayne twpayne commented Mar 17, 2014

This adds a wrapX option to disable world wrapping. Use it like this:

var source = new ol.source.XYZ({
  url: '/path/to/tiles/{z}/{x}/{y}',
  wrapX: false
});

Fixes #1864.

@@ -994,6 +994,8 @@
* @property {string|undefined} url URL template. Must include `{x}`, `{y}`,
* and `{z}` placeholders.
* @property {Array.<string>|undefined} urls An array of URL templates.
* @property {boolean|undefined} wrapX Whether to wrap the world horziontally.
Copy link
Member

Choose a reason for hiding this comment

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

horizontally instead of horziontally

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, fixed.

@fredj
Copy link
Member

fredj commented Mar 17, 2014

LGTM

twpayne added a commit that referenced this pull request Mar 17, 2014
Add wrapX option to ol.source.XYZ
@twpayne twpayne merged commit ade384f into openlayers:master Mar 17, 2014
@twpayne twpayne deleted the wrap-x branch March 17, 2014 13:16
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.

To disable world wrapping
2 participants