-
Notifications
You must be signed in to change notification settings - Fork 14
/
adv-01.html
50 lines (48 loc) · 3.84 KB
/
adv-01.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<!--[if lt IE 7]><html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]><html class="lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]><html class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Idescat Visual sample page</title>
<link href="../visual.css" rel="stylesheet" type="text/css" />
<script src="../lazyvisual.js"></script>
<script src="../visual.setup.js"></script>
<style type="text/css">
path {
display: none;
}
path.c0 {
display: inline;
fill: rgb(27, 62, 102);
}
.visual .VisualJSarea {
stroke: #fff;
}
</style>
</head>
<body>
<div id="visual" class="visual"></div>
<script>
visual({
show: false, //Don't draw the map: the callback function will take care of it
callback: function(){
//Change some features of the "mun" map
var map=VisualJS.map.mun;
map.area=[420,295];
map.scale=11100;
map.center=[1.71,42.31];
//Draw the map
VisualJS.chart();
},
title: "Advanced example: Selecting a fragment of a map",
footer: "Note: High-mountain municipalities of Catalonia.",
type: "cmap",
by: "mun",
data: [{id: "080116"}, {id: "080168"}, {id: "080229"}, {id: "080240"}, {id: "080459"}, {id: "080497"}, {id: "080500"}, {id: "080522"}, {id: "080575"}, {id: "080787"}, {id: "080804"}, {id: "080924"}, {id: "080930"}, {id: "080996"}, {id: "081304"}, {id: "081326"}, {id: "081424"}, {id: "081445"}, {id: "081666"}, {id: "081751"}, {id: "081770"}, {id: "081884"}, {id: "081901"}, {id: "082166"}, {id: "082554"}, {id: "082687"}, {id: "082938"}, {id: "082994"}, {id: "083089"}, {id: "089030"}, {id: "170062"}, {id: "170101"}, {id: "170195"}, {id: "170216"}, {id: "170242"}, {id: "170366"}, {id: "170372"}, {id: "170391"}, {id: "170433"}, {id: "170464"}, {id: "170617"}, {id: "170694"}, {id: "170789"}, {id: "170806"}, {id: "170828"}, {id: "170849"}, {id: "170911"}, {id: "170947"}, {id: "170963"}, {id: "170985"}, {id: "170998"}, {id: "171058"}, {id: "171077"}, {id: "171096"}, {id: "171122"}, {id: "171143"}, {id: "171254"}, {id: "171334"}, {id: "171349"}, {id: "171390"}, {id: "171411"}, {id: "171450"}, {id: "171479"}, {id: "171498"}, {id: "171544"}, {id: "171616"}, {id: "171621"}, {id: "171655"}, {id: "171674"}, {id: "171707"}, {id: "171772"}, {id: "171833"}, {id: "171848"}, {id: "171851"}, {id: "171925"}, {id: "172001"}, {id: "172018"}, {id: "172060"}, {id: "172076"}, {id: "172082"}, {id: "172240"}, {id: "250019"}, {id: "250058"}, {id: "250175"}, {id: "250241"}, {id: "250254"}, {id: "250306"}, {id: "250313"}, {id: "250328"}, {id: "250390"}, {id: "250432"}, {id: "250447"}, {id: "250450"}, {id: "250518"}, {id: "250576"}, {id: "250595"}, {id: "250616"}, {id: "250637"}, {id: "250642"}, {id: "250714"}, {id: "250753"}, {id: "250772"}, {id: "250827"}, {id: "250864"}, {id: "250870"}, {id: "250886"}, {id: "250899"}, {id: "250984"}, {id: "251001"}, {id: "251116"}, {id: "251155"}, {id: "251214"}, {id: "251235"}, {id: "251240"}, {id: "251266"}, {id: "251272"}, {id: "251288"}, {id: "251291"}, {id: "251364"}, {id: "251399"}, {id: "251403"}, {id: "251462"}, {id: "251484"}, {id: "251497"}, {id: "251517"}, {id: "251556"}, {id: "251615"}, {id: "251636"}, {id: "251654"}, {id: "251667"}, {id: "251673"}, {id: "251713"}, {id: "251734"}, {id: "251752"}, {id: "251790"}, {id: "251832"}, {id: "251850"}, {id: "251863"}, {id: "251902"}, {id: "251930"}, {id: "251961"}, {id: "252017"}, {id: "252022"}, {id: "252038"}, {id: "252075"}, {id: "252081"}, {id: "252094"}, {id: "252154"}, {id: "252213"}, {id: "252271"}, {id: "252347"}, {id: "252398"}, {id: "252430"}, {id: "252458"}, {id: "252477"}, {id: "259010"}, {id: "259031"}, {id: "259046"}, {id: "259062"}, {id: "259084"}, {id: "259097"}, {id: "259101"}, {id: "259139"}]
});
</script>
</body>
</html>