-
Notifications
You must be signed in to change notification settings - Fork 0
/
mpf_ti_pct.html
187 lines (121 loc) · 5.77 KB
/
mpf_ti_pct.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
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html>
<html>
<head>
<title>Imoveis Rurais em Terras Indigenas e Quilombos</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ==" crossorigin=""/>
<link rel="stylesheet" href="../css/leaflet.wmslegend.css"/>
<link rel="stylesheet" href="../css/leaflet.zoomdisplay.css"/>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw==" crossorigin=""></script>
<script src="../js/leaflet.zoomdisplay.js"></script>
<script src="../js/leaflet.wmslegend.js"></script>
<style>
html, body, #map {
height: 100%;
width: 100%;
background: white;
}
</style>
</head>
<body>
<div id='map'></div>
<script>
var cnfp = L.tileLayer.wms('http://sistemas.florestal.gov.br/geoserver/CNFP_orig/wms?', {
layers:'CNFP_orig:cnfp2017_final',
transparent:true,
format: 'image/png'
});
var car = L.tileLayer.wms('http://sistemas.florestal.gov.br/geoserver/CNFP_orig/wms?', {
layers:'CNFP_orig:atlas_26_imovel',
transparent:true,
format: 'image/png'
});
var estados = L.tileLayer.wms('http://sistemas.florestal.gov.br/geoserver/CNFP_orig/wms?', {
layers:'CNFP_orig:sicar_uf2015',
transparent:true,
format: 'image/png'
});
var municipios = L.tileLayer.wms('http://sistemas.florestal.gov.br/geoserver/CNFP_orig/wms?', {
layers:'CNFP_orig:sicar_munic2015',
transparent:true,
format: 'image/png'
});
var quilombos = L.tileLayer.wms('http://sistemas.florestal.gov.br/geoserver/CNFP_orig/wms?', {
layers:'CNFP_orig:orig_quilombo',
transparent:true,
format: 'image/png'
});
var imovel_ti = L.tileLayer.wms('http://sistemas.florestal.gov.br/geoserver/CNFP_orig/wms?', {
layers:'CNFP_orig:mpf_funai_imoveis',
transparent:true,
format: 'image/png'
});
var imovel_pct = L.tileLayer.wms('http://sistemas.florestal.gov.br/geoserver/CNFP_orig/wms?', {
layers:'CNFP_orig:mpf_quilombo_imoveis',
transparent:true,
format: 'image/png'
});
var cnfp_ti = L.tileLayer.wms('http://sistemas.florestal.gov.br/geoserver/CNFP_orig/wms?', {
layers:'CNFP_orig:cnfp2017_ti',
transparent:true,
format: 'image/png'
});
var streets = L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
maxZoom: 20,
attribution: ' Serviço Florestal Brasileiro <a href="www.florestal.gov.br">SFB</a>'+' Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
'Imagery © <a href="http://mapbox.com">Mapbox</a>' ,
id: 'mapbox.streets'
});
var grayscale = L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
maxZoom: 20,
attribution: ' Serviço Florestal Brasileiro <a href="www.florestal.gov.br">SFB</a>'+' Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
'Imagery © <a href="http://mapbox.com">Mapbox</a>' ,
id: 'mapbox.light'
});
var map = L.map('map', {
center: [-15, -55],
zoom: 5,
minZoom: 2,
maxZoom: 20,
layers: [grayscale, streets]
});
var baseLayers = {
"OSM - Ruas": streets,
"OSM-Tons de Cinza": grayscale,
};
var overlays = {
"Quilombos INCRA": quilombos,
"Terras Indígenas FUNAI": cnfp_ti,
"CNFP-Flor.Públicas 2017": cnfp,
"CAR - Imóveis Rurais" : car,
"IBGE-Limites Estaduais": estados,
"IBGE-Limites Municipais": municipios,
"Imoveis Sobre TI": imovel_ti,
"Imoveis Sobre Quilombo": imovel_pct,
};
var logo = L.control({position: 'topright'});
logo.onAdd = function (map) {
var div = L.DomUtil.create('div', 'logo');
div.innerHTML = "<a href='http://www.florestal.gov.br'><img src='http://sistemas.florestal.gov.br/mapas/logosfb_p.png' height='50px'/></a>";
return div;
};
logo.addTo(map);
L.control.layers(baseLayers, overlays).addTo(map);
map.addLayer(quilombos);
map.addLayer(cnfp_ti);
map.addLayer(imovel_pct);
map.addLayer(imovel_ti);
uri = "http://sistemas.florestal.gov.br/geoserver/CNFP_orig/wms?service=WMS&version=1.1.0&REQUEST=GetLegendGraphic&FORMAT=image/png&WIDTH=30&HEIGHT=35&layer=CNFP_orig:orig_quilombo",
L.wmsLegend(uri);
uri = "http://sistemas.florestal.gov.br/geoserver/CNFP_orig/wms?service=WMS&version=1.1.0&REQUEST=GetLegendGraphic&FORMAT=image/png&WIDTH=30&HEIGHT=35&layer=CNFP_orig:mpf_funai_imoveis",
L.wmsLegend(uri);
uri = "http://sistemas.florestal.gov.br/geoserver/CNFP_orig/wms?service=WMS&version=1.1.0&REQUEST=GetLegendGraphic&FORMAT=image/png&WIDTH=30&HEIGHT=35&layer=CNFP_orig:imoveis",
L.wmsLegend(uri);
uri = "http://sistemas.florestal.gov.br/geoserver/CNFP_orig/wms?service=WMS&version=1.1.0&REQUEST=GetLegendGraphic&FORMAT=image/png&WIDTH=30&HEIGHT=35&layer=CNFP_orig:cnfp_2017",
L.wmsLegend(uri);
</script>
</body>
</html>