<!DOCTYPE html>
<html>
<head>
<title>OL WMS Integration</title>
<link rel="stylesheet" href="https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/css/ol.css" type="text/css">
<script src="https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/build/ol.js"></script>
</head>
<body>
<div id="map" class="map"></div>
<script>
var layers = [
new ol.layer.Tile({
source: new ol.source.OSM()
}),
new ol.layer.Tile({
extent: [-7926000, 5190846, -7895123, 5225000],
source: new ol.source.TileWMS({
url: 'http://159.65.146.249:8001/geoserver/wms',
params: {
'LAYERS': 'geonode:skymet_location,geonode:river_p',
'TILED': true
},
serverType: 'geoserver'
})
})
];
var map = new ol.Map({
layers: layers,
target: 'map',
view: new ol.View({
center: [-7910000, 5210000],
zoom: 11
})
});
</script>
</body>
</html>