Closed rehamwael closed 5 years ago
Had the exact same problem this morning, and I had forgotten that I had switched projects and the leaflet.css wasn't imported.
Are you sure it is correctly imported ? I fixed it with "./node_modules/leaflet/dist/leaflet.css"
.
This is almost always a missing reference to the leaflet.css file as @denaillc mentioned. Since we haven't heard back after that suggestion, I'm going to close this issue.
Feel free to comment with an update. If you're still having the issue, I really need a working example that reproduces the issue. Otherwise, it's difficult to troubleshoot.
Im facing an issue with angular 8 I imported and install the package but the map not rendering fully in my site
html
I add this on the constructor this.leafletLayers = [tileLayer( 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom:7 , attribution: '...'})]; this.mapCenter = latLng(64.805606, 9.910027); this.zoomLevel=5;
also I included the style here "node_modules/leaflet/dist/leaflet.css" in angular.json file