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 support for setZIndex() #33

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

cwassert
Copy link

No description provided.

@wipfli
Copy link
Contributor

wipfli commented Sep 30, 2022

Thanks for the contribution @cwassert. Can you write an issue with a motivation for this pull request? Or update the description of this pull request?

@wipfli
Copy link
Contributor

wipfli commented Sep 30, 2022

Also a new test is needed for this functionality...

@webberig
Copy link
Contributor

webberig commented Oct 1, 2022

You should also add typings to leaflet-maplibre-gl.d.ts

},

_updateZIndex: function () {
if (this._container && this.options.zIndex !== undefined && this.options.zIndex !== null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

could be written with conditional chaining?

Suggested change
if (this._container && this.options.zIndex !== undefined && this.options.zIndex !== null) {
if (this._container && this.options?.zIndex) {

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.

4 participants