Questions tagged [vue2leaflet]

Vue components for LeafletJS. Homepage.

47 questions
1
vote
0 answers

How to set a Class in a vue2leaflet polygon?

How can I set a class in a vue2leaflet component? I made a rectangle in a sample and I tried to set another class to it, so I wrote class = "myClass" and :class="myClass" in the tag and it doesn't work, I've ispected the rectangle with the browser…
Leonardi
  • 43
  • 1
  • 6
1
vote
0 answers

How use Leaflet.awesome-markers in a VUE SPA using vue2-leaflet

I would like to insert “custom” markers into a vue2-leaflet component and I found a very interesting library leaflet.awesome.marker that is fitted for the scope but I don’t know how to import an external library such as this into VUE and how/if it…
EanX
  • 475
  • 4
  • 21
1
vote
1 answer

How to overwrite the icon when using vue2-leaflet-markercluster (singleMarkerMode)?

When using a icon in singleMarkerMode, it will not work properly link But when remove , it will work normally is it possible use both together? 28/02 In code 1, I think refreshClusters() will consider disableClusteringAtZoom. So I tried…
1
vote
1 answer

Rendering a vue2leaflet map in jsfiddle via CDN

I am trying to render a Leaflet map using Vue2Leaflet in a jsfiddle so I can get help with a specific problem but I can't even get it to render properly in the trivial case. I have already looked up how to load libraries via CDN in jsfiddle and a…
wfgeo
  • 2,716
  • 4
  • 30
  • 51
1
vote
4 answers

How to display leaflet map properly on NuxtJS

I'm using NuxtJS and I use the library https://vue2-leaflet.netlify.app but the map doesn't show up properly. Here's my code, and a screen of the result : map.vue :