gm1.php
4.24 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Category" content="i3Geo Mapa interativo MMA geoprocessamento sig mobile">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>i3GEO - Google Maps</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?libraries=drawing,geometry"></script>
<script type="text/javascript" src="../classesjs/i3geo.js"></script>
<link rel="stylesheet" type="text/css" href="../css/black.css">
<style>
.BtLegend {
left: 10px;
top: 0px;
z-index: 10000;
}
.BtLayerList{
display: none;
-moz-user-select: none;
background-clip: padding-box;
background-color: #fff;
color: #000;
direction: ltr;
font-family: Roboto,Arial,sans-serif;
font-size: 11px;
font-weight: 500;
overflow-x: hidden;
overflow-y: hidden;
padding: 8px;
text-align: left;
}
.BtLegendHeader {
-moz-user-select: none;
background-clip: padding-box;
background-color: #fff;
border-bottom-left-radius: 2px;
border-top-left-radius: 2px;
box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3);
color: #000;
direction: ltr;
font-family: Roboto,Arial,sans-serif;
font-size: 11px;
font-weight: 500;
min-width: 28px;
overflow-x: hidden;
overflow-y: hidden;
padding-bottom: 8px;
padding-left: 8px;
padding-right: 8px;
padding-top: 8px;
position: relative;
text-align: center;
margin: 20px 10px 1px -10px;
cursor: pointer;
}
.botoesLegendaFlutuante {
display: none;
}
</style>
</head>
<body id="i3geo" style='background: white;'>
<div id="contemImg" style="height:100%;width:100%">
<div id=googlemapsdiv style="position: relative;height:100%;width:100%"></div>
</div>
<script type="text/javascript">
i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo";
i3GEO.configura.mashuppar = "";
i3GEO.Interface.ATUAL = "googlemaps";
i3GEO.Interface.IDCORPO = "contemImg";
i3GEO.configura.diminuiyN = 0;
i3GEO.configura.diminuiyM = 0;
i3GEO.configura.autotamanho = false;
i3GEO.Interface.openlayers.TILES = true;
i3GEO.cria();
i3GEO.configura.mapaRefDisplay = "none";
i3GEO.configura.guardaExtensao = false;
i3GEO.barraDeBotoes.TIPO = "";
i3GEO.ajuda.ATIVAJANELA = false;
i3GEO.arvoreDeCamadas.VERIFICAABRANGENCIATEMAS = false;
i3GEO.arvoreDeCamadas.MOSTRALISTAKML = false;
i3GEO.arvoreDeCamadas.MOSTRATITULO = false;
i3GEO.mapa.AUTORESIZE = true;
//nao marca o centro do mapa
i3GEO.navega.marcaCentroDoMapa = function(){};
i3GEO.janela.ativaAlerta();
i3GEO.janela.ESTILOAGUARDE = "nenhum";
//i3GEO.Interface.googlemaps.TIPOMAPA = "satellite";
i3GEO.finaliza = function(){
};
i3GEO.finalizaAPI = function(){
//monta o botao para mostrar a legenda
var divMap = i3GeoMap.getDiv();
var container = document.createElement("div");
container.className = "BtLegend";
var layerList = document.createElement("div");
layerList.id = "arvoreDeCamadas";
layerList.className = "BtLayerList i3GEOarvCam";
var h = document.createElement("div");
h.innerHTML = "<div class='BtLegendHeader'>Legenda</div>";
h.alt = "Legenda das camadas do mapa";
h.style.width = "60px";
google.maps.event.addDomListener(h, 'click', function() {
//i3GEO.mapa.legendaHTML.libera("sim");
if(layerList.style.display === "block"){
layerList.style.display = "none";
}
else{
layerList.style.display = "block";
i3GEO.arvoreDeCamadas.inicia("arvoreDeCamadas");
}
return false;
});
google.maps.event.addDomListener(h, 'mouseover', function(evt) {
evt.stopPropagation();
});
google.maps.event.addDomListener(container, 'mouseover', function(evt) {
evt.stopPropagation();
});
YAHOO.util.Event.addListener(container, "click", YAHOO.util.Event.stopPropagation);
container.appendChild(h);
container.appendChild(layerList);
i3GeoMap.controls[google.maps.ControlPosition.TOP_LEFT].push(container);
};
i3GEO.inicia();
</script>
</body>
</html>