diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 5ac8407..e28b0a9 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -5,7 +5,7 @@ name: build
on:
push:
- branches: [ master ]
+ branches: [ main ]
paths:
- "lib/**"
diff --git a/.github/workflows/deploy-ghpages.yml b/.github/workflows/deploy-ghpages.yml
index e05e505..3adb0c6 100644
--- a/.github/workflows/deploy-ghpages.yml
+++ b/.github/workflows/deploy-ghpages.yml
@@ -5,7 +5,7 @@ name: deploy gh-pages
on:
push:
- branches: [ master ]
+ branches: [ main ]
paths:
- "lib/**"
- "docs/**"
@@ -32,5 +32,5 @@ jobs:
npm run build
git config --global user.name "watergis+githubci"
git config --global user.email "watergis+githubci@users.noreply.github.com"
- git remote set-url origin https://x-access-token:${NODE_AUTH_TOKEN}@github.com/watergis/mapbox-gl-legend.git
+ git remote set-url origin https://x-access-token:${NODE_AUTH_TOKEN}@github.com/watergis/maplibre-gl-legend.git
npm run deploy
\ No newline at end of file
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 3cae657..8cc925b 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -22,8 +22,8 @@ jobs:
run: |
npm run build
mkdir ./release
- cp ./dist/cdn/mapbox-gl-legend.js ./release/.
- cp ./css/styles.css ./release/mapbox-gl-legend.css
+ cp ./dist/cdn/maplibre-gl-legend.js ./release/.
+ cp ./css/styles.css ./release/maplibre-gl-legend.css
- name: Create Release
id: create_release
uses: actions/create-release@latest
diff --git a/.gitignore b/.gitignore
index ce90799..0dbbd3e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,6 @@
dist
docs/bundle*.js
-docs/mapbox-gl-legend.*
+docs/maplibre-gl-legend.*
# Logs
logs
diff --git a/README.md b/README.md
index 25fecbe..887dec9 100644
--- a/README.md
+++ b/README.md
@@ -1,26 +1,26 @@
-# mapbox-gl-legend
-![badge](https://github.com/watergis/mapbox-gl-legend/workflows/build/badge.svg)
-![badge](https://github.com/watergis/mapbox-gl-legend/workflows/deploy%20gh-pages/badge.svg)
-![](https://github.com/watergis/mapbox-gl-legend/workflows/Release%20Draft/badge.svg)
-![](https://github.com/watergis/mapbox-gl-legend/workflows/Node.js%20Package/badge.svg)
-![GitHub](https://img.shields.io/github/license/watergis/mapbox-gl-legend)
+# maplibre-gl-legend
+![badge](https://github.com/watergis/maplibre-gl-legend/workflows/build/badge.svg)
+![badge](https://github.com/watergis/maplibre-gl-legend/workflows/deploy%20gh-pages/badge.svg)
+![](https://github.com/watergis/maplibre-gl-legend/workflows/Release%20Draft/badge.svg)
+![](https://github.com/watergis/maplibre-gl-legend/workflows/Node.js%20Package/badge.svg)
+![GitHub](https://img.shields.io/github/license/watergis/maplibre-gl-legend)
-This module adds legend control which is able to create legend panel from mapbox style to mapbox-gl.
+This module adds legend control which is able to create legend panel from mapbox style to maplibre-gl. It was forked from [maplibre-gl-export](https://github.com/watergis/maplibre-gl-export).
This module is using source code of [orangemug/legend-symbol](https://github.com/orangemug/legend-symbol). I just adopted this library to normal Mapbox GL Plugin. Thanks so much to develop this library!
## Installation:
```bash
-npm i @watergis/mapbox-gl-legend --save
+npm i @watergis/maplibre-gl-legend --save
```
## Use CDN
```html
-
-
-
+
+
+
+