<html lang="en">
<head>
<meta charset="utf-8">
<style>
#map {
width: 100%;
height: 400px;
}
</style>
<title>MSC GeoMet Simple WMS Leaflet Example</title>
<meta name="description" content="MSC GeoMet OpenLayers Example">
<meta name="author" content="CCMEP">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css" integrity="sha256-kLaT2GOSpHechhsozzB+flnD+zUyjE2LlfWPgU04xyI=" crossorigin="" />
<script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js" integrity="sha256-WBkoXOwTeyKclOHuWtc+i2uENFpDZ9YPdf5Hf+D7ewM=" crossorigin=""></script>
</head>
<body>
<div id="map"></div>
<script src="./tutorial.js"></script>
</body>
</html>
/* Name of the file: tutorial.js */
let map = L.map("map").setView([57, -97], 3);
let OpenStreetMap_Mapnik = L.tileLayer(
"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
{
maxZoom: 19,
attribution:
'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}
).addTo(map);
let wmsLayer = L.tileLayer
.wms("https://geo.weather.gc.ca/geomet?", {
layers: "GDPS.ETA_TT",
version: "1.3.0",
opacity: 0.5
})
.addTo(map);
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.