[Vuejs]-Vue // How to point to assets folder from js method?

0👍

To refer file from assets folder use @. Your image path, should look like this:

<img src="@/assets/m/m2.png">

0👍

The way that worked for me is to put the images in a folder in the /public directory, then set the imagePath to that folder. So you’d have:

public
  map-cluster-images
    m1.png
    m2.png
    m3.png 
    .....

And then when you initiate the MarkerClusterer:

imagePath: '/map-cluster-images/m'
👤Jpod

Leave a comment