Team:ETH Zurich/project/overview/grid
From 2014.igem.org
(Difference between revisions)
Line 68: | Line 68: | ||
$('#mapTest').mapster({ | $('#mapTest').mapster({ | ||
fillColor: '2C2F3D', | fillColor: '2C2F3D', | ||
- | fillOpacity: 1 | + | fillOpacity: 1, |
- | + | showToolTip: true, | |
- | + | toolTipClose: ["tooltip-click", "area-click"], | |
- | + | areas: [ | |
- | + | { | |
- | + | key: "age", | |
- | + | toolTip: 'foo' | |
+ | } | ||
+ | ] | ||
}); | }); | ||
$(window).resize( | $(window).resize( | ||
- | function() | + | function() { onWindowResize(); }); |
- | + | ||
- | onWindowResize(); | + | |
- | + | ||
resize(true); | resize(true); | ||
}); | }); |