diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 723cd2fda..6c149c520 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: jobs: release-notes: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: github.repository_owner == 'visgl' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4961d28c6..535715695 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ on: jobs: test-node: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index b88a0211d..b4bd4c01c 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -7,7 +7,7 @@ on: jobs: check_branch: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 outputs: should_deploy: ${{ endsWith(github.ref, steps.get_version.outputs.latest) }} @@ -21,7 +21,7 @@ jobs: echo "latest=${LATEST}-release" >> "$GITHUB_OUTPUT" deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: check_branch permissions: diff --git a/src/types/lib.ts b/src/types/lib.ts index ef2d6aa5d..ac20ab405 100644 --- a/src/types/lib.ts +++ b/src/types/lib.ts @@ -81,6 +81,18 @@ export interface MapInstance extends Evented { triggerRepaint(): void; + getCenter(): LngLat; + + getZoom(): number; + + getBearing(): number; + + getPitch(): number; + + getPadding(): PaddingOptions; + + getRenderWorldCopies(): boolean; + setPadding(padding: PaddingOptions); fitBounds(bounds: any, options?: any);