[Vuejs]-Leafletjs + Vue.js: Too few tiles are requested

1👍

You need to load the leaflet.css file too. So, if you have main.scss just import the next line

@import "node_modules/leaflet/dist/leaflet.css";

or in your index.html add a script tag like this

<style src='node_modules/leaflet/dist/leaflet.css'></style>

0👍

Okay easy enough: I had to import the leaflet styles too to make this work properly.

Inside my component, I embedded those styles via the style tag

<style src='leaflet/dist/leaflet.css'></style>
👤suben

Leave a comment