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
Conversation
cf5733e
to
a4739db
Compare
Is this now ready for review? |
not yet: I want to test it in a project before. Note that this source has no example because of the access restriction |
Some docs about the access restrictions would be nice. |
a4739db
to
e1785f5
Compare
e1785f5
to
8c6790d
Compare
* The `Time` dimension of the source. | ||
* @type {string} | ||
*/ | ||
gmfx.source.SwisstopoOptions.prototype.timestamp; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
8c6790d
to
484b32a
Compare
*/ | ||
gmf.source.Swisstopo = function(options) { | ||
|
||
var format = options.format ? options.format : 'png'; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
484b32a
to
a1151ce
Compare
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
a1151ce
to
f1d44f7
Compare
Thanks for the review @pgiraud |
work in progress
Fixes #328