w-maplibregl-vue 1.0.0

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 (277) hide show
  1. package/.editorconfig +9 -0
  2. package/.eslintignore +3 -0
  3. package/.eslintrc.js +55 -0
  4. package/.jsdoc +25 -0
  5. package/LICENSE +21 -0
  6. package/README.md +37 -0
  7. package/SECURITY.md +5 -0
  8. package/babel.config.js +16 -0
  9. package/dist/w-maplibregl-vue.umd.js +7 -0
  10. package/dist/w-maplibregl-vue.umd.js.map +1 -0
  11. package/docs/WMaplibreglVue.vue.html +2521 -0
  12. package/docs/examples/app.html +64 -0
  13. package/docs/examples/app.umd.js +12 -0
  14. package/docs/examples/app.umd.js.map +1 -0
  15. package/docs/examples/ex-AppBSCCenter.html +191 -0
  16. package/docs/examples/ex-AppBSCPanelBackgroundColor.html +180 -0
  17. package/docs/examples/ex-AppBSCSize.html +191 -0
  18. package/docs/examples/ex-AppBSCZoom.html +192 -0
  19. package/docs/examples/ex-AppCTRContourSetChangeData.html +235 -0
  20. package/docs/examples/ex-AppCTRContourSetChangeStyleWhenHover.html +215 -0
  21. package/docs/examples/ex-AppCTRContourSetFillOpacity.html +215 -0
  22. package/docs/examples/ex-AppCTRContourSetFillOpacityHover.html +216 -0
  23. package/docs/examples/ex-AppCTRContourSetGetColor.html +227 -0
  24. package/docs/examples/ex-AppCTRContourSetGradient.html +230 -0
  25. package/docs/examples/ex-AppCTRContourSetInterp2.html +312 -0
  26. package/docs/examples/ex-AppCTRContourSetLargeSet.html +217 -0
  27. package/docs/examples/ex-AppCTRContourSetLegendNumDig.html +197 -0
  28. package/docs/examples/ex-AppCTRContourSetLegendTextExtra.html +207 -0
  29. package/docs/examples/ex-AppCTRContourSetLegendTextFormater.html +218 -0
  30. package/docs/examples/ex-AppCTRContourSetLineColor.html +215 -0
  31. package/docs/examples/ex-AppCTRContourSetLineColorHover.html +215 -0
  32. package/docs/examples/ex-AppCTRContourSetLineWidth.html +215 -0
  33. package/docs/examples/ex-AppCTRContourSetLineWidthHover.html +215 -0
  34. package/docs/examples/ex-AppCTRContourSetOrder.html +216 -0
  35. package/docs/examples/ex-AppCTRContourSetPolygonClipOuter.html +221 -0
  36. package/docs/examples/ex-AppCTRContourSetPolygonsClipInner.html +234 -0
  37. package/docs/examples/ex-AppCTRContourSetPolygonsContainInner.html +234 -0
  38. package/docs/examples/ex-AppCTRContourSetThresholds.html +216 -0
  39. package/docs/examples/ex-AppCTRContourSets.html +244 -0
  40. package/docs/examples/ex-AppCTRContourSetsClick.html +217 -0
  41. package/docs/examples/ex-AppCTRContourSetsPopup.html +232 -0
  42. package/docs/examples/ex-AppCTRContourSetsTooltip.html +232 -0
  43. package/docs/examples/ex-AppFunCenterTo.html +218 -0
  44. package/docs/examples/ex-AppFunGetMapObject.html +220 -0
  45. package/docs/examples/ex-AppFunModifyItemsVisible.html +264 -0
  46. package/docs/examples/ex-AppFunPanTo.html +286 -0
  47. package/docs/examples/ex-AppFunPopupPointPolylinePolygon.html +439 -0
  48. package/docs/examples/ex-AppGJNGeojsonSetChangeData.html +355 -0
  49. package/docs/examples/ex-AppGJNGeojsonSetFillColor.html +307 -0
  50. package/docs/examples/ex-AppGJNGeojsonSetLineColor.html +307 -0
  51. package/docs/examples/ex-AppGJNGeojsonSetLineWidth.html +307 -0
  52. package/docs/examples/ex-AppGJNGeojsonSetOrder.html +308 -0
  53. package/docs/examples/ex-AppGJNGeojsonSetUpload.html +269 -0
  54. package/docs/examples/ex-AppGJNGeojsonSets.html +618 -0
  55. package/docs/examples/ex-AppGJNGeojsonSetsClick.html +309 -0
  56. package/docs/examples/ex-AppGJNGeojsonSetsPopup.html +324 -0
  57. package/docs/examples/ex-AppGJNGeojsonSetsTooltip.html +324 -0
  58. package/docs/examples/ex-AppIMGImageSetUpload.html +240 -0
  59. package/docs/examples/ex-AppIMGImageSets.html +207 -0
  60. package/docs/examples/ex-AppLGDMaxHeight.html +228 -0
  61. package/docs/examples/ex-AppLGDMaxWidth.html +228 -0
  62. package/docs/examples/ex-AppLGDPosition.html +236 -0
  63. package/docs/examples/ex-AppLGDShow.html +228 -0
  64. package/docs/examples/ex-AppLGDWidth.html +228 -0
  65. package/docs/examples/ex-AppPBMBaseMaps.html +199 -0
  66. package/docs/examples/ex-AppPBMMaxHeight.html +194 -0
  67. package/docs/examples/ex-AppPBMMaxWidth.html +194 -0
  68. package/docs/examples/ex-AppPBMPosition.html +201 -0
  69. package/docs/examples/ex-AppPBMShow.html +193 -0
  70. package/docs/examples/ex-AppPBMWidth.html +193 -0
  71. package/docs/examples/ex-AppPCRIconSrcDarkLight.html +216 -0
  72. package/docs/examples/ex-AppPCRPosition.html +205 -0
  73. package/docs/examples/ex-AppPCRShow.html +196 -0
  74. package/docs/examples/ex-AppPCRSize.html +197 -0
  75. package/docs/examples/ex-AppPCRWithPanel.html +197 -0
  76. package/docs/examples/ex-AppPGNPolygonSetChangeData.html +311 -0
  77. package/docs/examples/ex-AppPGNPolygonSetFillColor.html +255 -0
  78. package/docs/examples/ex-AppPGNPolygonSetLineColor.html +255 -0
  79. package/docs/examples/ex-AppPGNPolygonSetLineWidth.html +255 -0
  80. package/docs/examples/ex-AppPGNPolygonSetOrder.html +256 -0
  81. package/docs/examples/ex-AppPGNPolygonSets.html +287 -0
  82. package/docs/examples/ex-AppPGNPolygonSetsClick.html +257 -0
  83. package/docs/examples/ex-AppPGNPolygonSetsPopup.html +374 -0
  84. package/docs/examples/ex-AppPGNPolygonSetsTooltip.html +272 -0
  85. package/docs/examples/ex-AppPIMMaxHeight.html +282 -0
  86. package/docs/examples/ex-AppPIMMaxWidth.html +231 -0
  87. package/docs/examples/ex-AppPIMPosition.html +237 -0
  88. package/docs/examples/ex-AppPIMShow.html +229 -0
  89. package/docs/examples/ex-AppPIMWidth.html +230 -0
  90. package/docs/examples/ex-AppPLBLat.html +182 -0
  91. package/docs/examples/ex-AppPLBLng.html +182 -0
  92. package/docs/examples/ex-AppPLBPosition.html +201 -0
  93. package/docs/examples/ex-AppPLBShow.html +193 -0
  94. package/docs/examples/ex-AppPLBTitle.html +182 -0
  95. package/docs/examples/ex-AppPLBUseItems.html +193 -0
  96. package/docs/examples/ex-AppPLBZoom.html +182 -0
  97. package/docs/examples/ex-AppPLNPolylineSetChangeData.html +247 -0
  98. package/docs/examples/ex-AppPLNPolylineSetLineColor.html +231 -0
  99. package/docs/examples/ex-AppPLNPolylineSetLineWidth.html +231 -0
  100. package/docs/examples/ex-AppPLNPolylineSetOrder.html +232 -0
  101. package/docs/examples/ex-AppPLNPolylineSets.html +230 -0
  102. package/docs/examples/ex-AppPLNPolylineSetsClick.html +233 -0
  103. package/docs/examples/ex-AppPLNPolylineSetsPopup.html +248 -0
  104. package/docs/examples/ex-AppPLNPolylineSetsTooltip.html +248 -0
  105. package/docs/examples/ex-AppPNTPointSetChangeData.html +249 -0
  106. package/docs/examples/ex-AppPNTPointSetFillColor.html +218 -0
  107. package/docs/examples/ex-AppPNTPointSetIconSrcSizeAnchor.html +239 -0
  108. package/docs/examples/ex-AppPNTPointSetLargeSet.html +308 -0
  109. package/docs/examples/ex-AppPNTPointSetLineColor.html +218 -0
  110. package/docs/examples/ex-AppPNTPointSetLineWidth.html +218 -0
  111. package/docs/examples/ex-AppPNTPointSetOrder.html +217 -0
  112. package/docs/examples/ex-AppPNTPointSetPointByArray.html +207 -0
  113. package/docs/examples/ex-AppPNTPointSetPointIconSrcSizeAnchor.html +256 -0
  114. package/docs/examples/ex-AppPNTPointSetSize.html +218 -0
  115. package/docs/examples/ex-AppPNTPointSets.html +215 -0
  116. package/docs/examples/ex-AppPNTPointSetsClick.html +218 -0
  117. package/docs/examples/ex-AppPNTPointSetsPopup.html +307 -0
  118. package/docs/examples/ex-AppPNTPointSetsTooltip.html +307 -0
  119. package/docs/examples/ex-AppPSCPosition.html +201 -0
  120. package/docs/examples/ex-AppPSCShow.html +193 -0
  121. package/docs/examples/ex-AppPZMPosition.html +201 -0
  122. package/docs/examples/ex-AppPZMShow.html +193 -0
  123. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  124. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  125. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  126. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  127. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  128. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  129. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  130. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  131. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  132. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  133. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  134. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  135. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  136. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  137. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  138. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  139. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  140. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  141. package/docs/index.html +84 -0
  142. package/docs/scripts/collapse.js +39 -0
  143. package/docs/scripts/commonNav.js +28 -0
  144. package/docs/scripts/linenumber.js +25 -0
  145. package/docs/scripts/nav.js +12 -0
  146. package/docs/scripts/polyfill.js +4 -0
  147. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  148. package/docs/scripts/prettify/lang-css.js +2 -0
  149. package/docs/scripts/prettify/prettify.js +28 -0
  150. package/docs/scripts/search.js +99 -0
  151. package/docs/styles/jsdoc.css +776 -0
  152. package/docs/styles/prettify.css +80 -0
  153. package/package.json +74 -0
  154. package/public/index.html +35 -0
  155. package/script.txt +22 -0
  156. package/src/App.vue +736 -0
  157. package/src/AppBSCCenter.vue +83 -0
  158. package/src/AppBSCPanelBackgroundColor.vue +78 -0
  159. package/src/AppBSCSize.vue +84 -0
  160. package/src/AppBSCZoom.vue +84 -0
  161. package/src/AppCTRContourSetChangeData.vue +110 -0
  162. package/src/AppCTRContourSetChangeStyleWhenHover.vue +100 -0
  163. package/src/AppCTRContourSetFillOpacity.vue +100 -0
  164. package/src/AppCTRContourSetFillOpacityHover.vue +101 -0
  165. package/src/AppCTRContourSetGetColor.vue +112 -0
  166. package/src/AppCTRContourSetGradient.vue +115 -0
  167. package/src/AppCTRContourSetInterp2.vue +209 -0
  168. package/src/AppCTRContourSetLargeSet.vue +115 -0
  169. package/src/AppCTRContourSetLegendNumDig.vue +90 -0
  170. package/src/AppCTRContourSetLegendTextExtra.vue +100 -0
  171. package/src/AppCTRContourSetLegendTextFormater.vue +113 -0
  172. package/src/AppCTRContourSetLineColor.vue +100 -0
  173. package/src/AppCTRContourSetLineColorHover.vue +100 -0
  174. package/src/AppCTRContourSetLineWidth.vue +100 -0
  175. package/src/AppCTRContourSetLineWidthHover.vue +100 -0
  176. package/src/AppCTRContourSetOrder.vue +101 -0
  177. package/src/AppCTRContourSetPolygonClipOuter.vue +110 -0
  178. package/src/AppCTRContourSetPolygonsClipInner.vue +119 -0
  179. package/src/AppCTRContourSetPolygonsContainInner.vue +119 -0
  180. package/src/AppCTRContourSetThresholds.vue +101 -0
  181. package/src/AppCTRContourSets.vue +129 -0
  182. package/src/AppCTRContourSetsClick.vue +102 -0
  183. package/src/AppCTRContourSetsPopup.vue +111 -0
  184. package/src/AppCTRContourSetsTooltip.vue +111 -0
  185. package/src/AppFunCenterTo.vue +109 -0
  186. package/src/AppFunGetMapObject.vue +114 -0
  187. package/src/AppFunModifyItemsVisible.vue +147 -0
  188. package/src/AppFunPanTo.vue +182 -0
  189. package/src/AppFunPopupPointPolylinePolygon.vue +274 -0
  190. package/src/AppGJNGeojsonSetChangeData.vue +229 -0
  191. package/src/AppGJNGeojsonSetFillColor.vue +188 -0
  192. package/src/AppGJNGeojsonSetLineColor.vue +188 -0
  193. package/src/AppGJNGeojsonSetLineWidth.vue +188 -0
  194. package/src/AppGJNGeojsonSetOrder.vue +189 -0
  195. package/src/AppGJNGeojsonSetUpload.vue +166 -0
  196. package/src/AppGJNGeojsonSets.vue +95 -0
  197. package/src/AppGJNGeojsonSetsClick.vue +190 -0
  198. package/src/AppGJNGeojsonSetsPopup.vue +199 -0
  199. package/src/AppGJNGeojsonSetsTooltip.vue +199 -0
  200. package/src/AppIMGImageSetUpload.vue +138 -0
  201. package/src/AppIMGImageSets.vue +105 -0
  202. package/src/AppLGDMaxHeight.vue +107 -0
  203. package/src/AppLGDMaxWidth.vue +107 -0
  204. package/src/AppLGDPosition.vue +109 -0
  205. package/src/AppLGDShow.vue +107 -0
  206. package/src/AppLGDWidth.vue +107 -0
  207. package/src/AppPBMBaseMaps.vue +96 -0
  208. package/src/AppPBMMaxHeight.vue +86 -0
  209. package/src/AppPBMMaxWidth.vue +86 -0
  210. package/src/AppPBMPosition.vue +87 -0
  211. package/src/AppPBMShow.vue +85 -0
  212. package/src/AppPBMWidth.vue +85 -0
  213. package/src/AppPCRIconSrcDarkLight.vue +113 -0
  214. package/src/AppPCRPosition.vue +91 -0
  215. package/src/AppPCRShow.vue +88 -0
  216. package/src/AppPCRSize.vue +89 -0
  217. package/src/AppPCRWithPanel.vue +89 -0
  218. package/src/AppPGNPolygonSetChangeData.vue +164 -0
  219. package/src/AppPGNPolygonSetFillColor.vue +120 -0
  220. package/src/AppPGNPolygonSetLineColor.vue +120 -0
  221. package/src/AppPGNPolygonSetLineWidth.vue +120 -0
  222. package/src/AppPGNPolygonSetOrder.vue +121 -0
  223. package/src/AppPGNPolygonSets.vue +151 -0
  224. package/src/AppPGNPolygonSetsClick.vue +122 -0
  225. package/src/AppPGNPolygonSetsPopup.vue +225 -0
  226. package/src/AppPGNPolygonSetsTooltip.vue +131 -0
  227. package/src/AppPIMMaxHeight.vue +174 -0
  228. package/src/AppPIMMaxWidth.vue +123 -0
  229. package/src/AppPIMPosition.vue +123 -0
  230. package/src/AppPIMShow.vue +121 -0
  231. package/src/AppPIMWidth.vue +122 -0
  232. package/src/AppPLBLat.vue +80 -0
  233. package/src/AppPLBLng.vue +80 -0
  234. package/src/AppPLBPosition.vue +87 -0
  235. package/src/AppPLBShow.vue +85 -0
  236. package/src/AppPLBTitle.vue +80 -0
  237. package/src/AppPLBUseItems.vue +85 -0
  238. package/src/AppPLBZoom.vue +80 -0
  239. package/src/AppPLNPolylineSetChangeData.vue +117 -0
  240. package/src/AppPLNPolylineSetLineColor.vue +108 -0
  241. package/src/AppPLNPolylineSetLineWidth.vue +108 -0
  242. package/src/AppPLNPolylineSetOrder.vue +109 -0
  243. package/src/AppPLNPolylineSets.vue +107 -0
  244. package/src/AppPLNPolylineSetsClick.vue +110 -0
  245. package/src/AppPLNPolylineSetsPopup.vue +119 -0
  246. package/src/AppPLNPolylineSetsTooltip.vue +119 -0
  247. package/src/AppPNTPointSetChangeData.vue +130 -0
  248. package/src/AppPNTPointSetFillColor.vue +114 -0
  249. package/src/AppPNTPointSetIconSrcSizeAnchor.vue +134 -0
  250. package/src/AppPNTPointSetLargeSet.vue +179 -0
  251. package/src/AppPNTPointSetLineColor.vue +114 -0
  252. package/src/AppPNTPointSetLineWidth.vue +114 -0
  253. package/src/AppPNTPointSetOrder.vue +115 -0
  254. package/src/AppPNTPointSetPointByArray.vue +104 -0
  255. package/src/AppPNTPointSetPointIconSrcSizeAnchor.vue +150 -0
  256. package/src/AppPNTPointSetSize.vue +114 -0
  257. package/src/AppPNTPointSets.vue +113 -0
  258. package/src/AppPNTPointSetsClick.vue +116 -0
  259. package/src/AppPNTPointSetsPopup.vue +187 -0
  260. package/src/AppPNTPointSetsTooltip.vue +187 -0
  261. package/src/AppPSCPosition.vue +87 -0
  262. package/src/AppPSCShow.vue +85 -0
  263. package/src/AppPZMPosition.vue +87 -0
  264. package/src/AppPZMShow.vue +85 -0
  265. package/src/components/WMaplibreglVue.vue +2449 -0
  266. package/src/defBaseMaps.mjs +407 -0
  267. package/src/main.js +8 -0
  268. package/src/uiRes.mjs +13 -0
  269. package/test/all.test.mjs +10 -0
  270. package/toolg/addVersion.mjs +4 -0
  271. package/toolg/cleanFolder.mjs +4 -0
  272. package/toolg/gDistApp.mjs +36 -0
  273. package/toolg/gDistRollupComps.mjs +22 -0
  274. package/toolg/gDocExams.mjs +47 -0
  275. package/toolg/gExtractHtml.mjs +181 -0
  276. package/toolg/modifyReadme.mjs +4 -0
  277. package/vue.config.js +21 -0
