Skip to content

Commit 662c3ce

Browse files
committed
Update OpenLayers to 8.1.0
1 parent 9fb773e commit 662c3ce

File tree

7 files changed

+25
-231
lines changed

7 files changed

+25
-231
lines changed

examples/contextmenu.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v7.1.0/ol.css" />
6+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v8.1.0/ol.css" />
77
<link rel="stylesheet" href="../dist/ol-contextmenu.css" />
88
<link rel="stylesheet" href="contextmenu.css" />
99
</head>
1010
<body>
1111
<div id="map" tabindex="0"></div>
12-
<script src="https://cdn.jsdelivr.net/npm/ol@v7.1.0/dist/ol.js"></script>
12+
<script src="https://cdn.jsdelivr.net/npm/ol@v8.1.0/dist/ol.js"></script>
1313
<script src="../dist/ol-contextmenu.iife.js"></script>
1414
<script src="contextmenu.js"></script>
1515
</body>

examples/my-project-with-ol-contextmenu/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"vite": "^3.1.3"
1414
},
1515
"dependencies": {
16-
"ol": "^7.1.0",
16+
"ol": "^8.1.0",
1717
"ol-contextmenu": "latest"
1818
}
1919
}
+9-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<meta charset="utf-8" />
5-
<link
6-
rel="stylesheet"
7-
href="https://cdn.jsdelivr.net/npm/[email protected]/ol.css"
8-
/>
9-
</head>
10-
<body>
11-
<div id="map"></div>
12-
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ol.js"></script>
13-
<script src="dist/bundle.js"></script>
14-
</body>
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/ol.css" />
6+
</head>
7+
<body>
8+
<div id="map"></div>
9+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ol.js"></script>
10+
<script src="dist/bundle.js"></script>
11+
</body>
1512
</html>

examples/my-project-with-webpack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"webpack-cli": "^4.10.0"
1717
},
1818
"dependencies": {
19-
"ol": "^7.1.0",
19+
"ol": "^8.1.0",
2020
"ol-contextmenu": "latest"
2121
}
2222
}

index.html

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link
6-
rel="stylesheet"
7-
href="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@main/dist/en/v7.0.0/legacy/ol.css"
8-
/>
9-
<script src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@main/dist/en/v7.0.0/legacy/ol.js"></script>
5+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/ol.css" />
6+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ol.js"></script>
107
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
118
<title>Custom Context Menu for Openlayers</title>
129
<style>

0 commit comments

Comments
 (0)