I am integrating a leaflet map into my site built with meteor, and meteor's templating engine blaze.
I am experiencing very strange begaviour in regards to the map size, and what it looks like when dragging and zooming.
I initialize the map like this:
var mymap = L.map('leaflet-map').setView([40.712, -74.227], 5);
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
maxZoom: 15,
minZoom: 1,
attribution: 'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, ' +
'<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
'Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
id: 'mapbox.streets'
}).addTo(mymap);
HTML:
<div id="map-div">
<div id="map-inner-div">
<div id="leaflet-map"></div>
</div>
</div>
CSS:
#map-div {
height:300px;
width:500px;
}
When I load the webpage I get a single tile which is not the size of it's parent div.
If I drag the tile or zoom, it will go all over the place, with other tiles randomly appearing.
I don't get any error messages.
My hypothesis is that the map's width and height are defaulting to the full screen, but it only sporadically loads various tiles.
If anyone even has any suggestions for search terms that might lead me down the right path that would be much appreciated, because I am not even sure how to describe what I am seeing.

