Skip to content

Commit

Permalink
TILES-6537 reducing the default z-index (#36)
Browse files Browse the repository at this point in the history
* https://jira.2gis.ru/browse/TILES-6537 reducing the default z-index
* 2.0.9
  • Loading branch information
Nortren authored Jul 15, 2024
1 parent 696e294 commit 5e006d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@2gis/mapgl-ruler",
"version": "2.0.8",
"version": "2.0.9",
"description": "",
"license": "BSD-2-Clause",
"main": "dist/ruler.js",
Expand Down
6 changes: 5 additions & 1 deletion src/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const maxPhase = 2147483647; // max zIndex in CSS (2 ** 31 - 1).
// The z-index value for this element is set to 10. This number is chosen to be lower than the z-index
// of controls and plugins in MapGL, which is 50. This approach allows us to manage the layering of elements
// without resorting to negative z-index values.

const maxPhase = 10;

/**
* @hidden
Expand Down

0 comments on commit 5e006d6

Please sign in to comment.