Fixed map loading (#240)
* Fixed fonts * Fixed assets * Fixed logo in emails * Switched to immediate email delivery * Fixed prod emails and added deployment tasks * Fixed deployments * Updated README * Added Bike Collectives Core to README * Fixed issue with map loading * Fixed issue with map loading
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user