package/.editorconfig ADDED
@@ -0,0 +1,9 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = space
6
+ indent_size = 4
7
+ end_of_line = lf
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
package/.eslintignore ADDED
@@ -0,0 +1,3 @@
1
+ /build/
2
+ /config/
3
+ /dist/
package/.eslintrc.js ADDED
@@ -0,0 +1,55 @@
1
+ module.exports = {
2
+ 'env': {
3
+ 'browser': true,
4
+ 'es6': true,
5
+ 'mocha': true
6
+ },
7
+ 'extends': ['plugin:vue/base', 'plugin:vue/essential', 'standard'],
8
+ 'plugins': [
9
+ 'vue'
10
+ ],
11
+ 'globals': {
12
+ 'Atomics': 'readonly',
13
+ 'SharedArrayBuffer': 'readonly'
14
+ },
15
+ 'parser': 'vue-eslint-parser',
16
+ 'parserOptions': {
17
+ 'parser': '@babel/eslint-parser',
18
+ 'ecmaVersion': 2019,
19
+ 'sourceType': 'module',
20
+ },
21
+ 'rules': {
22
+ 'generator-star-spacing': 'off',
23
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
24
+ 'indent': ['error', 4],
25
+ 'no-console': 'off',
26
+ 'comma-dangle': ['error', {
27
+ 'arrays': 'ignore',
28
+ 'objects': 'ignore',
29
+ 'imports': 'never',
30
+ 'exports': 'never',
31
+ 'functions': 'ignore'
32
+ }],
33
+ 'no-multiple-empty-lines': ['error', { 'max': 2, 'maxEOF': 2 }],
34
+ //'space-before-function-paren': ['error', { 'anonymous': 'always', 'named': 'never' }],
35
+ 'space-before-function-paren': 'off',
36
+ 'spaced-comment': 'off',
37
+ 'brace-style': ['error', 'stroustrup'],
38
+ 'padded-blocks': 'off',
39
+ 'no-constant-condition': 'off',
40
+ 'camelcase': 'off',
41
+ 'no-new': 'off',
42
+ 'prefer-const': 'off',
43
+ 'quote-props': ['error', 'consistent'],
44
+ 'dot-notation': 'off',
45
+ 'standard/no-callback-literal': 'off',
46
+ 'quotes': ['error', 'single', { 'allowTemplateLiterals': true }],
47
+ 'prefer-promise-reject-errors': 'off',
48
+ 'no-unused-vars': ['error', { 'args': 'none', 'ignoreRestSiblings': true, 'argsIgnorePattern': '^_' }],
49
+ 'node/no-callback-literal': 'off',
50
+ 'prefer-regex-literals': 'off',
51
+ 'array-callback-return': 'off',
52
+ 'no-unreachable-loop': 'off',
53
+ 'vue/multi-word-component-names': 'off',
54
+ }
55
+ }
package/.jsdoc ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "tags": {
3
+ "allowUnknownTags": false
4
+ },
5
+ "source": {
6
+ "include": ["src/", "server/"],
7
+ "includePattern": ".+\\.(js(doc|x)?|mjs|vue)$",
8
+ "excludePattern": "(node_modules/|docs)"
9
+ },
10
+ "plugins": [
11
+ "plugins/markdown",
12
+ "node_modules/jsdoc-vuejs"
13
+ ],
14
+ "opts": {
15
+ "template": "node_modules/docdash",
16
+ "encoding": "utf8",
17
+ "destination": "docs/",
18
+ "recurse": true,
19
+ "verbose": true
20
+ },
21
+ "templates": {
22
+ "cleverLinks": false,
23
+ "monospaceLinks": false
24
+ }
25
+ }
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 semisphere(yu-da, lyu 呂昱達)
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,37 @@
1
+ # w-maplibregl-vue
2
+ A vue2 wrapper for maplibre-gl.
3
+
4
+ ![language](https://img.shields.io/badge/language-JavaScript-orange.svg)
5
+ [![language](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://github.com/vuejs/vue)
6
+ [![npm version](http://img.shields.io/npm/v/w-maplibregl-vue.svg?style=flat)](https://npmjs.org/package/w-maplibregl-vue)
7
+ [![license](https://img.shields.io/npm/l/w-maplibregl-vue.svg?style=flat)](https://npmjs.org/package/w-maplibregl-vue)
8
+ [![npm download](https://img.shields.io/npm/dt/w-maplibregl-vue.svg)](https://npmjs.org/package/w-maplibregl-vue)
9
+ [![npm download](https://img.shields.io/npm/dm/w-maplibregl-vue.svg)](https://npmjs.org/package/w-maplibregl-vue)
10
+ [![jsdelivr download](https://img.shields.io/jsdelivr/npm/hm/w-maplibregl-vue.svg)](https://www.jsdelivr.com/package/npm/w-maplibregl-vue)
11
+
12
+ ## Documentation
13
+ To view documentation or get support, visit [docs](https://yuda-lyu.github.io/w-maplibregl-vue/module-WMaplibreglVue.html).
14
+
15
+ ## Example
16
+ To view some examples for more understanding, visit examples:
17
+
18
+ > **all examples:** [web](https://yuda-lyu.github.io/w-maplibregl-vue/examples/app.html) [[source code](https://github.com/yuda-lyu/w-maplibregl-vue/blob/master/docs/examples/app.html)]
19
+
20
+ ## Installation
21
+
22
+ ### Using npm(ES6 module):
23
+ ```alias
24
+ npm i w-maplibregl-vue
25
+ ```
26
+
27
+ ### In a browser(UMD module):
28
+
29
+ Add script for vue.
30
+ ```alias
31
+ <script src="https://cdn.jsdelivr.net/npm/vue@2.x/dist/vue.min.js"></script>
32
+ ```
33
+
34
+ Add script for w-maplibregl-vue.
35
+ ```alias
36
+ <script src="https://cdn.jsdelivr.net/npm/w-maplibregl-vue@1.0.0/dist/w-maplibregl-vue.umd.js"></script>
37
+ ```
package/SECURITY.md ADDED
@@ -0,0 +1,5 @@
1
+ # Security Policy
2
+
3
+ ## Reporting a Vulnerability
4
+
5
+ Please report security issues to `firsemisphere@gmail.com`
@@ -0,0 +1,16 @@
1
+ module.exports = {
2
+ 'presets': [
3
+ ['@babel/preset-env', {
4
+ 'useBuiltIns': 'entry',
5
+ 'corejs': 3
6
+ }]
7
+ ],
8
+ 'plugins': [
9
+ '@babel/plugin-transform-runtime',
10
+ '@babel/plugin-proposal-export-default-from',
11
+ // '@babel/plugin-syntax-import-assertions', //已被棄用
12
+ // '@babel/plugin-proposal-nullish-coalescing-operator', //browser與nodejs已支援
13
+ // '@babel/plugin-proposal-object-rest-spread', //browser與nodejs已支援
14
+ // '@babel/plugin-proposal-optional-chaining', //browser與nodejs已支援
15
+ ]
16
+ }