nkoehring / vem

Vue Easy Map with OpenLayers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using vem?

greenpdx opened this issue · comments

1> pulling vem from npm is version 0.0.2 while the github version is 0.0.3

2> I have tried to use vem in two different ways.
the first way is to put the import of vem in the main.js file and the second is to put the import into the component I want to use it in.

import Vue from 'vue'
import VEM from 'vem'
Vue.use(VEM)

but when I try to use it is undefined

        <vem-map>
          <tile-layer />
        </vem-map>

I am using @vue/cli 3.0.1 and vuetify 1.2.0 and ol 5.2.0

In the source I see importing four components, but how do you get those imported in a upper level component?