Fixed issue with map loading

This commit is contained in:
LinguaFrancaTranslator
2017-07-24 09:41:08 -07:00
parent 9d883a4c05
commit 8322dc3c22
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -33,7 +33,7 @@
});
};
d3.json('/assets/world-110m.json', function(error, world) {
d3.json(document.getElementById('map').getAttribute('data-src'), function(error, world) {
if (error) {
throw error;
}
+1 -1
View File
@@ -5,7 +5,7 @@
- content_for :banner do
#header-title.map
%svg#map.loading{preserveAspectRatio: 'xMinYMin slice', viewBox: "0 0 1880 550"}
%svg#map.loading{preserveAspectRatio: 'xMinYMin slice', viewBox: "0 0 1880 550", data: { src: asset_path('world-110m.json') }}
#tooltip
%article