v-ol-map 1.0.3 → 1.0.6

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.
Files changed (67) hide show
  1. package/.eslintrc.cjs +29 -0
  2. package/.vscode/extensions.json +3 -0
  3. package/README.md +11 -19
  4. package/dist/ol-map.es.js +8995 -0
  5. package/dist/ol-map.umd.js +2 -0
  6. package/dist/style.css +1 -0
  7. package/dist/vite.svg +1 -0
  8. package/index.html +13 -0
  9. package/package.json +24 -34
  10. package/public/vite.svg +1 -0
  11. package/src/App.vue +13 -0
  12. package/src/assets/vue.svg +1 -0
  13. package/src/components/index.js +13 -0
  14. package/src/components/index.js.map +1 -0
  15. package/src/components/index.ts +16 -0
  16. package/src/components/layers/base.ts +48 -0
  17. package/src/components/layers/tile/index.js +6 -0
  18. package/src/components/layers/tile/index.js.map +1 -0
  19. package/src/components/layers/tile/index.ts +8 -0
  20. package/src/components/layers/tile/tile.vue +97 -0
  21. package/src/components/map/index.js +6 -0
  22. package/src/components/map/index.js.map +1 -0
  23. package/src/components/map/index.ts +8 -0
  24. package/src/components/map/map.vue +91 -0
  25. package/src/main.js +6 -0
  26. package/src/main.js.map +1 -0
  27. package/src/main.ts +6 -0
  28. package/src/style.css +82 -0
  29. package/src/utils/cityMap.js +2260 -0
  30. package/src/utils/cityMap.js.map +1 -0
  31. package/src/utils/cityMap.ts +2263 -0
  32. package/src/utils/index.js +47 -8
  33. package/src/utils/index.js.map +1 -1
  34. package/src/utils/index.ts +68 -17
  35. package/src/vite-env.d.ts +7 -0
  36. package/tsconfig.json +16 -22
  37. package/tsconfig.node.json +9 -0
  38. package/vite.config.ts +40 -0
  39. package/.browserslistrc +0 -3
  40. package/.eslintrc.js +0 -20
  41. package/babel.config.js +0 -3
  42. package/examples/App.vue +0 -26
  43. package/examples/main.ts +0 -13
  44. package/examples/router/index.ts +0 -21
  45. package/examples/views/Home.vue +0 -22
  46. package/lib/demo.html +0 -8
  47. package/lib/v-ol-map.common.js +0 -29682
  48. package/lib/v-ol-map.umd.js +0 -29692
  49. package/lib/v-ol-map.umd.min.js +0 -7
  50. package/public/favicon.ico +0 -0
  51. package/public/index.html +0 -17
  52. package/src/@types/component.d.ts +0 -6
  53. package/src/@types/index.d.ts +0 -3
  54. package/src/@types/shims-tsx.d.ts +0 -13
  55. package/src/@types/shims-vue.d.ts +0 -4
  56. package/src/assets/logo.png +0 -0
  57. package/src/components/Layers/BaseLayer.vue +0 -37
  58. package/src/components/Layers/TileLayer/index.ts +0 -7
  59. package/src/components/Layers/TileLayer/src/index.vue +0 -51
  60. package/src/components/VMap/index.js +0 -6
  61. package/src/components/VMap/index.js.map +0 -1
  62. package/src/components/VMap/index.ts +0 -7
  63. package/src/components/VMap/src/VMap.vue +0 -62
  64. package/src/index.js +0 -21
  65. package/src/index.js.map +0 -1
  66. package/src/index.ts +0 -26
  67. package/vue.config.js +0 -41
package/.eslintrc.cjs ADDED
@@ -0,0 +1,29 @@
1
+ module.exports = {
2
+ env: {
3
+ browser: true,
4
+ es2021: true
5
+ },
6
+ extends: [
7
+ 'plugin:vue/vue3-essential',
8
+ 'standard'
9
+ ],
10
+ parserOptions: {
11
+ ecmaVersion: 'latest',
12
+ parser: '@typescript-eslint/parser',
13
+ sourceType: 'module'
14
+ },
15
+ plugins: [
16
+ 'vue',
17
+ '@typescript-eslint'
18
+ ],
19
+ settings: {
20
+ 'import/resolver': {
21
+ node: {
22
+ extensions: ['.js', '.jsx', '.ts', '.tsx'],
23
+ },
24
+ },
25
+ },
26
+ rules: {
27
+
28
+ }
29
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "recommendations": ["Vue.volar"]
3
+ }
package/README.md CHANGED
@@ -1,24 +1,16 @@
1
- # vue-ol-ts
1
+ # Vue 3 + TypeScript + Vite
2
2
 
3
- ## Project setup
4
- ```
5
- npm install
6
- ```
3
+ This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
7
4
 
8
- ### Compiles and hot-reloads for development
9
- ```
10
- npm run serve
11
- ```
5
+ ## Recommended IDE Setup
12
6
 
13
- ### Compiles and minifies for production
14
- ```
15
- npm run build
16
- ```
7
+ - [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar)
17
8
 
18
- ### Lints and fixes files
19
- ```
20
- npm run lint
21
- ```
9
+ ## Type Support For `.vue` Imports in TS
22
10
 
23
- ### Customize configuration
24
- See [Configuration Reference](https://cli.vuejs.org/config/).
11
+ Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's Take Over mode by following these steps:
12
+
13
+ 1. Run `Extensions: Show Built-in Extensions` from VS Code's command palette, look for `TypeScript and JavaScript Language Features`, then right click and select `Disable (Workspace)`. By default, Take Over mode will enable itself if the default TypeScript extension is disabled.
14
+ 2. Reload the VS Code window by running `Developer: Reload Window` from the command palette.
15
+
16
+ You can learn more about Take Over mode [here](https://github.com/johnsoncodehk/volar/discussions/471).