Skip to content

Commit e547919

Browse files
authored
Merge pull request #676 from openlayers/prepare_for_v2.5_release
Prepare for v2.5 release
2 parents 76d66b1 + 158bdba commit e547919

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
# v 2.5
3+
# v 2.5 - 2018-11-09
44

55
* Breaking changes
66
* Icons are now anchored as specified in the OpenLayers style.

examples/fillstyle.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ const vectorSource = new olSourceVector({
2424
});
2525

2626
const vectorLayer = new olLayerVector({
27-
source: vectorSource
27+
source: vectorSource,
28+
altitudeMode: 'clampToGround'
2829
});
2930

3031
const image = new Image();

examples/oldfashioned.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
<html>
22
<head>
33
<meta charset="UTF-8">
4-
<link rel="stylesheet" href="https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.1.3/css/ol.css" type="text/css">
4+
<link rel="stylesheet" href="https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/css/ol.css" type="text/css">
55
<link rel="stylesheet" href="../olcs.css" type="text/css">
66
<style>
77
#map { height: 300px; width: 500px }
88
</style>
9-
<script src="https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.1.3/build/ol.js"></script>
10-
<script src="../ol.js"></script>
9+
<script src="https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/build/ol.js"></script>
1110
<script src="../olcesium.js"></script>
1211
<script src="../node_modules/@camptocamp/cesium/Build/CesiumUnminified/Cesium.js"></script>
1312
</head>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ol-cesium",
3-
"version": "2.4.0",
3+
"version": "2.5.0",
44
"description": "OpenLayers Cesium integration library",
55
"scripts": {
66
"build-examples": "cross-env NODE_ENV=production TARGET=examples webpack --progress --bail",

src/olcs/core/OLImageryProvider.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,13 @@ class OLImageryProvider /* should not extend Cesium.ImageryProvider */ {
112112
* @override
113113
*/
114114
getTileCredits(x, y, level) {
115-
const olExtent = this.map_.getView().calculateExtent(this.map_.getSize());
115+
const extent = this.map_.getView().calculateExtent(this.map_.getSize());
116+
const center = this.map_.getView().getCenter();
116117
const zoom = this.tilingScheme_ instanceof Cesium.GeographicTilingScheme ? level + 1 : level;
117118

118119
const frameState = {
119-
viewState: {zoom},
120-
extent: olExtent
120+
viewState: {zoom, center},
121+
extent,
121122
};
122123

123124
const attributionsFunction = this.source_.getAttributions();

0 commit comments

Comments
 (0)