Skip to content

Commit

Permalink
Update with SDK v3 rc (#12)
Browse files Browse the repository at this point in the history
* update transform gl

* Fixing maptilerLogo option

* linting

* update Gh actions

* cleaning
  • Loading branch information
jonathanlurie authored Dec 16, 2024
1 parent e74b73d commit bf40ea0
Show file tree
Hide file tree
Showing 8 changed files with 320 additions and 922 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/format-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: Install Node.js dependencies
run: npm ci
Expand Down
23 changes: 19 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,28 @@ jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Checkout repo
uses: actions/checkout@v4
with:
node-version: 18
ref: ${{ github.event.release.target_commitish }}

- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run make
- run: npm publish --access public

- name: Publish NPM package (regular)
if: "!github.event.release.prerelease"
run: |
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

- name: Publish NPM package (pre-release)
if: "github.event.release.prerelease"
run: |
npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,6 @@ tmp.txt
tests/
build/
dist/
docs/
docs/

tmp_*
7 changes: 3 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# MapTiler Client Changelog

## DEVEL
### New Features
### Bug Fixes
### Others
## 3.0.0-rc.1
### Other
- Updated with SDK v3 (rc) that in theory supports globe, though this is not enabled in the Leaflet plugin due to inherent limitations of Leaflet

## 2.0.0
### New Features
Expand Down
7 changes: 4 additions & 3 deletions demos/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>

<!-- MapTiler SDK -->
<script src="https://cdn.maptiler.com/maptiler-sdk-js/latest/maptiler-sdk.umd.js"></script>
<link href="https://cdn.maptiler.com/maptiler-sdk-js/latest/maptiler-sdk.css" rel="stylesheet" />
<script src="https://cdn.maptiler.com/maptiler-sdk-js/v3.0.0-rc.2/maptiler-sdk.umd.js"></script>
<link href="https://cdn.maptiler.com/maptiler-sdk-js/v3.0.0-rc.2/maptiler-sdk.css" rel="stylesheet" />

<!-- Leaflet plugin for MapTiler SDK Layers -->
<script src="../build/leaflet-maptilersdk.umd.js"></script>
Expand All @@ -44,7 +44,8 @@

// Create a MapTiler Layer inside Leaflet
const mtLayer = L.maptilerLayer({
apiKey: "YOUR_API_KEY",
apiKey: "API_KEY",
// maptilerLogo: false,
}).addTo(map);


Expand Down
Loading

0 comments on commit bf40ea0

Please sign in to comment.