title: Leaflet only loads one tile
body: <p>I have a problem with Leaflet that actually holds up my whole work. For some reasons I can not explain, the UI of Leaflet is correctly loaded in my Intel XDK app, but there is only one map tile loaded - the same code works in another test app! Now, that I tried everything I could do, I hope that someone here can solve my problem.</p>
  
  <p>For better understanding, here is the code in my leaflet.js (it isn't <em>the</em> leaflet.js, because I'm using the leaflet-src.js as script) and a screenshot of the map window of the app.</p>
  
  <pre><code>function initLeaflet() {
  document.getElementById("map").setAttribute("style", "height:" + window.innerHeight + "px; width:" + window.innerWidth + "px;");
  var map = L.map('map');
  
  L.tileLayer('https://{s}.tiles.mapbox.com/v3/{id}/{z}/{x}/{y}.png', {
      maxZoom: 18,
      attribution: 'Map data &amp;copy; &lt;a href="http://openstreetmap.org"&gt;OpenStreetMap&lt;/a&gt; contributors, ' +
          '&lt;a href="http://creativecommons.org/licenses/by-sa/2.0/"&gt;CC-BY-SA&lt;/a&gt;, ' +
          'Imagery © &lt;a href="http://mapbox.com"&gt;Mapbox&lt;/a&gt;',
      id: 'examples.map-i875mjb7'
  }).addTo(map);
  
  map.on('locationfound', onLocationFound);
  map.on('locationerror', onLocationError);
  
  map.locate({setView: true, maxZoom: 16});
  
  map.on('click', onMapClick);
  }
  
  function onLocationFound(e) {
  var radius = e.accuracy / 2;
  
  L.marker(e.latlng).addTo(map)
  .bindPopup("Position: " + e.latlng + " Genauigkeit " + radius ).openPopup();
  
  L.circle(e.latlng, radius).addTo(map);
  }
  
  function onLocationError(e) {
  alert(e.message);
  }
  
  
  function onMapClick(e) {
  marker = new L.marker(e.latlng, {id:uni, icon:redIcon, draggable:'true'});
  marker.on('dragend', function(event){
      var marker = event.target;
      var position = marker.getLatLng();
      alert(position);
      marker.setLatLng([position],{id:uni,draggable:'true'}).bindPopup(position).update();
  });
  map.addLayer(marker);
  }     
  
  //var x = document.getElementById("demo");
  
  function getLocation() {
  if (navigator.geolocation) {
      navigator.geolocation.getCurrentPosition(showPosition);
  } else { 
      //x.innerHTML = "Geolocation is not supported by this browser.";
  }
  }
  
  function showPosition(position) {
  //x.innerHTML = "Latitude: " + position.coords.latitude + 
  //"&lt;br&gt;Longitude: " + position.coords.longitude;    
  }
  </code></pre>
  
  <p><a href="http://imgur.com/exOUZuT" rel="noreferrer">http://imgur.com/exOUZuT</a></p>