Lissy93 / twitter-sentiment-visualisation

🌍 Sentiment analysis over real-time social media data, rendering live charts to visualise trends
211 stars 68 forks source link

Heat map is broken #27

Closed Lissy93 closed 5 years ago

Lissy93 commented 5 years ago

Google Maps API has breaking changes, causing the map to not display

Heatmap

Lissy93 commented 5 years ago

This also is an API issue. Google Maps now requires an API key for a client-side embedded map. As per this example from the documentation:

  <script async defer
    src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap">
  </script>

Once you've got the API key, you need to enable Maps JavaScript API in the Google API's dashboard.

Once you've got your valid key, paste it as a parameter in this line: https://github.com/Lissy93/twitter-sentiment-visualisation/blob/a329b3f60e4362c3b026d8a2be77b506f29a8ec9/views/page_map.jade#L4