-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/add l tile layer wms #50
Feature/add l tile layer wms #50
Conversation
src/l-tile-layer-wms.js
Outdated
attribution: optional(htmlAttribute("attribution")), | ||
|
||
// Optional options | ||
options: optional(htmlAttribute("options")), |
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.
I think this needs to be JSON parsed and merged with the other wmsOptions
object. At least, that's my understanding from the Leaflet WMS docs
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.
Ah great point. Addressed in 5756053
…g, and parse accordingly. Also written tests and formatted.
src/l-tile-layer-wms.js
Outdated
"Error whilst parsing JSON for options attribute in l-tile-layer-wms", | ||
e, | ||
); | ||
return null; |
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.
How does this behave with ...
destructuring?
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.
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.
A highly useful addition to the library!
This is a PR that addresses 3/4 requirements from Issue 45: Add WMS Layer Support.