-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayers-example.html
More file actions
31 lines (31 loc) · 1.01 KB
/
layers-example.html
File metadata and controls
31 lines (31 loc) · 1.01 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Mapa de zonas de riesgo de inundación en mi pueblo</title>
</head>
<body>
<script src="//sitna.navarra.es/api/"></script>
<div id="mapa"></div>
<script>
const myMap = new SITNA.Map("mapa", {
initialExtent: [630848.365, 4731508.07, 637652.365, 4736656.07],
baseLayers: [SITNA.Consts.layer.IDENA_CARTO],
workLayers: [
{
id: "zonas_riesgo",
url: "//idena.navarra.es/ogc/wms/",
layerNames: "IDENA:HIDROG_Pol_RiesgosPOT",
title: "Zonas de riesgo de inundación"
},
{
id: "parcelas",
type: SITNA.Consts.layerType.VECTOR,
url: "//sitna.github.io/getting-started/data/plots.json",
title: "Parcelas rústicas"
}
]
});
</script>
</body>
</html>