-
Notifications
You must be signed in to change notification settings - Fork 0
/
sfb_cnfp_2017.html
104 lines (65 loc) · 2.79 KB
/
sfb_cnfp_2017.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
<!DOCTYPE html>
<html>
<head>
<title>CNFP 2017</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="docs/images/favicon.ico" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<!-- <link rel="stylesheet" href="../css/leaflet.css"/> -->
<link rel="stylesheet" href="../mapas/css/leaflet.wmslegend.css"/>
<link rel="stylesheet" href="../mapas/css/leaflet.zoomdisplay.css"/>
<style>
body {
padding: 0;
margin: 0;
}
html, body, #map {
height: 100%;
width: 100%;
background: white;
}
</style>
</head>
<body>
<div id="map"> </div>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<!-- <script src="../js/leaflet.js"></script> -->
<script src="../mapas/js/leaflet.zoomdisplay.js"></script>
<script src="../mapas/js/leaflet.wmslegend.js"></script>
<script type="text/javascript">
var map = L.map('map', {
center: [-15, -55],
zoom: 5,
minZoom: 2,
maxZoom: 18
});
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
maxZoom: 18,
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'
}).addTo(map);
var wmsLayer = L.tileLayer.wms('http://sistemas.florestal.gov.br/geoserver/CNFP_orig/wms?', {
layers:'CNFP_orig:cnfp_2017',
transparent:true,
format: 'image/png'
}).addTo(map);
var concLayer = L.tileLayer.wms('http://sistemas.florestal.gov.br/geoserver/CNFP_orig/wms?', {
layers:'CNFP_orig:cnfp2016_concessoes',
transparent:true,
format: 'image/png'
}).addTo(map);
var upaLayer = L.tileLayer.wms('http://sistemas.florestal.gov.br/geoserver/CNFP_orig/wms?', {
layers:'CNFP_orig:upas_exploradas_201806',
transparent:true,
format: 'image/png'
}).addTo(map);
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);
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:cnfp2016_concessoes",
L.wmsLegend(uri);
</script>
</body>
</html>