Code Monkey home page Code Monkey logo

Comments (7)

ghettovoice avatar ghettovoice commented on May 15, 2024

It's strange. I can't reproduce the issue https://jsfiddle.net/3z78zzd1/3/
This error may affect events on vl-view
Can you show your code ?

from vuelayers.

ton212 avatar ton212 commented on May 15, 2024

Here is my code where I load the map. I load it in a component.

<template>
    <info-box :hasFooter="true">
        <template slot="header">
            <h3><i class="el-icon-fa-map"></i> Map</h3>
        </template>

        <template slot="body">
            <div class="map">
                <vl-map :load-tiles-while-animating="true" :load-tiles-while-interacting="true">
                    <vl-view :center="[ 100.4833, 13.7500 ]" :zoom="5" :rotation="0" />

                    <vl-layer-tile>
                        <vl-source-osm />
                    </vl-layer-tile>
                </vl-map>
            </div>
        </template>

        <template slot="footer">
            Test footer
        </template>
    </info-box>
</template>
<script>
  import InfoBox from './Shared/InfoBox'

  export default {
    components: {
      InfoBox
    },
    props: {
      accountList: {
        type: Array,
        default: () => {
          return []
        }
      }
    }
  }
</script>

from vuelayers.

ton212 avatar ton212 commented on May 15, 2024

I tried init a new Vue project using vue-cli and webpack template without test tools installed. Then I install Vuelayers by npm install -S vuelayers.

Here is my main.js

// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import VueLayers from 'vuelayers'
// import VueLayers styles, needs css-loader
import 'vuelayers/lib/style.css'
// register all vl-* components
Vue.use(VueLayers)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})

This is my App.vue

<template>
  <div id="app">
    <vl-map :load-tiles-while-animating="true" :load-tiles-while-interacting="true">
      <vl-view :center="[ 100.4833, 13.7500 ]" :zoom="5" :rotation="0" />

      <vl-layer-tile>
          <vl-source-osm />
      </vl-layer-tile>
    </vl-map>
  </div>
</template>
<script>
export default {
  name: 'app'
}
</script>

The issue still persists.

Uncaught (in promise) TypeError: e.map(...).debounceTime is not a function
    at VueComponent.R (index.umd.min.js?9289:11)
    at VueComponent.subscribeAll (index.umd.min.js?9289:11)
    at VueComponent.boundFn [as subscribeAll] (vue.esm.js?efeb:187)
    at VueComponent.mount (index.umd.min.js?9289:11)
    at boundFn (vue.esm.js?efeb:186)
    at <anonymous>

from vuelayers.

ghettovoice avatar ghettovoice commented on May 15, 2024

Ok, I'll try to install same project soon

from vuelayers.

ghettovoice avatar ghettovoice commented on May 15, 2024

I already draft the new version 0.7.2. Try to upgrade and check if issue is still exists.
Thank you for your bug report!

from vuelayers.

ton212 avatar ton212 commented on May 15, 2024

I upgraded the library, and it all seem working now :)

from vuelayers.

ghettovoice avatar ghettovoice commented on May 15, 2024

Good! So I close this

from vuelayers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.