Navigation Menu

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 new gmf.source.Swisstopo #333

Merged
merged 1 commit into from Nov 24, 2015
Merged

Conversation

fredj
Copy link
Member

@fredj fredj commented Oct 1, 2015

work in progress
Fixes #328

@elemoine
Copy link
Contributor

elemoine commented Oct 5, 2015

Is this now ready for review?

@fredj
Copy link
Member Author

fredj commented Oct 5, 2015

not yet: I want to test it in a project before.

Note that this source has no example because of the access restriction

@elemoine
Copy link
Contributor

elemoine commented Oct 5, 2015

Some docs about the access restrictions would be nice.

* The `Time` dimension of the source.
* @type {string}
*/
gmfx.source.SwisstopoOptions.prototype.timestamp;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this be put just after the AsitVDOptions source?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

*/
gmf.source.Swisstopo = function(options) {

var format = options.format ? options.format : 'png';
Copy link
Contributor

Choose a reason for hiding this comment

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

You're declaring the format variable but not using it afterwards.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

goog.base(this, {
attributions: [gmf.source.Swisstopo.ATTRIBUTION_],
url: 'https://wmts{5-9}.geo.admin.ch/1.0.0/{Layer}/default/{Time}' +
'/21781/{TileMatrix}/{TileRow}/{TileCol}.' + options.format,
Copy link
Contributor

Choose a reason for hiding this comment

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

format instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

@sbrunner
Copy link
Member

Thanks @pgiraud , @fredj, for me it can me merged :-)

@fredj
Copy link
Member Author

fredj commented Nov 24, 2015

Thanks for the review @pgiraud

fredj added a commit that referenced this pull request Nov 24, 2015
@fredj fredj merged commit 1edffe7 into camptocamp:master Nov 24, 2015
@fredj fredj deleted the swisstopo_source branch November 24, 2015 09:25
@sbrunner sbrunner added this to the Older milestone Aug 23, 2019
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.

Add new gmf.source.Swisstopo
4 participants