title: How can I use local json file to create a heat map (Bing Maps)?
body: <p>I'm trying to create a heatmap in Bing Maps from local data stored in a geoJson file, but I can't make it work... Oddly enough, there is absolutely no issue if that exact same file is online. Here is the script I'm using:</p>
  
  <pre><code>&lt;script type='text/javascript'&gt;
  function GetMap() {
      var map = new Microsoft.Maps.Map('#myMap', {
          credentials: 'my_bing_maps_key_(not_forgotten)',
          zoom: 4
      });
  
      //Load the GeoJSON and HeatMap modules
      Microsoft.Maps.loadModule(['Microsoft.Maps.GeoJson', 'Microsoft.Maps.HeatMap'], function () {
          // Earthquake data in the past 30 days from usgs.gov
          Microsoft.Maps.GeoJson.readFromUrl('data/all_month.geojson', function (shapes) {
              var heatMap = new Microsoft.Maps.HeatMapLayer(shapes, { radius: 5 });
              map.layers.insert(heatMap);
          });
      });
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>With it, no heatmap layer appears. But when I simply replace it by this, everything is perfectly fine:</p>
  
  <pre><code>&lt;script type='text/javascript'&gt;
  function GetMap() {
      var map = new Microsoft.Maps.Map('#myMap', {
          credentials: 'my_bing_maps_key_(not_forgotten)',
          zoom: 4
      });
  
      //Load the GeoJSON and HeatMap modules
      Microsoft.Maps.loadModule(['Microsoft.Maps.GeoJson', 'Microsoft.Maps.HeatMap'], function () {
          // Earthquake data in the past 30 days from usgs.gov
          Microsoft.Maps.GeoJson.readFromUrl('http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.geojson', function (shapes) {
              var heatMap = new Microsoft.Maps.HeatMapLayer(shapes, { radius: 5 });
              map.layers.insert(heatMap);
          });
      });
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>I really don't understand what's the problem here.</p>
  
  <p>Thanks a lot !</p>