File tree Expand file tree Collapse file tree 5 files changed +10
-9
lines changed
Expand file tree Collapse file tree 5 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ const vectorSource = new olSourceVector({
2424} ) ;
2525
2626const vectorLayer = new olLayerVector ( {
27- source : vectorSource
27+ source : vectorSource ,
28+ altitudeMode : 'clampToGround'
2829} ) ;
2930
3031const image = new Image ( ) ;
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments