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.
@@ -0,0 +1,3 @@
1
+ > 1%
2
+ last 2 versions
3
+ not dead
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/).
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ presets: ["@vue/cli-plugin-babel/preset"],
3
+ };
@@ -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>
@@ -0,0 +1,10 @@
1
+ import Vue from "vue";
2
+ import App from "./App.vue";
3
+ import router from "./router";
4
+
5
+ Vue.config.productionTip = false;
6
+
7
+ new Vue({
8
+ router,
9
+ render: (h) => h(App),
10
+ }).$mount("#app");
@@ -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>
package/lib/demo.html ADDED
@@ -0,0 +1,8 @@
1
+ <meta charset="utf-8">
2
+ <title>v-ol-map demo</title>
3
+ <script src="./v-ol-map.umd.js"></script>
4
+
5
+
6
+ <script>
7
+ console.log(v-ol-map)
8
+ </script>