-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
77 lines (64 loc) · 2.8 KB
/
index.html
File metadata and controls
77 lines (64 loc) · 2.8 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!--
Copyright (c) 2025 - Luciano Lorencini - disponível em: https://github.com/luclorencini/mapaSvg.js
Licenciado sob a Licença MIT. Consulte o arquivo LICENSE para mais detalhes.
-->
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>mapaSvg.js - Mapa Interativo - Espírito Santo</title>
<link rel="stylesheet" href="style.css">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-0MB2G5WMX9"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-0MB2G5WMX9');
</script>
</head>
<body>
<div class="topbar">mapaSvg.js - Mapa Interativo do Espírito Santo - v1.1.1</div>
<div class="tela-dividida">
<div class="map-frame">
<div id="map-container"></div>
<div class="map-tip">
<div><strong>Dica:</strong></div>
<div>Arraste o mapa para movimentá-lo</div>
<div>Use a roda do mouse para dar zoom</div>
</div>
<div class="aviso-mobile">
<div>Para ver as opções de customização,</div>
<div>acesse via um computador.</div>
</div>
</div>
<div class="info-container">
<div class="destaque">
<h4>Fontes e documentação completa em:</h4>
<h4>
<a target="_blank" href="https://github.com/luclorencini/mapaSvg.js">https://github.com/luclorencini/mapaSvg.js</a>
</h4>
</div>
<h4>Customizações feitas neste exemplo</h4>
<p>Através de CSS e Javascript, você pode realizar várias customizações.</p>
<strong>Clique em um município para exibir alerta com seu nome e código IBGE</strong>
<p>Clique nos botões abaixo para ver exemplos:</p>
<button class="button-action" onclick="destacarGrandeVitoriaInterior()">Destacar Grande Vitória e Interior</button>
<button class="button-action" onclick="customizarColatina()">Customizar Colatina</button>
<button class="button-action" onclick="customizarCachoeiro()">Customizar Cachoeiro</button>
<button class="button-action" onclick="esconderTodosOsNomes()">Esconder o nome dos municípios</button>
<button class="button-action" onclick="exibirTodosOsNomes()">Exibir o nome dos municípios</button>
<button class="button-action" onclick="exibirApenasLinhares()">Exibir só Linhares e destacar com CSS</button>
<button class="button-action button-reset" onclick="window.location.reload();">RESET</button>
</div>
</div>
<div class="zoom-controls">
<button class="button-zoom" id="zoomInButton">Zoom In</button>
<button class="button-zoom" id="zoomOutButton">Zoom Out</button>
<button class="button-zoom" id="resetButton">Reset</button>
</div>
<script src="/dist/mapaSvg.js"></script>
<script src="script.js"></script>
</body>
</html>