Map based on Leaflet and AngularJS not loaded correctly
问题 My map based on Leaflet and AngularJS is not loading correctly. I do not know what's going on but the maps tiles are not laid out as they should be. This is the base map: This is my code: function setMapPosition(){ $scope.center = { lat: 51.505, lng: -0.09, zoom: 8 }; $scope.defaults= { scrollWheelZoom: false }; $scope.tiles = 'openstreetmap'; } 回答1: This problem often occurs due to resizing of any parent container while the map is already initialized. In order to tell the map that there was