diff --git a/package-lock.json b/package-lock.json index 6cddc61..6b06718 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@2gis/mapgl-ruler", - "version": "2.0.8", + "version": "2.0.9", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index f40bcc1..feb386e 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/style.ts b/src/style.ts index f82820d..04d2e14 100644 --- a/src/style.ts +++ b/src/style.ts @@ -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