vue3-maplibre-gl 3.1.27
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/.vscode/extensions.json +15 -0
- package/LICENSE +21 -0
- package/README.md +106 -0
- package/dist/index.d.ts +2816 -0
- package/dist/index.js +5286 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.cjs +2 -0
- package/dist/index.umd.cjs.map +1 -0
- package/dist/style.css +1 -0
- package/package.json +108 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"recommendations": [
|
|
3
|
+
"dbaeumer.vscode-eslint",
|
|
4
|
+
"esbenp.prettier-vscode",
|
|
5
|
+
"editorconfig.editorconfig",
|
|
6
|
+
"vue.volar",
|
|
7
|
+
"wayou.vscode-todo-highlight"
|
|
8
|
+
],
|
|
9
|
+
"unwantedRecommendations": [
|
|
10
|
+
"octref.vetur",
|
|
11
|
+
"hookyqr.beautify",
|
|
12
|
+
"dbaeumer.jshint",
|
|
13
|
+
"ms-vscode.vscode-typescript-tslint-plugin"
|
|
14
|
+
]
|
|
15
|
+
}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Danh Nguyen
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Vue MapLibre GL
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/vue3-maplibre-gl) [](https://www.npmjs.com/package/vue3-maplibre-gl) [](https://github.com/danh121097/vue-mapbox-gl/stargazers) [](https://github.com/danh121097/vue-mapbox-gl/blob/main/LICENSE)
|
|
4
|
+
|
|
5
|
+
> Vue 3 components and composables for MapLibre GL JS - Build interactive maps with ease
|
|
6
|
+
|
|
7
|
+
A comprehensive Vue 3 component library for MapLibre GL JS that provides an intuitive, reactive way to build interactive maps in your Vue applications.
|
|
8
|
+
|
|
9
|
+
## β¨ Features
|
|
10
|
+
|
|
11
|
+
- πΊοΈ **Interactive Maps** - Create beautiful, interactive maps with MapLibre GL JS
|
|
12
|
+
- π§© **Component-Based** - Use Vue components for markers, layers, controls, and more
|
|
13
|
+
- π― **TypeScript Support** - Full TypeScript support with comprehensive type definitions
|
|
14
|
+
- π **Performance** - Optimized for performance with efficient rendering
|
|
15
|
+
- π§ **Composables** - Powerful composables for map interactions and state management
|
|
16
|
+
- π± **Responsive** - Mobile-friendly maps that work across all devices
|
|
17
|
+
|
|
18
|
+
## π¦ Installation
|
|
19
|
+
|
|
20
|
+
### Using Yarn (Recommended)
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
yarn add vue3-maplibre-gl maplibre-gl
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Using npm
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm install vue3-maplibre-gl maplibre-gl
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Using pnpm
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
pnpm add vue3-maplibre-gl maplibre-gl
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## π Quick Start
|
|
39
|
+
|
|
40
|
+
```vue
|
|
41
|
+
<template>
|
|
42
|
+
<MapLibreMap
|
|
43
|
+
:map-style="mapStyle"
|
|
44
|
+
:center="[0, 0]"
|
|
45
|
+
:zoom="2"
|
|
46
|
+
style="height: 400px"
|
|
47
|
+
>
|
|
48
|
+
<MapLibreMarker :lng-lat="[0, 0]">
|
|
49
|
+
<div class="marker">π</div>
|
|
50
|
+
</MapLibreMarker>
|
|
51
|
+
</MapLibreMap>
|
|
52
|
+
</template>
|
|
53
|
+
|
|
54
|
+
<script setup>
|
|
55
|
+
import { MapLibreMap, MapLibreMarker } from 'vue3-maplibre-gl';
|
|
56
|
+
import 'maplibre-gl/dist/maplibre-gl.css';
|
|
57
|
+
|
|
58
|
+
const mapStyle = 'https://demotiles.maplibre.org/style.json';
|
|
59
|
+
</script>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## π Documentation
|
|
63
|
+
|
|
64
|
+
- **[Getting Started](https://danh121097.github.io/vue-mapbox-gl/guide/getting-started)** - Learn the basics
|
|
65
|
+
- **[Installation Guide](https://danh121097.github.io/vue-mapbox-gl/guide/installation)** - Detailed setup instructions
|
|
66
|
+
- **[API Reference](https://danh121097.github.io/vue-mapbox-gl/api/components)** - Complete component documentation
|
|
67
|
+
- **[Examples](https://danh121097.github.io/vue-mapbox-gl/examples/)** - Live examples and demos
|
|
68
|
+
|
|
69
|
+
## π οΈ Development
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
# Clone the repository
|
|
73
|
+
git clone https://github.com/danh121097/vue-mapbox-gl.git
|
|
74
|
+
cd vue-mapbox-gl
|
|
75
|
+
|
|
76
|
+
# Install dependencies
|
|
77
|
+
yarn install
|
|
78
|
+
|
|
79
|
+
# Start development server
|
|
80
|
+
yarn dev
|
|
81
|
+
|
|
82
|
+
# Build the library
|
|
83
|
+
yarn build
|
|
84
|
+
|
|
85
|
+
# Run documentation
|
|
86
|
+
yarn docs:dev
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## π€ Contributing
|
|
90
|
+
|
|
91
|
+
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
|
|
92
|
+
|
|
93
|
+
## π License
|
|
94
|
+
|
|
95
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
96
|
+
|
|
97
|
+
## π Acknowledgments
|
|
98
|
+
|
|
99
|
+
- Built on top of [MapLibre GL JS](https://maplibre.org/maplibre-gl-js/docs/)
|
|
100
|
+
- Inspired by the Vue.js ecosystem and community
|
|
101
|
+
|
|
102
|
+
## π Support
|
|
103
|
+
|
|
104
|
+
- π [Documentation](https://danh121097.github.io/vue-mapbox-gl/)
|
|
105
|
+
- π [Issues](https://github.com/danh121097/vue-mapbox-gl/issues)
|
|
106
|
+
- π¬ [Discussions](https://github.com/danh121097/vue-mapbox-gl/discussions)
|