Commit graph

1227 commits

Author SHA1 Message Date
dependabot[bot]
3292d6e82b
fix(deps): bump axios from 1.7.9 to 1.8.2
Bumps [axios](https://github.com/axios/axios) from 1.7.9 to 1.8.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.7.9...v1.8.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-16 17:44:49 +00:00
Andrew Calcutt
3881219fee
fix ci - add canvas build dependencies to ci workflow (#1474)
* add canvas depends
2025-03-16 13:43:51 -04:00
Yoel Ridgway-Lopez
3110cab18f
feat: Fetch style from url (#1462)
* made the serve_style.add and addStyle functions async and return promises

* added fetching to addStyle() function and parsed it into serve_style and serve_rendered

* fixed linting issues

* removed async from synchronous functions

* added fetch example to docs
2025-02-28 23:45:51 -05:00
Andrew Calcutt
f2b48acb61
v5.2.0-pre.0 (#1461)
* Update .gitignore

* v5.2.0-pre.0

* Update CHANGELOG.md
2025-02-08 22:50:26 -05:00
Miko
6e0006ffcf
limit elevation lat/long decimal places to 7 (#1457) 2025-02-08 22:32:51 -05:00
Miko
6ef12fba6c
Use npm packages for public/resources (#1427)
* refactor dockerfile

* add build dockerfile

* use node_module files instead of local mirrors

* add copyfiles to global scope

* add leaflet-hash

* re-add pipefail

* refactor dockerfile

* add build dockerfile

* use node_module files instead of local mirrors

* add copyfiles to global scope

* add leaflet-hash

* re-add pipefail

* set automerge target to minor

* fix invalid node version

* refactor light dockerfile

---------

Co-authored-by: Miko <miko@local.host>
Co-authored-by: Miko <miko@none>
Co-authored-by: Andrew Calcutt <acalcutt@techidiots.net>
2025-02-08 22:09:25 -05:00
Miko
3d8bf78974
fix memory leak on SIGHUP (#1455) 2025-02-06 15:55:09 -05:00
Miko
1d60dd6afc
use ttf files of googlefonts/opensans (#1447)
- fixes browser console warning on the index page regarding too large kerning table included in the original font

Co-authored-by: Miko <miko@none>
2025-01-26 15:31:34 -05:00
Andrew Calcutt
7662cb84ce
v5.1.3 (#1453) 2025-01-26 12:49:53 -05:00
Miko
467203e125
fix sighup (#1452) 2025-01-25 14:14:57 -05:00
acalcutt
9bb270b6c5 v5.1.2 2025-01-17 18:58:26 -05:00
Miko
f02c63c94c
Fix broken light (invalid use of heavy dependencies) (#1449)
* fix broken light (invalid use of heavy dependencies)
- move elevation calculation to serve_rendered and stub in serve_light due to use of canvas and sharp
- elevation api is not available for light

* add elevatppy lint:js:fix

* remove not working isLight function

* apply lint:js:fix

* add isLight to data.tmpl

* add note of not available elevation api in light version

* hide elevation link in light version

* cleanup terrain and elevation template flags

---------

Co-authored-by: Miko <miko@none>
2025-01-17 18:51:35 -05:00
Andrew Calcutt
b0a2cefb0e
Update v5.1.1 CHANGELOG.md 2025-01-11 00:39:31 -05:00
Andrew Calcutt
f7be63a35c
v5.1.1 (#1444) 2025-01-11 00:18:20 -05:00
Andrew Calcutt
407c2eb209
v5.1.1-pre.0 2025-01-10 23:46:11 -05:00
Andrew Calcutt
4d11796967
Fix wrong node version in docker final image. (#1442)
* fix wrong node version in final docker image

* fix outdated Docker_test file

* v5.1.1-pre.0
2025-01-10 23:44:44 -05:00
Andrew Calcutt
68ce971133
v5.1.0 (#1441) 2025-01-10 21:11:58 -05:00
Andrew Calcutt
5e1e87ac83
Update release.yml 2025-01-10 21:08:10 -05:00
Andrew Calcutt
5469ac313e
Test 5.1.0-pre.1 (#1440) 2025-01-10 20:51:00 -05:00
Andrew Calcutt
7e53bb8ab4
Fix workflow wrong output for tag (#1439) 2025-01-10 20:45:17 -05:00
Andrew Calcutt
5ce5fa5283
Update recommended node to v22 + Update docker images to use node 22 (#1438)
* Update recommended node

* update dockerfile to node 22

* Update CHANGELOG.md
2025-01-10 20:19:11 -05:00
Andrew Calcutt
97be9db6b7
Upgrade Express to v5 +Canvas v3 + code cleanup (#1429)
* first attempt to upgrade express to v5

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* try to fix https://github.com/maptiler/tileserver-gl/issues/1411

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* cleanup server.js

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* cleanup serve_font.js

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* cleanup sever_rendered.js

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* cleanup server_data.js

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* cleanup serve_style

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* Update serve_style.js

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* Move UV_THREADPOOL_SIZE  to main thred

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* cleanup utils.js

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* Use common app.get for images and static images

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* add allowedTileSizes and option

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* cleanup error responses

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* fix /style/id.json with next('route')

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* improve sprite path

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* add parseFloadts around zxy

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* simplify server_data

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* move tile fetch and add fix verbose logging

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* add Handling request to verbose logging

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* first attempt to upgrade express to v5

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* try to fix https://github.com/maptiler/tileserver-gl/issues/1411

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* cleanup server.js

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* cleanup serve_font.js

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* cleanup sever_rendered.js

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* cleanup server_data.js

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* cleanup serve_style

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* Update serve_style.js

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* Move UV_THREADPOOL_SIZE  to main thred

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* cleanup utils.js

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* Use common app.get for images and static images

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* add allowedTileSizes and option

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* cleanup error responses

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* fix /style/id.json with next('route')

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* improve sprite path

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* add parseFloadts around zxy

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* simplify server_data

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* move tile fetch and add fix verbose logging

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* add Handling request to verbose logging

Co-Authored-By: Andrew Calcutt <acalcutt@techidiots.net>

* merge elevation changes

* lint format

* add verbose logging, improve headers

* try to fix codeql

Information exposure through a stack trace

* test

* all tests passing

* cleanup unneeded changes

* cleanup

* try to fix codeql error

* font fixes

* fix tile size issue

* try to improve scale + codeql

* codeql for sprite logging

* codeql serve fonts

* codeql fixes

* fix failing test with multiple fonts

* Update serve_font.js

* codeql

* codeql

* codeql

* Update utils.js

* codeql

* codeql

* codeql

* codeql

* codeql sanitize

* Update serve_font.js

* Update serve_font.js

* remove useless assignment

* move isGzipped

* add if-modified-since and cache-control

* use consistent cache control

* reformat

* codeql

* codeql

* codeql

* codeql

* codeql

* codeql

* codeql

* Update serve_font.js

* Update serve_font.js

* Update serve_font.js

* Update serve_style.js

* Update serve_style.js

* Update serve_style.js

* Revert "Update serve_style.js"

This reverts commit e0574b1887.

* Revert "Update serve_style.js"

This reverts commit b1e1d72f25.

* Revert "Update serve_style.js"

This reverts commit 0f3629c752.

* Add readFile function

* use readFile, add path.normalize

* Update serve_rendered.js

* simplify input checking

* Update utils.js

* codeql

* Revert "codeql"

This reverts commit e18874fda0.

* Revert "Update utils.js"

This reverts commit 5de617dfe2.

* Revert "simplify input checking"

This reverts commit 62a3212629.

* move allowed functions to utils.js

* use xy[0],xy[1],

* uprade canvas per https://github.com/maptiler/tileserver-gl/issues/1433

* make font regex less restrictive

* fix regex error

* Add version and changelog

* Update CHANGELOG.md

* Update CHANGELOG.md
2025-01-10 19:34:17 -05:00
Andrew Calcutt
3abbb39633
Update PUBLISHING.md 2025-01-10 19:11:31 -05:00
Andrew Calcutt
52549e5c3c
Fix workflow missing semver in first job (#1437)
* remove bad env use

* try to fix outputs level

* move release type get to where semver is installed
2025-01-10 19:08:42 -05:00
Andrew Calcutt
77b741986f
try to Fix workflow (#1436)
* remove bad env use

* try to fix outputs level
2025-01-10 18:56:23 -05:00
Andrew Calcutt
70f954b308
remove bad env use (#1435) 2025-01-10 18:53:06 -05:00
Andrew Calcutt
c30d799811
add support for pre-release in release workflow (#1434)
* add support for pre-release in release workflow

* Update release.yml

* add release check

* workflow cleanup

* cleanup

* Create CHANGELOG.md

* Update PUBLISHING.md
2025-01-10 18:46:19 -05:00
Miko
4a783446cd
Fix Elevation API and extend Elevation Preview (#1432)
* add elevation info in preview

* fix various issues
- pmtile coordinates
- pixel calculation
- swapped lat / long
- allow tileSize to be configured
- allow any zoom for coordinates

* apply linter changes

* remove not used entry

* drop baseUrl in favor of public_url

* fix map not using full body

* remove bounds check for coordinates

---------

Co-authored-by: Miko <miko@none>
2025-01-10 10:51:17 -05:00
daniel-milemarker
9d222c1dec
feat: add support for x-forward-port header (#1423)
* feat: add support for x-forward-port header

* fix: remove unnecessary port additions

* chore: remove unused dependency
2025-01-02 14:29:53 -05:00
Miko
a2bc9f0cce
Feature: Terrain Preview and simple Elevation Query (#1425)
* add terrain preview and elevation link

* add elevation api for terrain tiles

* add documentation for elevation api

* applied lint:js:fix

* Add `test-docker` for test execution in docker build environment

* Fix too greedy router expression

* Add pmtile support

Co-authored-by: Andrew Calcutt <acalcutt@techidiots.net>

* add encoding param to pmtile section

* add map controls

Co-authored-by: Andrew Calcutt <acalcutt@techidiots.net>

* remove not needed check

* fix possible float usage in thumbnail url

* update readme for encoding option

* add better link name

---------

Co-authored-by: Miko <miko@none>
Co-authored-by: Andrew Calcutt <acalcutt@techidiots.net>
2025-01-02 14:03:03 -05:00
dependabot[bot]
93f72c1fe7
fix(deps): bump cross-spawn (#1415)
Bumps  and [cross-spawn](https://github.com/moxystudio/node-cross-spawn). These dependencies needed to be updated together.

Updates `cross-spawn` from 6.0.5 to 7.0.6
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.5...v7.0.6)

Updates `cross-spawn` from 7.0.3 to 7.0.6
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.5...v7.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-20 07:50:12 +00:00
Samuel
760653901e
feat: add progressive rendering option for static jpeg images (#1397) 2024-10-10 09:56:56 -04:00
dependabot[bot]
6f28feb947
chore(deps-dev): bump @commitlint/config-conventional (#1388)
Bumps [@commitlint/config-conventional](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-conventional) from 19.4.1 to 19.5.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/config-conventional/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v19.5.0/@commitlint/config-conventional)

---
updated-dependencies:
- dependency-name: "@commitlint/config-conventional"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-11 22:36:02 +00:00
dependabot[bot]
88ded67053
chore(deps-dev): bump @commitlint/cli from 19.4.1 to 19.5.0 (#1389)
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 19.4.1 to 19.5.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v19.5.0/@commitlint/cli)

---
updated-dependencies:
- dependency-name: "@commitlint/cli"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-11 22:28:11 +00:00
dependabot[bot]
138c9dcfec
fix(deps): bump proj4 from 2.12.0 to 2.12.1 (#1384)
Bumps [proj4](https://github.com/proj4js/proj4js) from 2.12.0 to 2.12.1.
- [Release notes](https://github.com/proj4js/proj4js/releases)
- [Changelog](https://github.com/proj4js/proj4js/blob/master/changelog.md)
- [Commits](https://github.com/proj4js/proj4js/compare/2.12.0...v2.12.1)

---
updated-dependencies:
- dependency-name: proj4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-06 23:05:45 +00:00
dependabot[bot]
6cda7a0b38
chore(deps-dev): bump lint-staged from 15.2.9 to 15.2.10 (#1382)
Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 15.2.9 to 15.2.10.
- [Release notes](https://github.com/lint-staged/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/master/CHANGELOG.md)
- [Commits](https://github.com/lint-staged/lint-staged/compare/v15.2.9...v15.2.10)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-02 23:08:51 +00:00
Andrew Calcutt
88c61f14b4
Update Maplibre-Native to v6.0.0 release (#1376)
* Update Maplibre-Native to v6.0.0 release

* Update c++ redistributable path

* update macos dependencies which are needed for canvas

* Update c++ redistributable path

* Revert "Update c++ redistributable path"

This reverts commit 7dafebc577.

Put back permalink url
2024-09-02 19:01:59 -04:00
dependabot[bot]
6a34babc07
fix(deps): bump @maplibre/maplibre-gl-native from 5.4.1 to 6.0.0 (#1381)
Bumps [@maplibre/maplibre-gl-native](https://github.com/maplibre/maplibre-native) from 5.4.1 to 6.0.0.
- [Release notes](https://github.com/maplibre/maplibre-native/releases)
- [Changelog](https://github.com/maplibre/maplibre-native/blob/main/CHANGELOG.md)
- [Commits](https://github.com/maplibre/maplibre-native/compare/node-v5.4.1...ios-v6.0.0)

---
updated-dependencies:
- dependency-name: "@maplibre/maplibre-gl-native"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-02 23:01:22 +00:00
dependabot[bot]
474103bd55
fix(deps): bump axios from 1.7.6 to 1.7.7 (#1380)
Bumps [axios](https://github.com/axios/axios) from 1.7.6 to 1.7.7.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.7.6...v1.7.7)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-02 22:53:49 +00:00
Andrew Calcutt
5a91a2927c
Remove husky (#1378) 2024-09-02 17:38:23 -04:00
Andrew Calcutt
d272e17b55
Fix: Use blank index to make sure 'public/files/' folder exists in npm package (#1377)
* Fix: Use blank index to make sure folder exists in npm package

* update blank index.html

* bump version
2024-09-02 00:10:38 -04:00
Andrew Calcutt
ed2a815110
Fix: Revert unzip path change 2024-09-01 15:17:03 -04:00
Andrew Calcutt
098b18e888
Fix: Revert test chdir from https://github.com/maptiler/tileserver-gl/pull/1326 2024-09-01 15:12:29 -04:00
acalcutt
574374c53d Docs: update file path example to be consistent 2024-09-01 14:47:21 -04:00
acalcutt
3745af969c Docs: use actual marker filename 2024-09-01 14:46:20 -04:00
acalcutt
5757859952 v4.13.2 2024-09-01 14:38:33 -04:00
acalcutt
5eb98f0bee Fix: Remove unneeded paths from main.js 2024-09-01 14:36:30 -04:00
acalcutt
18b4b0d6fc Fix: specified path for icons does not exist
Signed-off-by: acalcutt <acalcutt@techidiots.net>
2024-09-01 11:05:35 -04:00
acalcutt
5bfe8c7d3a Fix: specified path for icons does not exist 2024-09-01 10:29:02 -04:00
Miko
44cf365d65
Allow handling of local GeoJSON files #1324 (#1326)
* handle local geojson files in styles and rendered tiles
- use 'file://' as indicator for local files
- add  directory as default directory
- serve local files at
- add documentation for static file serving
- add some minor fixes (icon directory, directory checking, decodeURIComponent, extend error message)

* Update .gitignore

---------

Co-authored-by: Miko <miko@home-laptop.fritz.box>
Co-authored-by: Andrew Calcutt <acalcutt@techidiots.net>
2024-08-31 22:56:36 -04:00