Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@nickbrigden83
Copy link
Contributor

No description provided.

if (pane !== null) {
options["pane"] = pane.getAttribute("name");
}
const style = this.getAttribute("style");
Copy link
Owner

Choose a reason for hiding this comment

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

Does this cause problems with native browser styling?

Copy link
Owner

Choose a reason for hiding this comment

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

On second thoughts, https://leafletjs.com/reference.html#path-option, Path options aren't similar enough to native browser style options to force an unintuitive api usage

Copy link
Owner

@andrewgryan andrewgryan left a comment

Choose a reason for hiding this comment

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

The only concern I had was a potential conflict of using the style attribute for Leaflet purposes without overriding or avoiding the native browser usage of the style attribute. This is an acceptable risk and conforms to the Leaflet-HTML guidance on attribute definitions.

@andrewgryan andrewgryan merged commit e216678 into andrewgryan:master Aug 29, 2025
1 check passed
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.

2 participants