mirror of
https://github.com/aljazceru/twentyone-world.github.io.git
synced 2025-12-24 08:44:26 +01:00
style: cosmetics
This commit is contained in:
10
index.html
10
index.html
@@ -29,7 +29,7 @@ jsplugins:
|
||||
map.addLayer('countries', {
|
||||
id: 'bg',
|
||||
styles: {
|
||||
stroke: '#d8d6d4',
|
||||
stroke: '#000',
|
||||
'stroke-width': 6.15,
|
||||
'stroke-linejoin': 'round'
|
||||
}
|
||||
@@ -38,14 +38,14 @@ jsplugins:
|
||||
map.addLayer('countries', {
|
||||
title: function(d) { return d.name },
|
||||
styles: {
|
||||
stroke: '#333',
|
||||
fill: '#fff'
|
||||
stroke: '#222',
|
||||
fill: '#333'
|
||||
},
|
||||
mouseenter: function(d, path) {
|
||||
path.attr('fill', Math.random() < 0.5 ? '#c04' : '#04c');
|
||||
},
|
||||
mouseleave: function(d, path) {
|
||||
path.animate({ fill: '#f6f4f2' }, 1000);
|
||||
path.animate({ fill: '#333' }, 1000);
|
||||
},
|
||||
click: function(d, path) {
|
||||
console.log(d.iso);
|
||||
@@ -72,7 +72,7 @@ jsplugins:
|
||||
return '<h3>'+country.country_name+'</h3>'+country.nb_visits+' visits';
|
||||
},
|
||||
sortBy: 'radius desc',
|
||||
style: 'fill:#800; stroke: #fff; fill-opacity: 0.5;',
|
||||
style: 'fill:#F2A900; stroke: #000; fill-opacity: 0.5;',
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user