Open yipcma opened 6 years ago
The component have cluster function?
By default no as in Mapbox GL JS. But you can use Supercluster. Article about it
@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 mapbox-gl@0.45.0, and it seems to have fixed that.
@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 on mapbox-gl@0.46 and vue-mapbox@0.29 still happening, see screencast recording here http://g.recordit.co/st4lUf1pO1.gif
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'
}
]
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',
],
Also struggling with this on a vue/webpack/nodeJS project.
Also struggling with this on a vue/webpack/nodeJS project.
Have you included the Mapbox gl CSS file?
Can you provide some additional info or code examples? I don't understand what you really mean.