tileserver-gl-light 5.2.0 → 5.2.2-pre.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +12 -1
- package/public/resources/fonts/OpenSans-Bold.ttf +0 -0
- package/public/resources/fonts/OpenSans-Italic.ttf +0 -0
- package/public/resources/fonts/OpenSans-Regular.ttf +0 -0
- package/public/resources/leaflet-hash.js +162 -0
- package/public/resources/leaflet.css +661 -0
- package/public/resources/leaflet.js +6 -0
- package/public/resources/leaflet.js.map +1 -0
- package/public/resources/mapbox-gl-rtl-text.js +1 -0
- package/public/resources/maplibre-gl-inspect.css +40 -0
- package/public/resources/maplibre-gl-inspect.js +2858 -0
- package/public/resources/maplibre-gl-inspect.js.map +1 -0
- package/public/resources/maplibre-gl.css +1 -0
- package/public/resources/maplibre-gl.js +59 -0
- package/public/resources/maplibre-gl.js.map +1 -0
- package/.dockerignore +0 -8
- package/.eslintignore +0 -1
- package/.eslintrc.cjs +0 -36
- package/.gitattributes +0 -11
- package/.github/dependabot.yml +0 -19
- package/.github/workflows/automerger.yml +0 -17
- package/.github/workflows/ci.yml +0 -56
- package/.github/workflows/codeql.yml +0 -37
- package/.github/workflows/ct.yml +0 -86
- package/.github/workflows/pipeline.yml +0 -43
- package/.github/workflows/release.yml +0 -175
- package/.hadolint.yml +0 -3
- package/.nvmrc +0 -1
- package/.prettierignore +0 -1
- package/.readthedocs.yaml +0 -18
- package/Dockerfile +0 -84
- package/Dockerfile_build +0 -38
- package/Dockerfile_test +0 -62
- package/ISSUE_TEMPLATE.md +0 -21
- package/PUBLISHING.md +0 -112
- package/changelog_for_version.md +0 -9
- package/commitlint.config.cjs +0 -3
- package/docker-entrypoint.sh +0 -7
- package/lint-staged.config.cjs +0 -4
- package/prettier.config.cjs +0 -13
- package/publish.js +0 -68
package/Dockerfile_test
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# Run tests inside docker without requiring full installation of dependencies on local machine
|
|
2
|
-
# Simply run "docker build -f Dockerfile_test ."
|
|
3
|
-
# WARNING: sometimes it fails with a core dumped exception
|
|
4
|
-
|
|
5
|
-
FROM ubuntu:jammy
|
|
6
|
-
|
|
7
|
-
ENV NODE_ENV="development"
|
|
8
|
-
|
|
9
|
-
RUN set -ex; \
|
|
10
|
-
export DEBIAN_FRONTEND=noninteractive; \
|
|
11
|
-
apt-get -qq update; \
|
|
12
|
-
apt-get -y --no-install-recommends install \
|
|
13
|
-
unzip \
|
|
14
|
-
build-essential \
|
|
15
|
-
ca-certificates \
|
|
16
|
-
curl \
|
|
17
|
-
gnupg \
|
|
18
|
-
pkg-config \
|
|
19
|
-
xvfb \
|
|
20
|
-
libglfw3-dev \
|
|
21
|
-
libuv1-dev \
|
|
22
|
-
libjpeg-turbo8 \
|
|
23
|
-
libicu70 \
|
|
24
|
-
libcairo2-dev \
|
|
25
|
-
libpango1.0-dev \
|
|
26
|
-
libjpeg-dev \
|
|
27
|
-
libgif-dev \
|
|
28
|
-
librsvg2-dev \
|
|
29
|
-
gir1.2-rsvg-2.0 \
|
|
30
|
-
librsvg2-2 \
|
|
31
|
-
librsvg2-common \
|
|
32
|
-
libcurl4-openssl-dev \
|
|
33
|
-
libpixman-1-dev \
|
|
34
|
-
libpixman-1-0; \
|
|
35
|
-
apt-get -y --purge autoremove; \
|
|
36
|
-
apt-get clean; \
|
|
37
|
-
rm -rf /var/lib/apt/lists/*;
|
|
38
|
-
|
|
39
|
-
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
40
|
-
|
|
41
|
-
RUN mkdir -p /etc/apt/keyrings; \
|
|
42
|
-
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg; \
|
|
43
|
-
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list; \
|
|
44
|
-
apt-get -qq update; \
|
|
45
|
-
apt-get install -y nodejs; \
|
|
46
|
-
npm i -g npm@latest; \
|
|
47
|
-
apt-get -y remove gnupg; \
|
|
48
|
-
apt-get -y --purge autoremove; \
|
|
49
|
-
apt-get clean; \
|
|
50
|
-
rm -rf /var/lib/apt/lists/*;
|
|
51
|
-
|
|
52
|
-
RUN mkdir -p /usr/src/app
|
|
53
|
-
WORKDIR /usr/src/app
|
|
54
|
-
|
|
55
|
-
RUN curl -L -o test_data.zip https://github.com/maptiler/tileserver-gl/releases/download/v1.3.0/test_data.zip; \
|
|
56
|
-
unzip -q test_data.zip -d test_data
|
|
57
|
-
|
|
58
|
-
COPY package.json .
|
|
59
|
-
RUN npm install
|
|
60
|
-
COPY / .
|
|
61
|
-
|
|
62
|
-
RUN xvfb-run --server-args="-screen 0 1024x768x24" npm test
|
package/ISSUE_TEMPLATE.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
It is great you want to help us making TileServer GL project better!
|
|
2
|
-
|
|
3
|
-
This is the right place only for a software bug report or a new software feature request.
|
|
4
|
-
|
|
5
|
-
NOTE: Questions about OpenMapTiles data, OpenMapTiles Server, TileHosting and other software/products do not belong here (and will not be answered)!
|
|
6
|
-
|
|
7
|
-
The usage and installation questions belongs to https://stackoverflow.com/questions/tagged/openmaptiles
|
|
8
|
-
A guaranteed support and consulting from the core developers via https://openmaptiles.com/support/
|
|
9
|
-
|
|
10
|
-
Please search this GitHub repo for similar requests before posting (check also closed tickets).
|
|
11
|
-
|
|
12
|
-
When reporting a problem you have with the TileServer GL software please provide:
|
|
13
|
-
|
|
14
|
-
- Clear description of the problem: What steps will lead to reproducing the error on our computer? What is exactly wrong?
|
|
15
|
-
- Version of the TileServer GL software you have used
|
|
16
|
-
- Version and name of the operating system you use or other details of your setup
|
|
17
|
-
- Information about your used config / styles / vector tiles
|
|
18
|
-
- URL / link to the specific location in a live map demo where a bug is visible is always great
|
|
19
|
-
- Screenshot of the problem are cool! Drag&drop an image to the report here...
|
|
20
|
-
|
|
21
|
-
We love pull requests! If you are able to code, please send us your fix or code modification via GitHub... Thanks!
|
package/PUBLISHING.md
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
# Publishing a New Version
|
|
2
|
-
|
|
3
|
-
This document outlines the process for publishing new versions of this project. We use a GitHub workflow for automated releases, but also provide manual steps for specific situations.
|
|
4
|
-
|
|
5
|
-
## Automated Publishing via GitHub Workflow (Recommended)
|
|
6
|
-
|
|
7
|
-
This is the preferred method for publishing new versions. It automates the entire process, including version bumping, tagging, building, and publishing.
|
|
8
|
-
|
|
9
|
-
1. **Prepare the Release:**
|
|
10
|
-
|
|
11
|
-
* **Choose the Version Increment:** Determine the appropriate semantic versioning increment (prerelease, prepatch, preminor, premajor, patch, minor, major).
|
|
12
|
-
|
|
13
|
-
* **Update `package.json`:** Use the `npm version` command to bump the version number. This command also supports creating pre-release versions using the `--preid pre` flag.
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
# Example: Increment to a new patch version
|
|
17
|
-
npm version patch --no-git-tag-version
|
|
18
|
-
|
|
19
|
-
# Example: Increment to a new minor version
|
|
20
|
-
npm version minor --no-git-tag-version
|
|
21
|
-
|
|
22
|
-
# Example: Increment to a new major version
|
|
23
|
-
npm version major --no-git-tag-version
|
|
24
|
-
|
|
25
|
-
# Example: Create a pre-release (e.g., -pre.0) version
|
|
26
|
-
npm version prepatch --preid pre --no-git-tag-version
|
|
27
|
-
# OR
|
|
28
|
-
npm version preminor --preid pre --no-git-tag-version
|
|
29
|
-
# OR
|
|
30
|
-
npm version premajor --preid pre --no-git-tag-version
|
|
31
|
-
|
|
32
|
-
# Example: Increment an existing pre-release version (e.g., -pre.0 to -pre.1)
|
|
33
|
-
npm version prerelease --preid pre --no-git-tag-version
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
* `--no-git-tag-version`: This prevents `npm version` from automatically creating a git tag, as the GitHub workflow will handle this later.
|
|
37
|
-
* `--preid pre`: Specifies that "pre" is the pre-release identifier.
|
|
38
|
-
|
|
39
|
-
* **Update the Changelog (`CHANGELOG.md`):** Add a new section for the release. The heading *must* exactly match the format `## <VERSION>`, where `<VERSION>` is the full version number from `package.json`. Describe the changes included in the release.
|
|
40
|
-
|
|
41
|
-
```markdown
|
|
42
|
-
## 1.2.3
|
|
43
|
-
* Added new feature X.
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
2. **Commit and Push:** Commit the changes to `package.json`, `package-lock.json` and `CHANGELOG.md` to a the `master` branch. Create a pull request (PR) for review. If you are an administrator, you may push directly, but a PR is generally recommended for code review.
|
|
47
|
-
|
|
48
|
-
3. **Run the GitHub Workflow:** Once the PR is merged (or changes pushed directly), trigger the "Build, Test, Release" GitHub workflow. This workflow is responsible for:
|
|
49
|
-
|
|
50
|
-
* Building the project.
|
|
51
|
-
* Running tests.
|
|
52
|
-
* Creating an NPM package.
|
|
53
|
-
* Building and pushing Docker images.
|
|
54
|
-
* Creating a GitHub Release.
|
|
55
|
-
* Creating a Git tag for the release.
|
|
56
|
-
|
|
57
|
-
## Manual Publishing (For Special Cases)
|
|
58
|
-
|
|
59
|
-
Use the following steps *only* when the automated workflow is not suitable (e.g., for debugging, specific environment needs).
|
|
60
|
-
|
|
61
|
-
1. **Update Version in `package.json`:** Modify the `version` field in `package.json` to the desired version number.
|
|
62
|
-
|
|
63
|
-
2. **Create and Push Git Tag:**
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
git tag vX.X.X # Replace X.X.X with the version number
|
|
67
|
-
git push origin --tags
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
3. **NPM Publish Options (Choose ONE):**
|
|
71
|
-
|
|
72
|
-
* **Option A: Publish only the full `tileserver-gl` version:**
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
npm publish --access public
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
* **Option B: Build and Publish both `tileserver-gl` and `tileserver-gl-light` using `publish.js`:**
|
|
79
|
-
|
|
80
|
-
```bash
|
|
81
|
-
# This script builds the light version and publishes both tileserver-gl and tileserver-gl-light to NPM.
|
|
82
|
-
node publish.js
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
* **Option C: Build only the `tileserver-gl-light` version (no publish):**
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
# This script ONLY builds the light version (e.g., for local testing or Docker image creation) without publishing.
|
|
89
|
-
node publish.js --no-publish
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
4. **Build and Push Docker Images:**
|
|
93
|
-
|
|
94
|
-
```bash
|
|
95
|
-
# Build the main image
|
|
96
|
-
docker buildx build --platform linux/amd64 -t maptiler/tileserver-gl:latest -t maptiler/tileserver-gl:X.X.X . # Replace X.X.X
|
|
97
|
-
docker push maptiler/tileserver-gl --all-tags
|
|
98
|
-
|
|
99
|
-
# Build the light image
|
|
100
|
-
cd light
|
|
101
|
-
docker buildx build --platform linux/amd64 -t maptiler/tileserver-gl-light:latest -t maptiler/tileserver-gl-light:X.X.X . # Replace X.X.X
|
|
102
|
-
docker push maptiler/tileserver-gl-light --all-tags
|
|
103
|
-
cd .. # Return to the project root
|
|
104
|
-
```
|
|
105
|
-
* Make sure you are logged into the docker registry before pushing. `docker login`
|
|
106
|
-
|
|
107
|
-
**Important Considerations for Manual Publishing:**
|
|
108
|
-
|
|
109
|
-
* **Consistency:** Ensure the version number in `package.json`, the Git tag, and the Docker image tags are identical.
|
|
110
|
-
* **Credentials:** Verify that you have the necessary permissions to push Docker images and publish to NPM.
|
|
111
|
-
* **Cleanliness:** Before building Docker images, ensure your working directory is clean to avoid including unwanted files in the image.
|
|
112
|
-
* **Error Handling:** Manually publishing is more prone to errors. Double-check each step to avoid issues.
|
package/changelog_for_version.md
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
* Use npm packages for public/resources (https://github.com/maptiler/tileserver-gl/pull/1427) by @okimiko
|
|
2
|
-
* use ttf files of googlefonts/opensans (https://github.com/maptiler/tileserver-gl/pull/1447) by @okimiko
|
|
3
|
-
* Limit Elevation Lat/Long Output Length (https://github.com/maptiler/tileserver-gl/pull/1457) by @okimiko
|
|
4
|
-
* Fetch style from url (https://github.com/maptiler/tileserver-gl/pull/1462) by @YoelRidgway
|
|
5
|
-
* fix: memory leak on SIGHUP (https://github.com/maptiler/tileserver-gl/pull/1455) by @okimiko
|
|
6
|
-
* fix: resolves Unimplemented type: 3 error for geojson format (https://github.com/maptiler/tileserver-gl/pull/1465) by @rjdjohnston
|
|
7
|
-
* fix: Test light version in ct workflow - fix sqlite build in light (https://github.com/maptiler/tileserver-gl/pull/1477) by @acalcutt
|
|
8
|
-
* fix: light version docker entrypoint permissions (https://github.com/maptiler/tileserver-gl/pull/1478) by @acalcutt
|
|
9
|
-
|
package/commitlint.config.cjs
DELETED
package/docker-entrypoint.sh
DELETED
package/lint-staged.config.cjs
DELETED
package/prettier.config.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
$schema: 'http://json.schemastore.org/prettierrc',
|
|
3
|
-
semi: true,
|
|
4
|
-
arrowParens: 'always',
|
|
5
|
-
singleQuote: true,
|
|
6
|
-
trailingComma: 'all',
|
|
7
|
-
bracketSpacing: true,
|
|
8
|
-
htmlWhitespaceSensitivity: 'css',
|
|
9
|
-
insertPragma: false,
|
|
10
|
-
tabWidth: 2,
|
|
11
|
-
useTabs: false,
|
|
12
|
-
endOfLine: 'lf',
|
|
13
|
-
};
|
package/publish.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
'use strict';
|
|
4
|
-
|
|
5
|
-
/*
|
|
6
|
-
* This script creates `tileserver-gl-light` version
|
|
7
|
-
* (without native dependencies) and publishes
|
|
8
|
-
* `tileserver-gl` and `tileserver-gl-light` to npm.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/* CREATE tileserver-gl-light */
|
|
12
|
-
|
|
13
|
-
// SYNC THE `light` FOLDER
|
|
14
|
-
|
|
15
|
-
import child_process from 'child_process';
|
|
16
|
-
child_process.execSync(
|
|
17
|
-
'rsync -av --exclude="light" --exclude=".git" --exclude="node_modules" --delete . light',
|
|
18
|
-
{
|
|
19
|
-
stdio: 'inherit',
|
|
20
|
-
},
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
// PATCH `package.json`
|
|
24
|
-
import fs from 'fs';
|
|
25
|
-
import path from 'path';
|
|
26
|
-
import { fileURLToPath } from 'url';
|
|
27
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
28
|
-
const __dirname = path.dirname(__filename);
|
|
29
|
-
const packageJson = JSON.parse(
|
|
30
|
-
fs.readFileSync(__dirname + '/package.json', 'utf8'),
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
packageJson.name += '-light';
|
|
34
|
-
packageJson.description =
|
|
35
|
-
'Map tile server for JSON GL styles - serving vector tiles';
|
|
36
|
-
delete packageJson.dependencies['canvas'];
|
|
37
|
-
delete packageJson.dependencies['@maplibre/maplibre-gl-native'];
|
|
38
|
-
delete packageJson.dependencies['sharp'];
|
|
39
|
-
|
|
40
|
-
delete packageJson.scripts['prepare'];
|
|
41
|
-
|
|
42
|
-
delete packageJson.optionalDependencies;
|
|
43
|
-
delete packageJson.devDependencies;
|
|
44
|
-
|
|
45
|
-
packageJson.engines.node = '>= 14.15.0';
|
|
46
|
-
|
|
47
|
-
const str = JSON.stringify(packageJson, undefined, 2);
|
|
48
|
-
fs.writeFileSync('light/package.json', str);
|
|
49
|
-
fs.renameSync('light/README_light.md', 'light/README.md');
|
|
50
|
-
fs.renameSync('light/Dockerfile_light', 'light/Dockerfile');
|
|
51
|
-
fs.renameSync('light/docker-entrypoint_light.sh', 'light/docker-entrypoint.sh');
|
|
52
|
-
|
|
53
|
-
// for Build tileserver-gl-light docker image, don't publish
|
|
54
|
-
if (process.argv.length > 2 && process.argv[2] == '--no-publish') {
|
|
55
|
-
process.exit(0);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/* PUBLISH */
|
|
59
|
-
|
|
60
|
-
// tileserver-gl
|
|
61
|
-
child_process.execSync('npm publish . --access public', {
|
|
62
|
-
stdio: 'inherit',
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
// tileserver-gl-light
|
|
66
|
-
child_process.execSync('npm publish ./light --access public', {
|
|
67
|
-
stdio: 'inherit',
|
|
68
|
-
});
|