You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGES.md
+2
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@ Change Log
3
3
4
4
### 1.41 - 2018-01-02
5
5
6
+
* Breaking changes
7
+
* Removed the `text`, `imageUrl`, and `link` parameters for `Credit`, which were deprecated in Cesium 1.40. Use `options.text`, `options.imageUrl`, and `options.link` instead.
6
8
* Added support for clipping planes
7
9
* Added `clippingPlanes` property to `ModelGraphics`, `Model`, and `Cesium3DTileset`, which specifies a `ClippingPlaneCollection` to selectively disable rendering on the object. [#5913](https://github.com/AnalyticalGraphicsInc/cesium/pull/5913)
8
10
* Added `clippingPlanes` property to `Globe` which specifies a `ClippingPlaneCollection` to selectively disable rendering of the globe surface. [#5996](https://github.com/AnalyticalGraphicsInc/cesium/pull/5996)
Copy file name to clipboardexpand all lines: Source/Core/Credit.js
+15-17
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,11 @@ define([
2
2
'./defaultValue',
3
3
'./defined',
4
4
'./defineProperties',
5
-
'./deprecationWarning',
6
5
'./DeveloperError'
7
6
],function(
8
7
defaultValue,
9
8
defined,
10
9
defineProperties,
11
-
deprecationWarning,
12
10
DeveloperError){
13
11
'use strict';
14
12
@@ -26,31 +24,31 @@ define([
26
24
* @alias Credit
27
25
* @constructor
28
26
*
27
+
* @exception {DeveloperError} options.text, options.imageUrl, or options.link is required.
28
+
*
29
29
* @example
30
30
* //Create a credit with a tooltip, image and link
31
-
* var credit = new Cesium.Credit('Cesium', '/images/cesium_logo.png', 'http://cesiumjs.org/');
31
+
* var credit = new Cesium.Credit({
32
+
* text : 'Cesium',
33
+
* imageUrl : '/images/cesium_logo.png',
34
+
* link : 'http://cesiumjs.org/'
35
+
* });
32
36
*/
33
-
functionCredit(options,imageUrl,link){
34
-
vartext;
35
-
varshowOnScreen;
36
-
if(typeofoptions!=='object'){
37
-
deprecationWarning('Credit parameters','The Credit text, imageUrl and link parameters have been replaced by a single options object parameter with text, imageUrl and link properties. Use of the old parameters will be removed in Cesium 1.41');
0 commit comments