Skip to content

Commit 8b9a609

Browse files
committed
rm hard topojson assets:
- use sane-topojson to grab topojson deps
1 parent 524b6dd commit 8b9a609

16 files changed

+3
-30
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
"node-sass": "^3.4.1",
8787
"right-now": "^1.0.0",
8888
"robust-orientation": "^1.1.3",
89+
"sane-topojson": "^1.2.0",
8990
"superscript-text": "^1.0.0",
9091
"through2": "^2.0.0",
9192
"tinycolor2": "1.1.2",

src/assets/geo_assets.js

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
exports.topojsons = {};
1+
var saneTopojson = require('sane-topojson');
22

3-
exports.topojsons['world_110m'] = require('./topojson/world_110m.json');
4-
exports.topojsons['africa_110m'] = require('./topojson/africa_110m.json');
5-
exports.topojsons['asia_110m'] = require('./topojson/asia_110m.json');
6-
exports.topojsons['europe_110m'] = require('./topojson/europe_110m.json');
7-
exports.topojsons['north-america_110m'] = require('./topojson/north-america_110m.json');
8-
exports.topojsons['south-america_110m'] = require('./topojson/south-america_110m.json');
9-
exports.topojsons['usa_110m'] = require('./topojson/usa_110m');
10-
11-
exports.topojsons['world_50m'] = require('./topojson/world_50m.json');
12-
exports.topojsons['africa_50m'] = require('./topojson/africa_50m.json');
13-
exports.topojsons['asia_50m'] = require('./topojson/asia_50m.json');
14-
exports.topojsons['europe_50m'] = require('./topojson/europe_50m.json');
15-
exports.topojsons['north-america_50m'] = require('./topojson/north-america_50m.json');
16-
exports.topojsons['south-america_50m'] = require('./topojson/south-america_50m.json');
17-
exports.topojsons['usa_50m'] = require('./topojson/usa_50m.json');
3+
exports.topojson = saneTopojson;

src/assets/topojson/africa_110m.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/assets/topojson/africa_50m.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/assets/topojson/asia_110m.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/assets/topojson/asia_50m.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/assets/topojson/europe_110m.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/assets/topojson/europe_50m.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/assets/topojson/north-america_110m.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/assets/topojson/north-america_50m.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)