Merge remote-tracking branch 'upstream/master' into remove_ie_support
This commit is contained in:
commit
56e4aa8e69
15 changed files with 748 additions and 648 deletions
2
.github/workflows/ct.yml
vendored
2
.github/workflows/ct.yml
vendored
|
|
@ -60,7 +60,7 @@ jobs:
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Test Docker Build
|
- name: Test Docker Build
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: false
|
push: false
|
||||||
|
|
|
||||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
|
@ -80,7 +80,7 @@ jobs:
|
||||||
password: ${{ github.event.inputs.docker_token }}
|
password: ${{ github.event.inputs.docker_token }}
|
||||||
|
|
||||||
- name: Build and publish Full Version to Docker Hub
|
- name: Build and publish Full Version to Docker Hub
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
|
|
@ -106,7 +106,7 @@ jobs:
|
||||||
NPM_TOKEN: ${{ github.event.inputs.npm_token }}
|
NPM_TOKEN: ${{ github.event.inputs.npm_token }}
|
||||||
|
|
||||||
- name: Build and publish Light Version to Docker Hub
|
- name: Build and publish Light Version to Docker Hub
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: ./light
|
context: ./light
|
||||||
file: ./light/Dockerfile
|
file: ./light/Dockerfile
|
||||||
|
|
|
||||||
|
|
@ -41,11 +41,13 @@ RUN wget -qO- https://deb.nodesource.com/setup_18.x | bash; \
|
||||||
rm -rf /var/lib/apt/lists/*;
|
rm -rf /var/lib/apt/lists/*;
|
||||||
|
|
||||||
RUN mkdir -p /usr/src/app
|
RUN mkdir -p /usr/src/app
|
||||||
COPY package* /usr/src/app
|
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
RUN npm install --omit=dev
|
COPY package.json /usr/src/app
|
||||||
|
COPY package-lock.json /usr/src/app
|
||||||
|
|
||||||
|
RUN npm ci --omit=dev
|
||||||
|
|
||||||
FROM ubuntu:focal AS final
|
FROM ubuntu:focal AS final
|
||||||
|
|
||||||
|
|
|
||||||
29
LICENSE.md
29
LICENSE.md
|
|
@ -974,3 +974,32 @@ distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
||||||
|
===========================================================================
|
||||||
|
|
||||||
|
Leaflet - BSD 2-Clause License
|
||||||
|
|
||||||
|
Copyright (c) 2010-2023, Volodymyr Agafonkin
|
||||||
|
Copyright (c) 2010-2011, CloudMade
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
@ -1,35 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
handle() {
|
|
||||||
SIGNAL=$(( $? - 128 ))
|
|
||||||
echo "Caught signal ${SIGNAL}, stopping gracefully"
|
|
||||||
kill -s ${SIGNAL} $(pidof node) 2>/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
trap handle INT TERM
|
|
||||||
|
|
||||||
refresh() {
|
|
||||||
SIGNAL=$(( $? - 128 ))
|
|
||||||
echo "Caught signal ${SIGNAL}, refreshing"
|
|
||||||
kill -s ${SIGNAL} $(pidof node) 2>/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
trap refresh HUP
|
|
||||||
|
|
||||||
if ! which -- "${1}"; then
|
if ! which -- "${1}"; then
|
||||||
# first arg is not an executable
|
# first arg is not an executable
|
||||||
xvfb-run -a --server-args="-screen 0 1024x768x24" -- node /usr/src/app/ "$@" &
|
export DISPLAY=:99
|
||||||
# Wait exits immediately on signals which have traps set. Store return value and wait
|
Xvfb "${DISPLAY}" -nolisten unix &
|
||||||
# again for all jobs to actually complete before continuing.
|
exec node /usr/src/app/ "$@"
|
||||||
wait $! || RETVAL=$?
|
|
||||||
while [ ${RETVAL} = 129 ] ; do
|
|
||||||
# Refressh signal HUP received. Continue waiting for signals.
|
|
||||||
wait $! || RETVAL=$?
|
|
||||||
done
|
|
||||||
wait
|
|
||||||
exit ${RETVAL}
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
|
||||||
|
|
@ -1,35 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
handle() {
|
|
||||||
SIGNAL=$(( $? - 128 ))
|
|
||||||
echo "Caught signal ${SIGNAL}, stopping gracefully"
|
|
||||||
kill -s ${SIGNAL} $(pidof node) 2>/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
trap handle INT TERM
|
|
||||||
|
|
||||||
refresh() {
|
|
||||||
SIGNAL=$(( $? - 128 ))
|
|
||||||
echo "Caught signal ${SIGNAL}, refreshing"
|
|
||||||
kill -s ${SIGNAL} $(pidof node) 2>/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
trap refresh HUP
|
|
||||||
|
|
||||||
if ! which -- "${1}"; then
|
if ! which -- "${1}"; then
|
||||||
# first arg is not an executable
|
# first arg is not an executable
|
||||||
node /usr/src/app/ "$@" &
|
exec node /usr/src/app/ "$@"
|
||||||
# Wait exits immediately on signals which have traps set. Store return value and wait
|
|
||||||
# again for all jobs to actually complete before continuing.
|
|
||||||
wait $! || RETVAL=$?
|
|
||||||
while [ ${RETVAL} = 129 ] ; do
|
|
||||||
# Refressh signal HUP received. Continue waiting for signals.
|
|
||||||
wait $! || RETVAL=$?
|
|
||||||
done
|
|
||||||
wait
|
|
||||||
exit ${RETVAL}
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,58 @@ Caching
|
||||||
|
|
||||||
There is a plenty of options you can use to create proper caching infrastructure: Varnish, CloudFlare, ...
|
There is a plenty of options you can use to create proper caching infrastructure: Varnish, CloudFlare, ...
|
||||||
|
|
||||||
|
Cloudflare Cache Rules
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Cloudflare supports custom rules for configuring caching:
|
||||||
|
https://developers.cloudflare.com/cache/about/cache-rules/
|
||||||
|
|
||||||
|
tileserver-gl renders tiles in multiple formats - ``.png``, ``.jpg (jpeg)``, ``.webp`` for the raster endpoints, ``.pbf`` for vector endpoint. In addition, style information is generated with ``.json`` format.
|
||||||
|
|
||||||
|
Endpoint data can be configured to be cached by Cloudflare. For example to cache vector endpoint you will need to configure Cloudflare rules for the ``.pbf`` and ``.json`` data.
|
||||||
|
|
||||||
|
Create a rule which matches ``hostname (equal)`` and ``URI Path (ends with)`` for ``.pbf`` and ``.json`` fields. Set cache status to eligible for cache to enable the caching and overwrite the ``Edge TTL`` with ``Browser TTL`` to be 7 days (depends on your application usage).
|
||||||
|
|
||||||
|
This will ensure that Cloudflare will cache your tiles on Cloudflare side for seven days aswell on the client side. If the tileserver is down or user has no internet access it will try to use cached tiles from Cloudflare or local.
|
||||||
|
|
||||||
|
Note that ``Browser TTL`` will overwrite expiration dates on the client device. If you rebuild your maps, old tiles will be rendered until it expires or cache is cleared on the client device.
|
||||||
|
|
||||||
|
Nginx Cache
|
||||||
|
-----------
|
||||||
|
|
||||||
|
If you have a reverse proxy setup in front of the tileserver you may want to enable caching as it will greatly offload requests from the application.
|
||||||
|
|
||||||
|
Configure the proxy cache path directive to initialize your cache store:
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
proxy_cache_path /var/cache/nginx/tileserver
|
||||||
|
keys_zone=TileserverCache:50m
|
||||||
|
levels=1:2
|
||||||
|
inactive=2w
|
||||||
|
max_size=10g;
|
||||||
|
|
||||||
|
Make sure to give proper permissions for the /var/cache/nginx/tileserver folder. Usually nginx is running with www-data user.
|
||||||
|
Enable caching on specific proxy pass:
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
location / {
|
||||||
|
include proxy_params;
|
||||||
|
proxy_pass http://127.0.0.1:8080/;
|
||||||
|
|
||||||
|
proxy_cache TileserverCache;
|
||||||
|
proxy_cache_valid 200 1w;
|
||||||
|
|
||||||
|
# add_header X-Cache-Status $upstream_cache_status;
|
||||||
|
}
|
||||||
|
|
||||||
|
If you need to confirm whether caching works or not, uncomment the X-Cache-Status header. This will return a header on response with `HIT` or `MISS` header value which indicates if nginx cached the response or not.
|
||||||
|
|
||||||
|
Make sure to clean your cache by removing files in the configured directory after you change your styles or tile information. You may experiment with the caching values to fit your needs.
|
||||||
|
|
||||||
|
More about Nginx caching: https://docs.nginx.com/nginx/admin-guide/content-cache/content-caching/
|
||||||
|
|
||||||
Securing
|
Securing
|
||||||
========
|
========
|
||||||
|
|
||||||
|
|
@ -18,3 +70,68 @@ Running behind a proxy or a load-balancer
|
||||||
=========================================
|
=========================================
|
||||||
|
|
||||||
If you need to run TileServer GL behind a proxy, make sure the proxy sends ``X-Forwarded-*`` headers to the server (most importantly ``X-Forwarded-Host`` and ``X-Forwarded-Proto``) to ensure the URLs generated inside TileJSON, etc. are using the desired domain and protocol.
|
If you need to run TileServer GL behind a proxy, make sure the proxy sends ``X-Forwarded-*`` headers to the server (most importantly ``X-Forwarded-Host`` and ``X-Forwarded-Proto``) to ensure the URLs generated inside TileJSON, etc. are using the desired domain and protocol.
|
||||||
|
|
||||||
|
Nginx Reverse Proxy
|
||||||
|
-----------
|
||||||
|
|
||||||
|
An example nginx reverse proxy server configuration for HTTPS connections. It enables caching, CORS and Cloudflare Authenticated Pulls.
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
proxy_cache_path /var/cache/nginx/tileserver
|
||||||
|
keys_zone=TileserverCache:50m
|
||||||
|
levels=1:2
|
||||||
|
inactive=2w
|
||||||
|
max_size=1g;
|
||||||
|
|
||||||
|
map_hash_bucket_size 128;
|
||||||
|
map $http_origin $allow_origin {
|
||||||
|
https://www.example.com $http_origin;
|
||||||
|
default "";
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
|
ssl_certificate /etc/ssl/www.example.com/cert.pem;
|
||||||
|
ssl_certificate_key /etc/ssl/www.example.com/key.pem;
|
||||||
|
|
||||||
|
# https://developers.cloudflare.com/ssl/origin-configuration/authenticated-origin-pull/
|
||||||
|
ssl_client_certificate /etc/ssl/cloudflare.pem;
|
||||||
|
ssl_verify_client on;
|
||||||
|
|
||||||
|
server_name www.example.com example.com;
|
||||||
|
|
||||||
|
# Disable root application access. You may want to allow this in development.
|
||||||
|
location ~ ^/$ {
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Disable root application access. You may want to allow this in development.
|
||||||
|
location /favicon.ico {
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
# This include directive sets up required headers for proxy and proxy cache.
|
||||||
|
# Aswell it includes the required ``X-Forwarded-*`` headers for tileserver to propely generate tiles.
|
||||||
|
include proxy_params;
|
||||||
|
|
||||||
|
proxy_pass http://127.0.0.1:8080/;
|
||||||
|
|
||||||
|
# Disable default CORS headers
|
||||||
|
proxy_hide_header Access-Control-Allow-Origin;
|
||||||
|
|
||||||
|
# Enable proxy cache
|
||||||
|
proxy_cache TileserverCache;
|
||||||
|
proxy_cache_valid 200 1w;
|
||||||
|
|
||||||
|
# Set our custom CORS
|
||||||
|
add_header 'Access-Control-Allow-Origin' $allow_origin;
|
||||||
|
|
||||||
|
# If you need to see nginx cache status. Uncomment line below.
|
||||||
|
# add_header X-Cache-Status $upstream_cache_status;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
273
package-lock.json
generated
273
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "tileserver-gl",
|
"name": "tileserver-gl",
|
||||||
"version": "4.4.2",
|
"version": "4.4.5",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "tileserver-gl",
|
"name": "tileserver-gl",
|
||||||
"version": "4.4.2",
|
"version": "4.4.5",
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mapbox/glyph-pbf-composite": "0.0.3",
|
"@mapbox/glyph-pbf-composite": "0.0.3",
|
||||||
|
|
@ -38,20 +38,20 @@
|
||||||
"tileserver-gl": "src/main.js"
|
"tileserver-gl": "src/main.js"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "^17.4.2",
|
"@commitlint/cli": "^17.4.4",
|
||||||
"@commitlint/config-conventional": "^17.4.2",
|
"@commitlint/config-conventional": "^17.4.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.49.0",
|
"@typescript-eslint/eslint-plugin": "^5.52.0",
|
||||||
"@typescript-eslint/parser": "^5.49.0",
|
"@typescript-eslint/parser": "^5.52.0",
|
||||||
"chai": "4.3.7",
|
"chai": "4.3.7",
|
||||||
"eslint": "^8.32.0",
|
"eslint": "^8.34.0",
|
||||||
"eslint-config-prettier": "^8.6.0",
|
"eslint-config-prettier": "^8.6.0",
|
||||||
"eslint-plugin-jsdoc": "^39.6.8",
|
"eslint-plugin-jsdoc": "^40.0.0",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
"eslint-plugin-security": "^1.7.0",
|
"eslint-plugin-security": "^1.7.1",
|
||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"lint-staged": "^13.1.0",
|
"lint-staged": "^13.1.2",
|
||||||
"mocha": "^10.2.0",
|
"mocha": "^10.2.0",
|
||||||
"prettier": "^2.8.3",
|
"prettier": "^2.8.4",
|
||||||
"should": "^13.2.3",
|
"should": "^13.2.3",
|
||||||
"supertest": "^6.3.3",
|
"supertest": "^6.3.3",
|
||||||
"yaml-lint": "^1.7.0"
|
"yaml-lint": "^1.7.0"
|
||||||
|
|
@ -196,16 +196,16 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@commitlint/cli": {
|
"node_modules/@commitlint/cli": {
|
||||||
"version": "17.4.2",
|
"version": "17.4.4",
|
||||||
"resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-17.4.2.tgz",
|
"resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-17.4.4.tgz",
|
||||||
"integrity": "sha512-0rPGJ2O1owhpxMIXL9YJ2CgPkdrFLKZElIZHXDN8L8+qWK1DGH7Q7IelBT1pchXTYTuDlqkOTdh//aTvT3bSUA==",
|
"integrity": "sha512-HwKlD7CPVMVGTAeFZylVNy14Vm5POVY0WxPkZr7EXLC/os0LH/obs6z4HRvJtH/nHCMYBvUBQhGwnufKfTjd5g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@commitlint/format": "^17.4.0",
|
"@commitlint/format": "^17.4.4",
|
||||||
"@commitlint/lint": "^17.4.2",
|
"@commitlint/lint": "^17.4.4",
|
||||||
"@commitlint/load": "^17.4.2",
|
"@commitlint/load": "^17.4.4",
|
||||||
"@commitlint/read": "^17.4.2",
|
"@commitlint/read": "^17.4.4",
|
||||||
"@commitlint/types": "^17.4.0",
|
"@commitlint/types": "^17.4.4",
|
||||||
"execa": "^5.0.0",
|
"execa": "^5.0.0",
|
||||||
"lodash.isfunction": "^3.0.9",
|
"lodash.isfunction": "^3.0.9",
|
||||||
"resolve-from": "5.0.0",
|
"resolve-from": "5.0.0",
|
||||||
|
|
@ -220,9 +220,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@commitlint/config-conventional": {
|
"node_modules/@commitlint/config-conventional": {
|
||||||
"version": "17.4.2",
|
"version": "17.4.4",
|
||||||
"resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-17.4.2.tgz",
|
"resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-17.4.4.tgz",
|
||||||
"integrity": "sha512-JVo1moSj5eDMoql159q8zKCU8lkOhQ+b23Vl3LVVrS6PXDLQIELnJ34ChQmFVbBdSSRNAbbXnRDhosFU+wnuHw==",
|
"integrity": "sha512-u6ztvxqzi6NuhrcEDR7a+z0yrh11elY66nRrQIpqsqW6sZmpxYkDLtpRH8jRML+mmxYQ8s4qqF06Q/IQx5aJeQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"conventional-changelog-conventionalcommits": "^5.0.0"
|
"conventional-changelog-conventionalcommits": "^5.0.0"
|
||||||
|
|
@ -232,12 +232,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@commitlint/config-validator": {
|
"node_modules/@commitlint/config-validator": {
|
||||||
"version": "17.4.0",
|
"version": "17.4.4",
|
||||||
"resolved": "https://registry.npmjs.org/@commitlint/config-validator/-/config-validator-17.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/@commitlint/config-validator/-/config-validator-17.4.4.tgz",
|
||||||
"integrity": "sha512-Sa/+8KNpDXz4zT4bVbz2fpFjvgkPO6u2V2fP4TKgt6FjmOw2z3eEX859vtfeaTav/ukBw0/0jr+5ZTZp9zCBhA==",
|
"integrity": "sha512-bi0+TstqMiqoBAQDvdEP4AFh0GaKyLFlPPEObgI29utoKEYoPQTvF0EYqIwYYLEoJYhj5GfMIhPHJkTJhagfeg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@commitlint/types": "^17.4.0",
|
"@commitlint/types": "^17.4.4",
|
||||||
"ajv": "^8.11.0"
|
"ajv": "^8.11.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
@ -245,12 +245,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@commitlint/ensure": {
|
"node_modules/@commitlint/ensure": {
|
||||||
"version": "17.4.0",
|
"version": "17.4.4",
|
||||||
"resolved": "https://registry.npmjs.org/@commitlint/ensure/-/ensure-17.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/@commitlint/ensure/-/ensure-17.4.4.tgz",
|
||||||
"integrity": "sha512-7oAxt25je0jeQ/E0O/M8L3ADb1Cvweu/5lc/kYF8g/kXatI0wxGE5La52onnAUAWeWlsuvBNar15WcrmDmr5Mw==",
|
"integrity": "sha512-AHsFCNh8hbhJiuZ2qHv/m59W/GRE9UeOXbkOqxYMNNg9pJ7qELnFcwj5oYpa6vzTSHtPGKf3C2yUFNy1GGHq6g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@commitlint/types": "^17.4.0",
|
"@commitlint/types": "^17.4.4",
|
||||||
"lodash.camelcase": "^4.3.0",
|
"lodash.camelcase": "^4.3.0",
|
||||||
"lodash.kebabcase": "^4.1.1",
|
"lodash.kebabcase": "^4.1.1",
|
||||||
"lodash.snakecase": "^4.1.1",
|
"lodash.snakecase": "^4.1.1",
|
||||||
|
|
@ -271,12 +271,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@commitlint/format": {
|
"node_modules/@commitlint/format": {
|
||||||
"version": "17.4.0",
|
"version": "17.4.4",
|
||||||
"resolved": "https://registry.npmjs.org/@commitlint/format/-/format-17.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/@commitlint/format/-/format-17.4.4.tgz",
|
||||||
"integrity": "sha512-Z2bWAU5+f1YZh9W76c84J8iLIWIvvm+mzqogTz0Nsc1x6EHW0Z2gI38g5HAjB0r0I3ZjR15IDEJKhsxyblcyhA==",
|
"integrity": "sha512-+IS7vpC4Gd/x+uyQPTAt3hXs5NxnkqAZ3aqrHd5Bx/R9skyCAWusNlNbw3InDbAK6j166D9asQM8fnmYIa+CXQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@commitlint/types": "^17.4.0",
|
"@commitlint/types": "^17.4.4",
|
||||||
"chalk": "^4.1.0"
|
"chalk": "^4.1.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
@ -284,12 +284,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@commitlint/is-ignored": {
|
"node_modules/@commitlint/is-ignored": {
|
||||||
"version": "17.4.2",
|
"version": "17.4.4",
|
||||||
"resolved": "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-17.4.2.tgz",
|
"resolved": "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-17.4.4.tgz",
|
||||||
"integrity": "sha512-1b2Y2qJ6n7bHG9K6h8S4lBGUl6kc7mMhJN9gy1SQfUZqe92ToDjUTtgNWb6LbzR1X8Cq4SEus4VU8Z/riEa94Q==",
|
"integrity": "sha512-Y3eo1SFJ2JQDik4rWkBC4tlRIxlXEFrRWxcyrzb1PUT2k3kZ/XGNuCDfk/u0bU2/yS0tOA/mTjFsV+C4qyACHw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@commitlint/types": "^17.4.0",
|
"@commitlint/types": "^17.4.4",
|
||||||
"semver": "7.3.8"
|
"semver": "7.3.8"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
@ -297,30 +297,30 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@commitlint/lint": {
|
"node_modules/@commitlint/lint": {
|
||||||
"version": "17.4.2",
|
"version": "17.4.4",
|
||||||
"resolved": "https://registry.npmjs.org/@commitlint/lint/-/lint-17.4.2.tgz",
|
"resolved": "https://registry.npmjs.org/@commitlint/lint/-/lint-17.4.4.tgz",
|
||||||
"integrity": "sha512-HcymabrdBhsDMNzIv146+ZPNBPBK5gMNsVH+el2lCagnYgCi/4ixrHooeVyS64Fgce2K26+MC7OQ4vVH8wQWVw==",
|
"integrity": "sha512-qgkCRRFjyhbMDWsti/5jRYVJkgYZj4r+ZmweZObnbYqPUl5UKLWMf9a/ZZisOI4JfiPmRktYRZ2JmqlSvg+ccw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@commitlint/is-ignored": "^17.4.2",
|
"@commitlint/is-ignored": "^17.4.4",
|
||||||
"@commitlint/parse": "^17.4.2",
|
"@commitlint/parse": "^17.4.4",
|
||||||
"@commitlint/rules": "^17.4.2",
|
"@commitlint/rules": "^17.4.4",
|
||||||
"@commitlint/types": "^17.4.0"
|
"@commitlint/types": "^17.4.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=v14"
|
"node": ">=v14"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@commitlint/load": {
|
"node_modules/@commitlint/load": {
|
||||||
"version": "17.4.2",
|
"version": "17.4.4",
|
||||||
"resolved": "https://registry.npmjs.org/@commitlint/load/-/load-17.4.2.tgz",
|
"resolved": "https://registry.npmjs.org/@commitlint/load/-/load-17.4.4.tgz",
|
||||||
"integrity": "sha512-Si++F85rJ9t4hw6JcOw1i2h0fdpdFQt0YKwjuK4bk9KhFjyFkRxvR3SB2dPaMs+EwWlDrDBGL+ygip1QD6gmPw==",
|
"integrity": "sha512-z6uFIQ7wfKX5FGBe1AkOF4l/ShOQsaa1ml/nLMkbW7R/xF8galGS7Zh0yHvzVp/srtfS0brC+0bUfQfmpMPFVQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@commitlint/config-validator": "^17.4.0",
|
"@commitlint/config-validator": "^17.4.4",
|
||||||
"@commitlint/execute-rule": "^17.4.0",
|
"@commitlint/execute-rule": "^17.4.0",
|
||||||
"@commitlint/resolve-extends": "^17.4.0",
|
"@commitlint/resolve-extends": "^17.4.4",
|
||||||
"@commitlint/types": "^17.4.0",
|
"@commitlint/types": "^17.4.4",
|
||||||
"@types/node": "*",
|
"@types/node": "*",
|
||||||
"chalk": "^4.1.0",
|
"chalk": "^4.1.0",
|
||||||
"cosmiconfig": "^8.0.0",
|
"cosmiconfig": "^8.0.0",
|
||||||
|
|
@ -346,12 +346,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@commitlint/parse": {
|
"node_modules/@commitlint/parse": {
|
||||||
"version": "17.4.2",
|
"version": "17.4.4",
|
||||||
"resolved": "https://registry.npmjs.org/@commitlint/parse/-/parse-17.4.2.tgz",
|
"resolved": "https://registry.npmjs.org/@commitlint/parse/-/parse-17.4.4.tgz",
|
||||||
"integrity": "sha512-DK4EwqhxfXpyCA+UH8TBRIAXAfmmX4q9QRBz/2h9F9sI91yt6mltTrL6TKURMcjUVmgaB80wgS9QybNIyVBIJA==",
|
"integrity": "sha512-EKzz4f49d3/OU0Fplog7nwz/lAfXMaDxtriidyGF9PtR+SRbgv4FhsfF310tKxs6EPj8Y+aWWuX3beN5s+yqGg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@commitlint/types": "^17.4.0",
|
"@commitlint/types": "^17.4.4",
|
||||||
"conventional-changelog-angular": "^5.0.11",
|
"conventional-changelog-angular": "^5.0.11",
|
||||||
"conventional-commits-parser": "^3.2.2"
|
"conventional-commits-parser": "^3.2.2"
|
||||||
},
|
},
|
||||||
|
|
@ -360,13 +360,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@commitlint/read": {
|
"node_modules/@commitlint/read": {
|
||||||
"version": "17.4.2",
|
"version": "17.4.4",
|
||||||
"resolved": "https://registry.npmjs.org/@commitlint/read/-/read-17.4.2.tgz",
|
"resolved": "https://registry.npmjs.org/@commitlint/read/-/read-17.4.4.tgz",
|
||||||
"integrity": "sha512-hasYOdbhEg+W4hi0InmXHxtD/1favB4WdwyFxs1eOy/DvMw6+2IZBmATgGOlqhahsypk4kChhxjAFJAZ2F+JBg==",
|
"integrity": "sha512-B2TvUMJKK+Svzs6eji23WXsRJ8PAD+orI44lVuVNsm5zmI7O8RSGJMvdEZEikiA4Vohfb+HevaPoWZ7PiFZ3zA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@commitlint/top-level": "^17.4.0",
|
"@commitlint/top-level": "^17.4.0",
|
||||||
"@commitlint/types": "^17.4.0",
|
"@commitlint/types": "^17.4.4",
|
||||||
"fs-extra": "^11.0.0",
|
"fs-extra": "^11.0.0",
|
||||||
"git-raw-commits": "^2.0.0",
|
"git-raw-commits": "^2.0.0",
|
||||||
"minimist": "^1.2.6"
|
"minimist": "^1.2.6"
|
||||||
|
|
@ -376,13 +376,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@commitlint/resolve-extends": {
|
"node_modules/@commitlint/resolve-extends": {
|
||||||
"version": "17.4.0",
|
"version": "17.4.4",
|
||||||
"resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-17.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-17.4.4.tgz",
|
||||||
"integrity": "sha512-3JsmwkrCzoK8sO22AzLBvNEvC1Pmdn/65RKXzEtQMy6oYMl0Snrq97a5bQQEFETF0VsvbtUuKttLqqgn99OXRQ==",
|
"integrity": "sha512-znXr1S0Rr8adInptHw0JeLgumS11lWbk5xAWFVno+HUFVN45875kUtqjrI6AppmD3JI+4s0uZlqqlkepjJd99A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@commitlint/config-validator": "^17.4.0",
|
"@commitlint/config-validator": "^17.4.4",
|
||||||
"@commitlint/types": "^17.4.0",
|
"@commitlint/types": "^17.4.4",
|
||||||
"import-fresh": "^3.0.0",
|
"import-fresh": "^3.0.0",
|
||||||
"lodash.mergewith": "^4.6.2",
|
"lodash.mergewith": "^4.6.2",
|
||||||
"resolve-from": "^5.0.0",
|
"resolve-from": "^5.0.0",
|
||||||
|
|
@ -393,15 +393,15 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@commitlint/rules": {
|
"node_modules/@commitlint/rules": {
|
||||||
"version": "17.4.2",
|
"version": "17.4.4",
|
||||||
"resolved": "https://registry.npmjs.org/@commitlint/rules/-/rules-17.4.2.tgz",
|
"resolved": "https://registry.npmjs.org/@commitlint/rules/-/rules-17.4.4.tgz",
|
||||||
"integrity": "sha512-OGrPsMb9Fx3/bZ64/EzJehY9YDSGWzp81Pj+zJiY+r/NSgJI3nUYdlS37jykNIugzazdEXfMtQ10kmA+Kx2pZQ==",
|
"integrity": "sha512-0tgvXnHi/mVcyR8Y8mjTFZIa/FEQXA4uEutXS/imH2v1UNkYDSEMsK/68wiXRpfW1euSgEdwRkvE1z23+yhNrQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@commitlint/ensure": "^17.4.0",
|
"@commitlint/ensure": "^17.4.4",
|
||||||
"@commitlint/message": "^17.4.2",
|
"@commitlint/message": "^17.4.2",
|
||||||
"@commitlint/to-lines": "^17.4.0",
|
"@commitlint/to-lines": "^17.4.0",
|
||||||
"@commitlint/types": "^17.4.0",
|
"@commitlint/types": "^17.4.4",
|
||||||
"execa": "^5.0.0"
|
"execa": "^5.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
@ -430,9 +430,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@commitlint/types": {
|
"node_modules/@commitlint/types": {
|
||||||
"version": "17.4.0",
|
"version": "17.4.4",
|
||||||
"resolved": "https://registry.npmjs.org/@commitlint/types/-/types-17.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/@commitlint/types/-/types-17.4.4.tgz",
|
||||||
"integrity": "sha512-2NjAnq5IcxY9kXtUeO2Ac0aPpvkuOmwbH/BxIm36XXK5LtWFObWJWjXOA+kcaABMrthjWu6la+FUpyYFMHRvbA==",
|
"integrity": "sha512-amRN8tRLYOsxRr6mTnGGGvB5EmW/4DDjLMgiwK3CCVEmN6Sr/6xePGEpWaspKkckILuUORCwe6VfDBw6uj4axQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chalk": "^4.1.0"
|
"chalk": "^4.1.0"
|
||||||
|
|
@ -998,9 +998,9 @@
|
||||||
"integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ=="
|
"integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ=="
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "18.11.18",
|
"version": "18.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.14.0.tgz",
|
||||||
"integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==",
|
"integrity": "sha512-5EWrvLmglK+imbCJY0+INViFWUHg1AHel1sq4ZVSfdcNqGy9Edv3UB9IIzzg+xPaUcAgZYcfVs2fBcwDeZzU0A==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@types/normalize-package-data": {
|
"node_modules/@types/normalize-package-data": {
|
||||||
|
|
@ -1015,15 +1015,16 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/eslint-plugin": {
|
"node_modules/@typescript-eslint/eslint-plugin": {
|
||||||
"version": "5.49.0",
|
"version": "5.52.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.49.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.52.0.tgz",
|
||||||
"integrity": "sha512-IhxabIpcf++TBaBa1h7jtOWyon80SXPRLDq0dVz5SLFC/eW6tofkw/O7Ar3lkx5z5U6wzbKDrl2larprp5kk5Q==",
|
"integrity": "sha512-lHazYdvYVsBokwCdKOppvYJKaJ4S41CgKBcPvyd0xjZNbvQdhn/pnJlGtQksQ/NhInzdaeaSarlBjDXHuclEbg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/scope-manager": "5.49.0",
|
"@typescript-eslint/scope-manager": "5.52.0",
|
||||||
"@typescript-eslint/type-utils": "5.49.0",
|
"@typescript-eslint/type-utils": "5.52.0",
|
||||||
"@typescript-eslint/utils": "5.49.0",
|
"@typescript-eslint/utils": "5.52.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
|
"grapheme-splitter": "^1.0.4",
|
||||||
"ignore": "^5.2.0",
|
"ignore": "^5.2.0",
|
||||||
"natural-compare-lite": "^1.4.0",
|
"natural-compare-lite": "^1.4.0",
|
||||||
"regexpp": "^3.2.0",
|
"regexpp": "^3.2.0",
|
||||||
|
|
@ -1048,14 +1049,14 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/parser": {
|
"node_modules/@typescript-eslint/parser": {
|
||||||
"version": "5.49.0",
|
"version": "5.52.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.49.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.52.0.tgz",
|
||||||
"integrity": "sha512-veDlZN9mUhGqU31Qiv2qEp+XrJj5fgZpJ8PW30sHU+j/8/e5ruAhLaVDAeznS7A7i4ucb/s8IozpDtt9NqCkZg==",
|
"integrity": "sha512-e2KiLQOZRo4Y0D/b+3y08i3jsekoSkOYStROYmPUnGMEoA0h+k2qOH5H6tcjIc68WDvGwH+PaOrP1XRzLJ6QlA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/scope-manager": "5.49.0",
|
"@typescript-eslint/scope-manager": "5.52.0",
|
||||||
"@typescript-eslint/types": "5.49.0",
|
"@typescript-eslint/types": "5.52.0",
|
||||||
"@typescript-eslint/typescript-estree": "5.49.0",
|
"@typescript-eslint/typescript-estree": "5.52.0",
|
||||||
"debug": "^4.3.4"
|
"debug": "^4.3.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
@ -1075,13 +1076,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/scope-manager": {
|
"node_modules/@typescript-eslint/scope-manager": {
|
||||||
"version": "5.49.0",
|
"version": "5.52.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.49.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.52.0.tgz",
|
||||||
"integrity": "sha512-clpROBOiMIzpbWNxCe1xDK14uPZh35u4QaZO1GddilEzoCLAEz4szb51rBpdgurs5k2YzPtJeTEN3qVbG+LRUQ==",
|
"integrity": "sha512-AR7sxxfBKiNV0FWBSARxM8DmNxrwgnYMPwmpkC1Pl1n+eT8/I2NAUPuwDy/FmDcC6F8pBfmOcaxcxRHspgOBMw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "5.49.0",
|
"@typescript-eslint/types": "5.52.0",
|
||||||
"@typescript-eslint/visitor-keys": "5.49.0"
|
"@typescript-eslint/visitor-keys": "5.52.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
||||||
|
|
@ -1092,13 +1093,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/type-utils": {
|
"node_modules/@typescript-eslint/type-utils": {
|
||||||
"version": "5.49.0",
|
"version": "5.52.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.49.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.52.0.tgz",
|
||||||
"integrity": "sha512-eUgLTYq0tR0FGU5g1YHm4rt5H/+V2IPVkP0cBmbhRyEmyGe4XvJ2YJ6sYTmONfjmdMqyMLad7SB8GvblbeESZA==",
|
"integrity": "sha512-tEKuUHfDOv852QGlpPtB3lHOoig5pyFQN/cUiZtpw99D93nEBjexRLre5sQZlkMoHry/lZr8qDAt2oAHLKA6Jw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/typescript-estree": "5.49.0",
|
"@typescript-eslint/typescript-estree": "5.52.0",
|
||||||
"@typescript-eslint/utils": "5.49.0",
|
"@typescript-eslint/utils": "5.52.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"tsutils": "^3.21.0"
|
"tsutils": "^3.21.0"
|
||||||
},
|
},
|
||||||
|
|
@ -1119,9 +1120,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/types": {
|
"node_modules/@typescript-eslint/types": {
|
||||||
"version": "5.49.0",
|
"version": "5.52.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.49.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.52.0.tgz",
|
||||||
"integrity": "sha512-7If46kusG+sSnEpu0yOz2xFv5nRz158nzEXnJFCGVEHWnuzolXKwrH5Bsf9zsNlOQkyZuk0BZKKoJQI+1JPBBg==",
|
"integrity": "sha512-oV7XU4CHYfBhk78fS7tkum+/Dpgsfi91IIDy7fjCyq2k6KB63M6gMC0YIvy+iABzmXThCRI6xpCEyVObBdWSDQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
||||||
|
|
@ -1132,13 +1133,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/typescript-estree": {
|
"node_modules/@typescript-eslint/typescript-estree": {
|
||||||
"version": "5.49.0",
|
"version": "5.52.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.49.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.52.0.tgz",
|
||||||
"integrity": "sha512-PBdx+V7deZT/3GjNYPVQv1Nc0U46dAHbIuOG8AZ3on3vuEKiPDwFE/lG1snN2eUB9IhF7EyF7K1hmTcLztNIsA==",
|
"integrity": "sha512-WeWnjanyEwt6+fVrSR0MYgEpUAuROxuAH516WPjUblIrClzYJj0kBbjdnbQXLpgAN8qbEuGywiQsXUVDiAoEuQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "5.49.0",
|
"@typescript-eslint/types": "5.52.0",
|
||||||
"@typescript-eslint/visitor-keys": "5.49.0",
|
"@typescript-eslint/visitor-keys": "5.52.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"globby": "^11.1.0",
|
"globby": "^11.1.0",
|
||||||
"is-glob": "^4.0.3",
|
"is-glob": "^4.0.3",
|
||||||
|
|
@ -1159,16 +1160,16 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/utils": {
|
"node_modules/@typescript-eslint/utils": {
|
||||||
"version": "5.49.0",
|
"version": "5.52.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.49.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.52.0.tgz",
|
||||||
"integrity": "sha512-cPJue/4Si25FViIb74sHCLtM4nTSBXtLx1d3/QT6mirQ/c65bV8arBEebBJJizfq8W2YyMoPI/WWPFWitmNqnQ==",
|
"integrity": "sha512-As3lChhrbwWQLNk2HC8Ree96hldKIqk98EYvypd3It8Q1f8d5zWyIoaZEp2va5667M4ZyE7X8UUR+azXrFl+NA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/json-schema": "^7.0.9",
|
"@types/json-schema": "^7.0.9",
|
||||||
"@types/semver": "^7.3.12",
|
"@types/semver": "^7.3.12",
|
||||||
"@typescript-eslint/scope-manager": "5.49.0",
|
"@typescript-eslint/scope-manager": "5.52.0",
|
||||||
"@typescript-eslint/types": "5.49.0",
|
"@typescript-eslint/types": "5.52.0",
|
||||||
"@typescript-eslint/typescript-estree": "5.49.0",
|
"@typescript-eslint/typescript-estree": "5.52.0",
|
||||||
"eslint-scope": "^5.1.1",
|
"eslint-scope": "^5.1.1",
|
||||||
"eslint-utils": "^3.0.0",
|
"eslint-utils": "^3.0.0",
|
||||||
"semver": "^7.3.7"
|
"semver": "^7.3.7"
|
||||||
|
|
@ -1185,12 +1186,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/visitor-keys": {
|
"node_modules/@typescript-eslint/visitor-keys": {
|
||||||
"version": "5.49.0",
|
"version": "5.52.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.49.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.52.0.tgz",
|
||||||
"integrity": "sha512-v9jBMjpNWyn8B6k/Mjt6VbUS4J1GvUlR4x3Y+ibnP1z7y7V4n0WRz+50DY6+Myj0UaXVSuUlHohO+eZ8IJEnkg==",
|
"integrity": "sha512-qMwpw6SU5VHCPr99y274xhbm+PRViK/NATY6qzt+Et7+mThGuFSl/ompj2/hrBlRP/kq+BFdgagnOSgw9TB0eA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "5.49.0",
|
"@typescript-eslint/types": "5.52.0",
|
||||||
"eslint-visitor-keys": "^3.3.0"
|
"eslint-visitor-keys": "^3.3.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
@ -2207,9 +2208,9 @@
|
||||||
"integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="
|
"integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="
|
||||||
},
|
},
|
||||||
"node_modules/cookiejar": {
|
"node_modules/cookiejar": {
|
||||||
"version": "2.1.3",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz",
|
||||||
"integrity": "sha512-JxbCBUdrfr6AQjOXrxoTvAMJO4HBTUIlBzslcJPAz+/KT8yk53fXun51u+RenNYvad/+Vc2DIz5o9UxlCDymFQ==",
|
"integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/core-util-is": {
|
"node_modules/core-util-is": {
|
||||||
|
|
@ -2695,9 +2696,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eslint": {
|
"node_modules/eslint": {
|
||||||
"version": "8.32.0",
|
"version": "8.34.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.32.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.34.0.tgz",
|
||||||
"integrity": "sha512-nETVXpnthqKPFyuY2FNjz/bEd6nbosRgKbkgS/y1C7LJop96gYHWpiguLecMHQ2XCPxn77DS0P+68WzG6vkZSQ==",
|
"integrity": "sha512-1Z8iFsucw+7kSqXNZVslXS8Ioa4u2KM7GPwuKtkTFAqZ/cHMcEaR+1+Br0wLlot49cNxIiZk5wp8EAbPcYZxTg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint/eslintrc": "^1.4.1",
|
"@eslint/eslintrc": "^1.4.1",
|
||||||
|
|
@ -2763,9 +2764,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eslint-plugin-jsdoc": {
|
"node_modules/eslint-plugin-jsdoc": {
|
||||||
"version": "39.6.8",
|
"version": "40.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-39.6.8.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-40.0.0.tgz",
|
||||||
"integrity": "sha512-8W2B2vCfqXmV6AxhEO9u25zPqk7V/LxCsZBl0xDF1CSLDqabiQQtZXpWp19K53HMfFZMLeNRJRUFFhauWgMZrA==",
|
"integrity": "sha512-LOPyIu1vAVvGPkye3ci0moj0iNf3f8bmin6do2DYDj+77NRXWnkmhKRy8swWsatUs3mB5jYPWPUsFg9pyfEiyA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@es-joy/jsdoccomment": "~0.36.1",
|
"@es-joy/jsdoccomment": "~0.36.1",
|
||||||
|
|
@ -2805,9 +2806,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eslint-plugin-security": {
|
"node_modules/eslint-plugin-security": {
|
||||||
"version": "1.7.0",
|
"version": "1.7.1",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.7.1.tgz",
|
||||||
"integrity": "sha512-+ahcCh7M5w7fdFaNccaChBGq8nd3Wa+XvGJS+hY74kvrMhG4EuLbljRIjilOqh1iDMW/EckB1oOWmiVIYlVACQ==",
|
"integrity": "sha512-sMStceig8AFglhhT2LqlU5r+/fn9OwsA72O5bBuQVTssPCdQAOQzL+oMn/ZcpeUY6KcNfLJArgcrsSULNjYYdQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"safe-regex": "^2.1.1"
|
"safe-regex": "^2.1.1"
|
||||||
|
|
@ -3941,9 +3942,9 @@
|
||||||
"integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw=="
|
"integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw=="
|
||||||
},
|
},
|
||||||
"node_modules/http-cache-semantics": {
|
"node_modules/http-cache-semantics": {
|
||||||
"version": "4.1.0",
|
"version": "4.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz",
|
||||||
"integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==",
|
"integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==",
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"node_modules/http-errors": {
|
"node_modules/http-errors": {
|
||||||
|
|
@ -4675,9 +4676,9 @@
|
||||||
"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg=="
|
"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg=="
|
||||||
},
|
},
|
||||||
"node_modules/lint-staged": {
|
"node_modules/lint-staged": {
|
||||||
"version": "13.1.0",
|
"version": "13.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-13.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-13.1.2.tgz",
|
||||||
"integrity": "sha512-pn/sR8IrcF/T0vpWLilih8jmVouMlxqXxKuAojmbiGX5n/gDnz+abdPptlj0vYnbfE0SQNl3CY/HwtM0+yfOVQ==",
|
"integrity": "sha512-K9b4FPbWkpnupvK3WXZLbgu9pchUJ6N7TtVZjbaPsoizkqFUDkUReUL25xdrCljJs7uLUF3tZ7nVPeo/6lp+6w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cli-truncate": "^3.1.0",
|
"cli-truncate": "^3.1.0",
|
||||||
|
|
@ -6576,9 +6577,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/prettier": {
|
"node_modules/prettier": {
|
||||||
"version": "2.8.3",
|
"version": "2.8.4",
|
||||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.3.tgz",
|
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.4.tgz",
|
||||||
"integrity": "sha512-tJ/oJ4amDihPoufT5sM0Z1SKEuKay8LfVAMlbbhnnkvt6BUserZylqo2PN+p9KeljLr0OHa2rXHU1T8reeoTrw==",
|
"integrity": "sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"prettier": "bin-prettier.js"
|
"prettier": "bin-prettier.js"
|
||||||
|
|
|
||||||
20
package.json
20
package.json
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "tileserver-gl",
|
"name": "tileserver-gl",
|
||||||
"version": "4.4.2",
|
"version": "4.4.5",
|
||||||
"description": "Map tile server for JSON GL styles - vector and server side generated raster tiles",
|
"description": "Map tile server for JSON GL styles - vector and server side generated raster tiles",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"bin": "src/main.js",
|
"bin": "src/main.js",
|
||||||
|
|
@ -44,20 +44,20 @@
|
||||||
"tileserver-gl-styles": "2.0.0"
|
"tileserver-gl-styles": "2.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "^17.4.2",
|
"@commitlint/cli": "^17.4.4",
|
||||||
"@commitlint/config-conventional": "^17.4.2",
|
"@commitlint/config-conventional": "^17.4.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.49.0",
|
"@typescript-eslint/eslint-plugin": "^5.52.0",
|
||||||
"@typescript-eslint/parser": "^5.49.0",
|
"@typescript-eslint/parser": "^5.52.0",
|
||||||
"chai": "4.3.7",
|
"chai": "4.3.7",
|
||||||
"eslint": "^8.32.0",
|
"eslint": "^8.34.0",
|
||||||
"eslint-config-prettier": "^8.6.0",
|
"eslint-config-prettier": "^8.6.0",
|
||||||
"eslint-plugin-jsdoc": "^39.6.8",
|
"eslint-plugin-jsdoc": "^40.0.0",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
"eslint-plugin-security": "^1.7.0",
|
"eslint-plugin-security": "^1.7.1",
|
||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"lint-staged": "^13.1.0",
|
"lint-staged": "^13.1.2",
|
||||||
"mocha": "^10.2.0",
|
"mocha": "^10.2.0",
|
||||||
"prettier": "^2.8.3",
|
"prettier": "^2.8.4",
|
||||||
"should": "^13.2.3",
|
"should": "^13.2.3",
|
||||||
"supertest": "^6.3.3",
|
"supertest": "^6.3.3",
|
||||||
"yaml-lint": "^1.7.0"
|
"yaml-lint": "^1.7.0"
|
||||||
|
|
|
||||||
BIN
public/resources/images/layers-2x.png
Normal file
BIN
public/resources/images/layers-2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
BIN
public/resources/images/layers.png
Normal file
BIN
public/resources/images/layers.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 696 B |
|
|
@ -13,10 +13,10 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
.leaflet-container {
|
.leaflet-container {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.leaflet-tile,
|
.leaflet-tile,
|
||||||
.leaflet-marker-icon,
|
.leaflet-marker-icon,
|
||||||
.leaflet-marker-shadow {
|
.leaflet-marker-shadow {
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
-webkit-user-drag: none;
|
-webkit-user-drag: none;
|
||||||
}
|
}
|
||||||
/* Prevents IE11 from highlighting tiles in blue */
|
/* Prevents IE11 from highlighting tiles in blue */
|
||||||
.leaflet-tile::selection {
|
.leaflet-tile::selection {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
|
@ -32,23 +32,23 @@
|
||||||
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
|
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
|
||||||
.leaflet-safari .leaflet-tile {
|
.leaflet-safari .leaflet-tile {
|
||||||
image-rendering: -webkit-optimize-contrast;
|
image-rendering: -webkit-optimize-contrast;
|
||||||
}
|
}
|
||||||
/* hack that prevents hw layers "stretching" when loading new tiles */
|
/* hack that prevents hw layers "stretching" when loading new tiles */
|
||||||
.leaflet-safari .leaflet-tile-container {
|
.leaflet-safari .leaflet-tile-container {
|
||||||
width: 1600px;
|
width: 1600px;
|
||||||
height: 1600px;
|
height: 1600px;
|
||||||
-webkit-transform-origin: 0 0;
|
-webkit-transform-origin: 0 0;
|
||||||
}
|
}
|
||||||
.leaflet-marker-icon,
|
.leaflet-marker-icon,
|
||||||
.leaflet-marker-shadow {
|
.leaflet-marker-shadow {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
|
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
|
||||||
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
|
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
|
||||||
.leaflet-container .leaflet-overlay-pane svg {
|
.leaflet-container .leaflet-overlay-pane svg {
|
||||||
max-width: none !important;
|
max-width: none !important;
|
||||||
max-height: none !important;
|
max-height: none !important;
|
||||||
}
|
}
|
||||||
.leaflet-container .leaflet-marker-pane img,
|
.leaflet-container .leaflet-marker-pane img,
|
||||||
.leaflet-container .leaflet-shadow-pane img,
|
.leaflet-container .leaflet-shadow-pane img,
|
||||||
.leaflet-container .leaflet-tile-pane img,
|
.leaflet-container .leaflet-tile-pane img,
|
||||||
|
|
@ -58,12 +58,12 @@
|
||||||
max-height: none !important;
|
max-height: none !important;
|
||||||
width: auto;
|
width: auto;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-container.leaflet-touch-zoom {
|
.leaflet-container.leaflet-touch-zoom {
|
||||||
-ms-touch-action: pan-x pan-y;
|
-ms-touch-action: pan-x pan-y;
|
||||||
touch-action: pan-x pan-y;
|
touch-action: pan-x pan-y;
|
||||||
}
|
}
|
||||||
.leaflet-container.leaflet-touch-drag {
|
.leaflet-container.leaflet-touch-drag {
|
||||||
-ms-touch-action: pinch-zoom;
|
-ms-touch-action: pinch-zoom;
|
||||||
/* Fallback for FF which doesn't support pinch-zoom */
|
/* Fallback for FF which doesn't support pinch-zoom */
|
||||||
|
|
@ -83,61 +83,44 @@
|
||||||
.leaflet-tile {
|
.leaflet-tile {
|
||||||
filter: inherit;
|
filter: inherit;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
.leaflet-tile-loaded {
|
.leaflet-tile-loaded {
|
||||||
visibility: inherit;
|
visibility: inherit;
|
||||||
}
|
}
|
||||||
.leaflet-zoom-box {
|
.leaflet-zoom-box {
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
-moz-box-sizing: border-box;
|
-moz-box-sizing: border-box;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
z-index: 800;
|
z-index: 800;
|
||||||
}
|
}
|
||||||
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
|
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
|
||||||
.leaflet-overlay-pane svg {
|
.leaflet-overlay-pane svg {
|
||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-pane {
|
.leaflet-pane { z-index: 400; }
|
||||||
z-index: 400;
|
|
||||||
}
|
|
||||||
|
|
||||||
.leaflet-tile-pane {
|
.leaflet-tile-pane { z-index: 200; }
|
||||||
z-index: 200;
|
.leaflet-overlay-pane { z-index: 400; }
|
||||||
}
|
.leaflet-shadow-pane { z-index: 500; }
|
||||||
.leaflet-overlay-pane {
|
.leaflet-marker-pane { z-index: 600; }
|
||||||
z-index: 400;
|
.leaflet-tooltip-pane { z-index: 650; }
|
||||||
}
|
.leaflet-popup-pane { z-index: 700; }
|
||||||
.leaflet-shadow-pane {
|
|
||||||
z-index: 500;
|
|
||||||
}
|
|
||||||
.leaflet-marker-pane {
|
|
||||||
z-index: 600;
|
|
||||||
}
|
|
||||||
.leaflet-tooltip-pane {
|
|
||||||
z-index: 650;
|
|
||||||
}
|
|
||||||
.leaflet-popup-pane {
|
|
||||||
z-index: 700;
|
|
||||||
}
|
|
||||||
|
|
||||||
.leaflet-map-pane canvas {
|
.leaflet-map-pane canvas { z-index: 100; }
|
||||||
z-index: 100;
|
.leaflet-map-pane svg { z-index: 200; }
|
||||||
}
|
|
||||||
.leaflet-map-pane svg {
|
|
||||||
z-index: 200;
|
|
||||||
}
|
|
||||||
|
|
||||||
.leaflet-vml-shape {
|
.leaflet-vml-shape {
|
||||||
width: 1px;
|
width: 1px;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
}
|
}
|
||||||
.lvml {
|
.lvml {
|
||||||
behavior: url(#default#VML);
|
behavior: url(#default#VML);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* control positioning */
|
/* control positioning */
|
||||||
|
|
||||||
|
|
@ -146,44 +129,45 @@
|
||||||
z-index: 800;
|
z-index: 800;
|
||||||
pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
|
pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
}
|
}
|
||||||
.leaflet-top,
|
.leaflet-top,
|
||||||
.leaflet-bottom {
|
.leaflet-bottom {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
.leaflet-top {
|
.leaflet-top {
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
.leaflet-right {
|
.leaflet-right {
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
.leaflet-bottom {
|
.leaflet-bottom {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
.leaflet-left {
|
.leaflet-left {
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
.leaflet-control {
|
.leaflet-control {
|
||||||
float: left;
|
float: left;
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
.leaflet-right .leaflet-control {
|
.leaflet-right .leaflet-control {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
.leaflet-top .leaflet-control {
|
.leaflet-top .leaflet-control {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
.leaflet-bottom .leaflet-control {
|
.leaflet-bottom .leaflet-control {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
.leaflet-left .leaflet-control {
|
.leaflet-left .leaflet-control {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
.leaflet-right .leaflet-control {
|
.leaflet-right .leaflet-control {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* zoom and fade animations */
|
/* zoom and fade animations */
|
||||||
|
|
||||||
|
|
@ -192,53 +176,54 @@
|
||||||
-webkit-transition: opacity 0.2s linear;
|
-webkit-transition: opacity 0.2s linear;
|
||||||
-moz-transition: opacity 0.2s linear;
|
-moz-transition: opacity 0.2s linear;
|
||||||
transition: opacity 0.2s linear;
|
transition: opacity 0.2s linear;
|
||||||
}
|
}
|
||||||
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
|
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
.leaflet-zoom-animated {
|
.leaflet-zoom-animated {
|
||||||
-webkit-transform-origin: 0 0;
|
-webkit-transform-origin: 0 0;
|
||||||
-ms-transform-origin: 0 0;
|
-ms-transform-origin: 0 0;
|
||||||
transform-origin: 0 0;
|
transform-origin: 0 0;
|
||||||
}
|
}
|
||||||
svg.leaflet-zoom-animated {
|
svg.leaflet-zoom-animated {
|
||||||
will-change: transform;
|
will-change: transform;
|
||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-zoom-anim .leaflet-zoom-animated {
|
.leaflet-zoom-anim .leaflet-zoom-animated {
|
||||||
-webkit-transition: -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
|
-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
|
||||||
-moz-transition: -moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
|
-moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
|
||||||
transition: transform 0.25s cubic-bezier(0, 0, 0.25, 1);
|
transition: transform 0.25s cubic-bezier(0,0,0.25,1);
|
||||||
}
|
}
|
||||||
.leaflet-zoom-anim .leaflet-tile,
|
.leaflet-zoom-anim .leaflet-tile,
|
||||||
.leaflet-pan-anim .leaflet-tile {
|
.leaflet-pan-anim .leaflet-tile {
|
||||||
-webkit-transition: none;
|
-webkit-transition: none;
|
||||||
-moz-transition: none;
|
-moz-transition: none;
|
||||||
transition: none;
|
transition: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-zoom-anim .leaflet-zoom-hide {
|
.leaflet-zoom-anim .leaflet-zoom-hide {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* cursors */
|
/* cursors */
|
||||||
|
|
||||||
.leaflet-interactive {
|
.leaflet-interactive {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.leaflet-grab {
|
.leaflet-grab {
|
||||||
cursor: -webkit-grab;
|
cursor: -webkit-grab;
|
||||||
cursor: -moz-grab;
|
cursor: -moz-grab;
|
||||||
cursor: grab;
|
cursor: grab;
|
||||||
}
|
}
|
||||||
.leaflet-crosshair,
|
.leaflet-crosshair,
|
||||||
.leaflet-crosshair .leaflet-interactive {
|
.leaflet-crosshair .leaflet-interactive {
|
||||||
cursor: crosshair;
|
cursor: crosshair;
|
||||||
}
|
}
|
||||||
.leaflet-popup-pane,
|
.leaflet-popup-pane,
|
||||||
.leaflet-control {
|
.leaflet-control {
|
||||||
cursor: auto;
|
cursor: auto;
|
||||||
}
|
}
|
||||||
.leaflet-dragging .leaflet-grab,
|
.leaflet-dragging .leaflet-grab,
|
||||||
.leaflet-dragging .leaflet-grab .leaflet-interactive,
|
.leaflet-dragging .leaflet-grab .leaflet-interactive,
|
||||||
.leaflet-dragging .leaflet-marker-draggable {
|
.leaflet-dragging .leaflet-marker-draggable {
|
||||||
|
|
@ -246,7 +231,7 @@ svg.leaflet-zoom-animated {
|
||||||
cursor: -webkit-grabbing;
|
cursor: -webkit-grabbing;
|
||||||
cursor: -moz-grabbing;
|
cursor: -moz-grabbing;
|
||||||
cursor: grabbing;
|
cursor: grabbing;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* marker & overlays interactivity */
|
/* marker & overlays interactivity */
|
||||||
.leaflet-marker-icon,
|
.leaflet-marker-icon,
|
||||||
|
|
@ -255,7 +240,7 @@ svg.leaflet-zoom-animated {
|
||||||
.leaflet-pane > svg path,
|
.leaflet-pane > svg path,
|
||||||
.leaflet-tile-container {
|
.leaflet-tile-container {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-marker-icon.leaflet-interactive,
|
.leaflet-marker-icon.leaflet-interactive,
|
||||||
.leaflet-image-layer.leaflet-interactive,
|
.leaflet-image-layer.leaflet-interactive,
|
||||||
|
|
@ -263,36 +248,38 @@ svg.leaflet-zoom-animated {
|
||||||
svg.leaflet-image-layer.leaflet-interactive path {
|
svg.leaflet-image-layer.leaflet-interactive path {
|
||||||
pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
|
pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* visual tweaks */
|
/* visual tweaks */
|
||||||
|
|
||||||
.leaflet-container {
|
.leaflet-container {
|
||||||
background: #ddd;
|
background: #ddd;
|
||||||
outline-offset: 1px;
|
outline-offset: 1px;
|
||||||
}
|
}
|
||||||
.leaflet-container a {
|
.leaflet-container a {
|
||||||
color: #0078a8;
|
color: #0078A8;
|
||||||
}
|
}
|
||||||
.leaflet-zoom-box {
|
.leaflet-zoom-box {
|
||||||
border: 2px dotted #38f;
|
border: 2px dotted #38f;
|
||||||
background: rgba(255, 255, 255, 0.5);
|
background: rgba(255,255,255,0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* general typography */
|
/* general typography */
|
||||||
.leaflet-container {
|
.leaflet-container {
|
||||||
font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* general toolbar styles */
|
/* general toolbar styles */
|
||||||
|
|
||||||
.leaflet-bar {
|
.leaflet-bar {
|
||||||
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
|
box-shadow: 0 1px 5px rgba(0,0,0,0.65);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
.leaflet-bar a {
|
.leaflet-bar a {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-bottom: 1px solid #ccc;
|
border-bottom: 1px solid #ccc;
|
||||||
|
|
@ -303,45 +290,45 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
.leaflet-bar a,
|
.leaflet-bar a,
|
||||||
.leaflet-control-layers-toggle {
|
.leaflet-control-layers-toggle {
|
||||||
background-position: 50% 50%;
|
background-position: 50% 50%;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
.leaflet-bar a:hover,
|
.leaflet-bar a:hover,
|
||||||
.leaflet-bar a:focus {
|
.leaflet-bar a:focus {
|
||||||
background-color: #f4f4f4;
|
background-color: #f4f4f4;
|
||||||
}
|
}
|
||||||
.leaflet-bar a:first-child {
|
.leaflet-bar a:first-child {
|
||||||
border-top-left-radius: 4px;
|
border-top-left-radius: 4px;
|
||||||
border-top-right-radius: 4px;
|
border-top-right-radius: 4px;
|
||||||
}
|
}
|
||||||
.leaflet-bar a:last-child {
|
.leaflet-bar a:last-child {
|
||||||
border-bottom-left-radius: 4px;
|
border-bottom-left-radius: 4px;
|
||||||
border-bottom-right-radius: 4px;
|
border-bottom-right-radius: 4px;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
.leaflet-bar a.leaflet-disabled {
|
.leaflet-bar a.leaflet-disabled {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
background-color: #f4f4f4;
|
background-color: #f4f4f4;
|
||||||
color: #bbb;
|
color: #bbb;
|
||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-touch .leaflet-bar a {
|
.leaflet-touch .leaflet-bar a {
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
}
|
}
|
||||||
.leaflet-touch .leaflet-bar a:first-child {
|
.leaflet-touch .leaflet-bar a:first-child {
|
||||||
border-top-left-radius: 2px;
|
border-top-left-radius: 2px;
|
||||||
border-top-right-radius: 2px;
|
border-top-right-radius: 2px;
|
||||||
}
|
}
|
||||||
.leaflet-touch .leaflet-bar a:last-child {
|
.leaflet-touch .leaflet-bar a:last-child {
|
||||||
border-bottom-left-radius: 2px;
|
border-bottom-left-radius: 2px;
|
||||||
border-bottom-right-radius: 2px;
|
border-bottom-right-radius: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* zoom control */
|
/* zoom control */
|
||||||
|
|
||||||
|
|
@ -349,72 +336,72 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
||||||
.leaflet-control-zoom-out {
|
.leaflet-control-zoom-out {
|
||||||
font: bold 18px 'Lucida Console', Monaco, monospace;
|
font: bold 18px 'Lucida Console', Monaco, monospace;
|
||||||
text-indent: 1px;
|
text-indent: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-touch .leaflet-control-zoom-in,
|
.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
|
||||||
.leaflet-touch .leaflet-control-zoom-out {
|
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* layers control */
|
/* layers control */
|
||||||
|
|
||||||
.leaflet-control-layers {
|
.leaflet-control-layers {
|
||||||
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
|
box-shadow: 0 1px 5px rgba(0,0,0,0.4);
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
.leaflet-control-layers-toggle {
|
.leaflet-control-layers-toggle {
|
||||||
background-image: url(images/layers.png);
|
background-image: url(images/layers.png);
|
||||||
width: 36px;
|
width: 36px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
}
|
}
|
||||||
.leaflet-retina .leaflet-control-layers-toggle {
|
.leaflet-retina .leaflet-control-layers-toggle {
|
||||||
background-image: url(images/layers-2x.png);
|
background-image: url(images/layers-2x.png);
|
||||||
background-size: 26px 26px;
|
background-size: 26px 26px;
|
||||||
}
|
}
|
||||||
.leaflet-touch .leaflet-control-layers-toggle {
|
.leaflet-touch .leaflet-control-layers-toggle {
|
||||||
width: 44px;
|
width: 44px;
|
||||||
height: 44px;
|
height: 44px;
|
||||||
}
|
}
|
||||||
.leaflet-control-layers .leaflet-control-layers-list,
|
.leaflet-control-layers .leaflet-control-layers-list,
|
||||||
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
|
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.leaflet-control-layers-expanded .leaflet-control-layers-list {
|
.leaflet-control-layers-expanded .leaflet-control-layers-list {
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.leaflet-control-layers-expanded {
|
.leaflet-control-layers-expanded {
|
||||||
padding: 6px 10px 6px 6px;
|
padding: 6px 10px 6px 6px;
|
||||||
color: #333;
|
color: #333;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
.leaflet-control-layers-scrollbar {
|
.leaflet-control-layers-scrollbar {
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
}
|
}
|
||||||
.leaflet-control-layers-selector {
|
.leaflet-control-layers-selector {
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 1px;
|
top: 1px;
|
||||||
}
|
}
|
||||||
.leaflet-control-layers label {
|
.leaflet-control-layers label {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-size: 1.08333em;
|
font-size: 1.08333em;
|
||||||
}
|
}
|
||||||
.leaflet-control-layers-separator {
|
.leaflet-control-layers-separator {
|
||||||
height: 0;
|
height: 0;
|
||||||
border-top: 1px solid #ddd;
|
border-top: 1px solid #ddd;
|
||||||
margin: 5px -10px 5px -6px;
|
margin: 5px -10px 5px -6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Default icon URLs */
|
/* Default icon URLs */
|
||||||
.leaflet-default-icon-path {
|
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
|
||||||
/* used only in path-guessing heuristic, see L.Icon.Default */
|
|
||||||
background-image: url(images/marker-icon.png);
|
background-image: url(images/marker-icon.png);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* attribution and scale controls */
|
/* attribution and scale controls */
|
||||||
|
|
||||||
|
|
@ -422,61 +409,63 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
background: rgba(255, 255, 255, 0.8);
|
background: rgba(255, 255, 255, 0.8);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
.leaflet-control-attribution,
|
.leaflet-control-attribution,
|
||||||
.leaflet-control-scale-line {
|
.leaflet-control-scale-line {
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
color: #333;
|
color: #333;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
.leaflet-control-attribution a {
|
.leaflet-control-attribution a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.leaflet-control-attribution a:hover,
|
.leaflet-control-attribution a:hover,
|
||||||
.leaflet-control-attribution a:focus {
|
.leaflet-control-attribution a:focus {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
.leaflet-control-attribution svg {
|
.leaflet-attribution-flag {
|
||||||
display: inline !important;
|
display: inline !important;
|
||||||
}
|
vertical-align: baseline !important;
|
||||||
|
width: 1em;
|
||||||
|
height: 0.6669em;
|
||||||
|
}
|
||||||
.leaflet-left .leaflet-control-scale {
|
.leaflet-left .leaflet-control-scale {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
.leaflet-bottom .leaflet-control-scale {
|
.leaflet-bottom .leaflet-control-scale {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
.leaflet-control-scale-line {
|
.leaflet-control-scale-line {
|
||||||
border: 2px solid #777;
|
border: 2px solid #777;
|
||||||
border-top: none;
|
border-top: none;
|
||||||
line-height: 1.1;
|
line-height: 1.1;
|
||||||
padding: 2px 5px 1px;
|
padding: 2px 5px 1px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
|
||||||
-moz-box-sizing: border-box;
|
-moz-box-sizing: border-box;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
background: rgba(255, 255, 255, 0.8);
|
||||||
background: #fff;
|
text-shadow: 1px 1px #fff;
|
||||||
background: rgba(255, 255, 255, 0.5);
|
}
|
||||||
}
|
|
||||||
.leaflet-control-scale-line:not(:first-child) {
|
.leaflet-control-scale-line:not(:first-child) {
|
||||||
border-top: 2px solid #777;
|
border-top: 2px solid #777;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
margin-top: -2px;
|
margin-top: -2px;
|
||||||
}
|
}
|
||||||
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
|
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
|
||||||
border-bottom: 2px solid #777;
|
border-bottom: 2px solid #777;
|
||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-touch .leaflet-control-attribution,
|
.leaflet-touch .leaflet-control-attribution,
|
||||||
.leaflet-touch .leaflet-control-layers,
|
.leaflet-touch .leaflet-control-layers,
|
||||||
.leaflet-touch .leaflet-bar {
|
.leaflet-touch .leaflet-bar {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
.leaflet-touch .leaflet-control-layers,
|
.leaflet-touch .leaflet-control-layers,
|
||||||
.leaflet-touch .leaflet-bar {
|
.leaflet-touch .leaflet-bar {
|
||||||
border: 2px solid rgba(0, 0, 0, 0.2);
|
border: 2px solid rgba(0,0,0,0.2);
|
||||||
background-clip: padding-box;
|
background-clip: padding-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* popup */
|
/* popup */
|
||||||
|
|
||||||
|
|
@ -484,23 +473,23 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
.leaflet-popup-content-wrapper {
|
.leaflet-popup-content-wrapper {
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
}
|
}
|
||||||
.leaflet-popup-content {
|
.leaflet-popup-content {
|
||||||
margin: 13px 24px 13px 20px;
|
margin: 13px 24px 13px 20px;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-size: 1.08333em;
|
font-size: 1.08333em;
|
||||||
min-height: 1px;
|
min-height: 1px;
|
||||||
}
|
}
|
||||||
.leaflet-popup-content p {
|
.leaflet-popup-content p {
|
||||||
margin: 17px 0;
|
margin: 17px 0;
|
||||||
margin: 1.3em 0;
|
margin: 1.3em 0;
|
||||||
}
|
}
|
||||||
.leaflet-popup-tip-container {
|
.leaflet-popup-tip-container {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
|
|
@ -510,7 +499,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
||||||
margin-left: -20px;
|
margin-left: -20px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
.leaflet-popup-tip {
|
.leaflet-popup-tip {
|
||||||
width: 17px;
|
width: 17px;
|
||||||
height: 17px;
|
height: 17px;
|
||||||
|
|
@ -523,13 +512,13 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
||||||
-moz-transform: rotate(45deg);
|
-moz-transform: rotate(45deg);
|
||||||
-ms-transform: rotate(45deg);
|
-ms-transform: rotate(45deg);
|
||||||
transform: rotate(45deg);
|
transform: rotate(45deg);
|
||||||
}
|
}
|
||||||
.leaflet-popup-content-wrapper,
|
.leaflet-popup-content-wrapper,
|
||||||
.leaflet-popup-tip {
|
.leaflet-popup-tip {
|
||||||
background: white;
|
background: white;
|
||||||
color: #333;
|
color: #333;
|
||||||
box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
|
box-shadow: 0 3px 14px rgba(0,0,0,0.4);
|
||||||
}
|
}
|
||||||
.leaflet-container a.leaflet-popup-close-button {
|
.leaflet-container a.leaflet-popup-close-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
@ -542,41 +531,41 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
||||||
color: #757575;
|
color: #757575;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
.leaflet-container a.leaflet-popup-close-button:hover,
|
.leaflet-container a.leaflet-popup-close-button:hover,
|
||||||
.leaflet-container a.leaflet-popup-close-button:focus {
|
.leaflet-container a.leaflet-popup-close-button:focus {
|
||||||
color: #585858;
|
color: #585858;
|
||||||
}
|
}
|
||||||
.leaflet-popup-scrolled {
|
.leaflet-popup-scrolled {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
border-bottom: 1px solid #ddd;
|
}
|
||||||
border-top: 1px solid #ddd;
|
|
||||||
}
|
|
||||||
|
|
||||||
.leaflet-oldie .leaflet-popup-content-wrapper {
|
.leaflet-oldie .leaflet-popup-content-wrapper {
|
||||||
-ms-zoom: 1;
|
-ms-zoom: 1;
|
||||||
}
|
}
|
||||||
.leaflet-oldie .leaflet-popup-tip {
|
.leaflet-oldie .leaflet-popup-tip {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
||||||
-ms-filter: 'progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)';
|
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
|
||||||
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
|
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
|
||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-oldie .leaflet-control-zoom,
|
.leaflet-oldie .leaflet-control-zoom,
|
||||||
.leaflet-oldie .leaflet-control-layers,
|
.leaflet-oldie .leaflet-control-layers,
|
||||||
.leaflet-oldie .leaflet-popup-content-wrapper,
|
.leaflet-oldie .leaflet-popup-content-wrapper,
|
||||||
.leaflet-oldie .leaflet-popup-tip {
|
.leaflet-oldie .leaflet-popup-tip {
|
||||||
border: 1px solid #999;
|
border: 1px solid #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* div icon */
|
/* div icon */
|
||||||
|
|
||||||
.leaflet-div-icon {
|
.leaflet-div-icon {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border: 1px solid #666;
|
border: 1px solid #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Tooltip */
|
/* Tooltip */
|
||||||
/* Base styles for the element that has a tooltip */
|
/* Base styles for the element that has a tooltip */
|
||||||
|
|
@ -593,12 +582,12 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
box-shadow: 0 1px 3px rgba(0,0,0,0.4);
|
||||||
}
|
}
|
||||||
.leaflet-tooltip.leaflet-interactive {
|
.leaflet-tooltip.leaflet-interactive {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
}
|
}
|
||||||
.leaflet-tooltip-top:before,
|
.leaflet-tooltip-top:before,
|
||||||
.leaflet-tooltip-bottom:before,
|
.leaflet-tooltip-bottom:before,
|
||||||
.leaflet-tooltip-left:before,
|
.leaflet-tooltip-left:before,
|
||||||
|
|
@ -607,8 +596,8 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
border: 6px solid transparent;
|
border: 6px solid transparent;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
content: '';
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Directions */
|
/* Directions */
|
||||||
|
|
||||||
|
|
@ -622,18 +611,18 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
||||||
.leaflet-tooltip-top:before {
|
.leaflet-tooltip-top:before {
|
||||||
left: 50%;
|
left: 50%;
|
||||||
margin-left: -6px;
|
margin-left: -6px;
|
||||||
}
|
}
|
||||||
.leaflet-tooltip-top:before {
|
.leaflet-tooltip-top:before {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
margin-bottom: -12px;
|
margin-bottom: -12px;
|
||||||
border-top-color: #fff;
|
border-top-color: #fff;
|
||||||
}
|
}
|
||||||
.leaflet-tooltip-bottom:before {
|
.leaflet-tooltip-bottom:before {
|
||||||
top: 0;
|
top: 0;
|
||||||
margin-top: -12px;
|
margin-top: -12px;
|
||||||
margin-left: -6px;
|
margin-left: -6px;
|
||||||
border-bottom-color: #fff;
|
border-bottom-color: #fff;
|
||||||
}
|
}
|
||||||
.leaflet-tooltip-left {
|
.leaflet-tooltip-left {
|
||||||
margin-left: -6px;
|
margin-left: -6px;
|
||||||
}
|
}
|
||||||
|
|
@ -644,17 +633,17 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
||||||
.leaflet-tooltip-right:before {
|
.leaflet-tooltip-right:before {
|
||||||
top: 50%;
|
top: 50%;
|
||||||
margin-top: -6px;
|
margin-top: -6px;
|
||||||
}
|
}
|
||||||
.leaflet-tooltip-left:before {
|
.leaflet-tooltip-left:before {
|
||||||
right: 0;
|
right: 0;
|
||||||
margin-right: -12px;
|
margin-right: -12px;
|
||||||
border-left-color: #fff;
|
border-left-color: #fff;
|
||||||
}
|
}
|
||||||
.leaflet-tooltip-right:before {
|
.leaflet-tooltip-right:before {
|
||||||
left: 0;
|
left: 0;
|
||||||
margin-left: -12px;
|
margin-left: -12px;
|
||||||
border-right-color: #fff;
|
border-right-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Printing */
|
/* Printing */
|
||||||
|
|
||||||
|
|
@ -662,6 +651,6 @@ svg.leaflet-image-layer.leaflet-interactive path {
|
||||||
/* Prevent printers from removing background-images of controls. */
|
/* Prevent printers from removing background-images of controls. */
|
||||||
.leaflet-control {
|
.leaflet-control {
|
||||||
-webkit-print-color-adjust: exact;
|
-webkit-print-color-adjust: exact;
|
||||||
color-adjust: exact;
|
print-color-adjust: exact;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
28
src/utils.js
28
src/utils.js
|
|
@ -6,19 +6,35 @@ import fs from 'node:fs';
|
||||||
import clone from 'clone';
|
import clone from 'clone';
|
||||||
import glyphCompose from '@mapbox/glyph-pbf-composite';
|
import glyphCompose from '@mapbox/glyph-pbf-composite';
|
||||||
|
|
||||||
export const getPublicUrl = (publicUrl, req) =>
|
/**
|
||||||
publicUrl || `${req.protocol}://${req.headers.host}/`;
|
* Generate new URL object
|
||||||
|
* @params {object} req - Express request
|
||||||
|
* @returns {URL} object
|
||||||
|
**/
|
||||||
|
const getUrlObject = (req) => {
|
||||||
|
const urlObject = new URL(`${req.protocol}://${req.headers.host}/`);
|
||||||
|
// support overriding hostname by sending X-Forwarded-Host http header
|
||||||
|
urlObject.hostname = req.hostname;
|
||||||
|
return urlObject;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const getPublicUrl = (publicUrl, req) => {
|
||||||
|
if (publicUrl) {
|
||||||
|
return publicUrl;
|
||||||
|
}
|
||||||
|
return getUrlObject(req).toString();
|
||||||
|
};
|
||||||
|
|
||||||
export const getTileUrls = (req, domains, path, format, publicUrl, aliases) => {
|
export const getTileUrls = (req, domains, path, format, publicUrl, aliases) => {
|
||||||
|
const urlObject = getUrlObject(req);
|
||||||
if (domains) {
|
if (domains) {
|
||||||
if (domains.constructor === String && domains.length > 0) {
|
if (domains.constructor === String && domains.length > 0) {
|
||||||
domains = domains.split(',');
|
domains = domains.split(',');
|
||||||
}
|
}
|
||||||
const host = req.headers.host;
|
const hostParts = urlObject.host.split('.');
|
||||||
const hostParts = host.split('.');
|
|
||||||
const relativeSubdomainsUsable =
|
const relativeSubdomainsUsable =
|
||||||
hostParts.length > 1 &&
|
hostParts.length > 1 &&
|
||||||
!/^([0-9]{1,3}\.){3}[0-9]{1,3}(\:[0-9]+)?$/.test(host);
|
!/^([0-9]{1,3}\.){3}[0-9]{1,3}(\:[0-9]+)?$/.test(urlObject.host);
|
||||||
const newDomains = [];
|
const newDomains = [];
|
||||||
for (const domain of domains) {
|
for (const domain of domains) {
|
||||||
if (domain.indexOf('*') !== -1) {
|
if (domain.indexOf('*') !== -1) {
|
||||||
|
|
@ -34,7 +50,7 @@ export const getTileUrls = (req, domains, path, format, publicUrl, aliases) => {
|
||||||
domains = newDomains;
|
domains = newDomains;
|
||||||
}
|
}
|
||||||
if (!domains || domains.length == 0) {
|
if (!domains || domains.length == 0) {
|
||||||
domains = [req.headers.host];
|
domains = [urlObject.host];
|
||||||
}
|
}
|
||||||
|
|
||||||
const queryParams = [];
|
const queryParams = [];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue