vue-mapbox icon indicating copy to clipboard operation
vue-mapbox copied to clipboard

marker is running around with zoom

Open yipcma opened this issue 6 years ago • 10 comments

yipcma avatar Jun 15 '18 11:06 yipcma

Can you provide some additional info or code examples? I don't understand what you really mean.

soal avatar Jun 24 '18 11:06 soal

The component have cluster function?

santiblanko avatar Jun 24 '18 15:06 santiblanko

By default no as in Mapbox GL JS. But you can use Supercluster. Article about it

soal avatar Jun 24 '18 15:06 soal

@yipcma I think I figured out what's causing this. Originally I installed the latest mapbox-gl which was 0.46.0-beta.1, and was getting that behavior. I installed [email protected], and it seems to have fixed that.

fdhenard avatar Jun 25 '18 20:06 fdhenard

@fdhenard 0.46 is released now and I added new features (like marker dragging) in vue-mapbox 0.0.28. I didn't notice any issues, can you check it now, plz?

soal avatar Jun 25 '18 20:06 soal

@soal on [email protected] and [email protected] still happening, see screencast recording here http://g.recordit.co/st4lUf1pO1.gif

yipcma avatar Jun 26 '18 08:06 yipcma

I have the same problem with you in using this package on Nuxt.js, But I resolved the problem by adding <link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.46.0/mapbox-gl.css' rel='stylesheet' /> to the index.html or Nuxt.js adding the code below to nuxt-config.js file.

link: [
      {
        rel: 'stylesheet',
        href: 'https://api.tiles.mapbox.com/mapbox-gl-js/v0.46.0/mapbox-gl.css'
      }
]

jay7793 avatar Oct 28 '18 06:10 jay7793

Better option with Nuxt is you can have the css in the css: [] of nuxt.config.js

  /*
  ** Global CSS
  */
  css: [
    'mapbox-gl/dist/mapbox-gl.css',
  ],

vinayakkulkarni avatar Apr 16 '19 20:04 vinayakkulkarni

Also struggling with this on a vue/webpack/nodeJS project.

arunasank avatar Oct 15 '19 21:10 arunasank

Also struggling with this on a vue/webpack/nodeJS project.

Have you included the Mapbox gl CSS file?

horikx avatar Oct 22 '19 08:10 horikx