v-ol-map 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.
- package/.browserslistrc +3 -0
- package/.eslintrc.js +20 -0
- package/README.md +24 -0
- package/babel.config.js +3 -0
- package/examples/App.vue +26 -0
- package/examples/main.ts +10 -0
- package/examples/router/index.ts +21 -0
- package/examples/views/Home.vue +25 -0
- package/lib/demo.html +8 -0
- package/lib/v-ol-map.common.js +29681 -0
- package/lib/v-ol-map.umd.js +29691 -0
- package/lib/v-ol-map.umd.min.js +7 -0
- package/package.json +47 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +17 -0
- package/src/@types/component.d.ts +6 -0
- package/src/@types/index.d.ts +3 -0
- package/src/@types/shims-tsx.d.ts +13 -0
- package/src/@types/shims-vue.d.ts +4 -0
- package/src/assets/logo.png +0 -0
- package/src/components/Layers/BaseLayer.vue +37 -0
- package/src/components/Layers/TileLayer/index.ts +7 -0
- package/src/components/Layers/TileLayer/src/index.vue +50 -0
- package/src/components/VMap/index.js +6 -0
- package/src/components/VMap/index.js.map +1 -0
- package/src/components/VMap/index.ts +7 -0
- package/src/components/VMap/src/VMap.vue +63 -0
- package/src/index.js +21 -0
- package/src/index.js.map +1 -0
- package/src/index.ts +25 -0
- package/src/utils/index.js +20 -0
- package/src/utils/index.js.map +1 -0
- package/src/utils/index.ts +26 -0
- package/tsconfig.json +29 -0
- package/vue.config.js +41 -0
package/.browserslistrc
ADDED
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
node: true,
|
|
5
|
+
},
|
|
6
|
+
extends: [
|
|
7
|
+
"plugin:vue/essential",
|
|
8
|
+
"eslint:recommended",
|
|
9
|
+
"@vue/typescript/recommended",
|
|
10
|
+
"@vue/prettier",
|
|
11
|
+
"@vue/prettier/@typescript-eslint",
|
|
12
|
+
],
|
|
13
|
+
parserOptions: {
|
|
14
|
+
ecmaVersion: 2020,
|
|
15
|
+
},
|
|
16
|
+
rules: {
|
|
17
|
+
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
18
|
+
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
19
|
+
},
|
|
20
|
+
};
|
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# vue-ol-ts
|
|
2
|
+
|
|
3
|
+
## Project setup
|
|
4
|
+
```
|
|
5
|
+
npm install
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
### Compiles and hot-reloads for development
|
|
9
|
+
```
|
|
10
|
+
npm run serve
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Compiles and minifies for production
|
|
14
|
+
```
|
|
15
|
+
npm run build
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Lints and fixes files
|
|
19
|
+
```
|
|
20
|
+
npm run lint
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Customize configuration
|
|
24
|
+
See [Configuration Reference](https://cli.vuejs.org/config/).
|
package/babel.config.js
ADDED
package/examples/App.vue
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="app">
|
|
3
|
+
<router-view />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<style lang="scss">
|
|
8
|
+
html,
|
|
9
|
+
body {
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
padding: 0;
|
|
13
|
+
margin: 0;
|
|
14
|
+
}
|
|
15
|
+
#app {
|
|
16
|
+
font-family: Avenir, Helvetica, Arial, sans-serif;
|
|
17
|
+
-webkit-font-smoothing: antialiased;
|
|
18
|
+
-moz-osx-font-smoothing: grayscale;
|
|
19
|
+
text-align: center;
|
|
20
|
+
color: #2c3e50;
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
padding: 0;
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
</style>
|
package/examples/main.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import VueRouter, { RouteConfig } from "vue-router";
|
|
3
|
+
import Home from "../views/Home.vue";
|
|
4
|
+
|
|
5
|
+
Vue.use(VueRouter);
|
|
6
|
+
|
|
7
|
+
const routes: Array<RouteConfig> = [
|
|
8
|
+
{
|
|
9
|
+
path: "/",
|
|
10
|
+
name: "Home",
|
|
11
|
+
component: Home,
|
|
12
|
+
},
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
const router = new VueRouter({
|
|
16
|
+
mode: "history",
|
|
17
|
+
base: process.env.BASE_URL,
|
|
18
|
+
routes,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export default router;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="home">
|
|
3
|
+
<v-map :height="height" :width="width">
|
|
4
|
+
<v-tile :visible="true"></v-tile>
|
|
5
|
+
</v-map>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script lang="ts">
|
|
10
|
+
import { Component, Vue } from "vue-property-decorator";
|
|
11
|
+
import { VMap, VTile } from "@/index";
|
|
12
|
+
@Component({
|
|
13
|
+
components: { VMap, VTile },
|
|
14
|
+
})
|
|
15
|
+
export default class Home extends Vue {
|
|
16
|
+
height = "960px";
|
|
17
|
+
width = "1080px";
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
20
|
+
<style scoped>
|
|
21
|
+
.home {
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
}
|
|
25
|
+
</style>
|