React-leaflet: Issue in map loading, its getting loaded in disarranged tiles out of which some tiles are blank.

Created on 11 May 2017  路  7Comments  路  Source: PaulLeCam/react-leaflet

Node version: 6.10.2
react-leaflet version: 1.1.6
leaflet version: 1.0.3
screenshot from 2017-05-11 15 12 26

All 7 comments

Please follow the issue template.

Getting this too

@neeraj022 make sure you include the leaflet CSS file and give the map height, <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css"> fixed it for me

Thanks...working for me now.. Didn't include leaflet.css in the css file.

How did you fix this @neeraj022 ?

@Roconda you need to add that link rel to your index.html, and also make sure you have this in your index.css:

.leaflet-container {
    height: 400px;
    width: 100%;
}

I spent the better half of a day trying to figure out what my issue was, @PaulLeCam the instructions need to be clearer to make sure you include the leaflet.css file.

import 'leaflet/dist/leaflet.css';

Was this page helpful?
0 / 5 - 0 ratings

Related issues

farahabdi picture farahabdi  路  3Comments

lambdakris picture lambdakris  路  3Comments

thenickcox picture thenickcox  路  4Comments

gane5h picture gane5h  路  3Comments

mrafei picture mrafei  路  4Comments