Skip to content

Commit

Permalink
Merge pull request #277 from goodotcom/hires
Browse files Browse the repository at this point in the history
High resolution map
  • Loading branch information
markmarkoh committed Mar 14, 2016
2 parents d712cfc + c395a1d commit b0d038e
Show file tree
Hide file tree
Showing 3 changed files with 295,584 additions and 1 deletion.
23 changes: 22 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ module.exports = function(grunt) {
to: '<%= grunt.file.read("src/js/data/world.topo.json") %>'
}]
},
worldHiRes: {
src: ['src/js/datamaps.js'],
dest: 'src/rel/datamaps.world.hires.js',
replacements: [{
from: '\'__WORLD__\'',
to: '<%= grunt.file.read("src/js/data/world.hires.topo.json") %>'
}]
},
usa: {
src: ['src/js/datamaps.js'],
dest: 'src/rel/datamaps.usa.js',
Expand All @@ -29,6 +37,17 @@ module.exports = function(grunt) {
from: '\'__WORLD__\'',
to: '<%= grunt.file.read("src/js/data/world.topo.json") %>'
}]
},
allHiRes: {
src: ['src/js/datamaps.js'],
dest: 'src/rel/datamaps.all.hires.js',
replacements: [{
from: '\'__USA__\'',
to: '<%= grunt.file.read("src/js/data/usa.topo.json") %>'
}, {
from: '\'__WORLD__\'',
to: '<%= grunt.file.read("src/js/data/world.hires.topo.json") %>'
}]
}
},
watch: {
Expand All @@ -41,8 +60,10 @@ module.exports = function(grunt) {
dist: {
files: {
'src/rel/datamaps.world.min.js': ['src/rel/datamaps.world.js'],
'src/rel/datamaps.world.hires.min.js': ['src/rel/datamaps.world.hires.js'],
'src/rel/datamaps.usa.min.js': ['src/rel/datamaps.usa.js'],
'src/rel/datamaps.all.min.js': ['src/rel/datamaps.all.js'],
'src/rel/datamaps.all.hires.min.js': ['src/rel/datamaps.all.hires.js'],
'src/rel/datamaps.none.min.js': ['src/js/datamaps.js']
}
}
Expand Down Expand Up @@ -87,4 +108,4 @@ module.exports = function(grunt) {
grunt.registerTask('dev', ['replace']);
grunt.registerTask('build', ['replace', 'uglify:dist', 'copy', 'sync']);

};
};
Loading

0 comments on commit b0d038e

Please sign in to comment.