-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathol.html
40 lines (40 loc) · 1.32 KB
/
ol.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
<!doctype html>
<html lang="en">
<head>
<link rel="stylesheet" href="https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/css/ol.css" type="text/css">
<style>
.map {
height: 600;
width: 100%;
}
</style>
<script src="https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/build/ol.js"></script>
<title>OpenLayers example</title>
</head>
<body>
<h2>MapServerless Map</h2>
This is an example of MapServer running as an AWS Lambda Function. Is it awesome? Is it an abomination? You decide.
<br>
Serverless Deployment <a href="https://github.com/bitner/mapserverless">https://github.com/bitner/mapserverless</a>
<br>
Mapserver AWS Lambda Layer <a href="https://github.com/bitner/mapserverless-layer">https://github.com/bitner/mapserverless-layer</a>
<div id="map" class="map"></div>
<script type="text/javascript">
var map = new ol.Map({
target: 'map',
layers: [
new ol.layer.Tile({
source: new ol.source.TileWMS({
params:{'LAYERS':'ADMIN,LAKES'},
url:'https://<server>/dev/?'
})
})
],
view: new ol.View({
center: ol.proj.fromLonLat([-90, 45]),
zoom: 3
})
});
</script>
</body>
</html>