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
+1
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ Change Log
11
11
* Added `Matrix3.getRotation` to get the rotational component of a matrix with scaling removed. [#8182](https://github.com/AnalyticalGraphicsInc/cesium/pull/8182)
12
12
* Added ability to create partial ellipsoids using both the Entity API and CZML. New ellipsoid geometry properties: `innerRadii`, `minimumClock`, `maximumClock`, `minimumCone`, and `maximumCone`. This affects both `EllipsoidGeometry` and `EllipsoidOutlineGeometry`. See the updated [Sandcastle example](https://cesiumjs.org/Cesium/Apps/Sandcastle/?src=Partial%20Ellipsoids.html&label=Geometries). [#5995](https://github.com/AnalyticalGraphicsInc/cesium/pull/5995)
13
13
* Added `TileMapResourceImageryProvider` and `OpenStreetMapImageryProvider` classes to improve API consistency: [#4812](https://github.com/AnalyticalGraphicsInc/cesium/issues/4812)
14
+
* Added `credit` parameter to `CzmlDataSource`, `GeoJsonDataSource`, `KmlDataSource` and `Model`. [#8173](https://github.com/AnalyticalGraphicsInc/cesium/pull/8173)
14
15
15
16
##### Fixes :wrench:
16
17
*`Camera.flyTo` flies to the correct location in 2D when the destination crosses the international date line [#7909](https://github.com/AnalyticalGraphicsInc/cesium/pull/7909)
Copy file name to clipboardexpand all lines: Source/DataSources/GeoJsonDataSource.js
+34-3
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ define([
3
3
'../Core/Cartesian3',
4
4
'../Core/Color',
5
5
'../Core/createGuid',
6
+
'../Core/Credit',
6
7
'../Core/defaultValue',
7
8
'../Core/defined',
8
9
'../Core/defineProperties',
@@ -32,6 +33,7 @@ define([
32
33
Cartesian3,
33
34
Color,
34
35
createGuid,
36
+
Credit,
35
37
defaultValue,
36
38
defined,
37
39
defineProperties,
@@ -511,6 +513,8 @@ define([
511
513
this._promises=[];
512
514
this._pinBuilder=newPinBuilder();
513
515
this._entityCluster=newEntityCluster();
516
+
this._credit=undefined;
517
+
this._resourceCredits=[];
514
518
}
515
519
516
520
/**
@@ -526,6 +530,7 @@ define([
526
530
* @param {Number} [options.strokeWidth=GeoJsonDataSource.strokeWidth] The default width of polylines and polygon outlines.
527
531
* @param {Color} [options.fill=GeoJsonDataSource.fill] The default color for polygon interiors.
528
532
* @param {Boolean} [options.clampToGround=GeoJsonDataSource.clampToGround] true if we want the geometry features (polygons or linestrings) clamped to the ground.
533
+
* @param {Credit|String} [options.credit] A credit for the data source, which is displayed on the canvas.
529
534
*
530
535
* @returns {Promise.<GeoJsonDataSource>} A promise that will resolve when the data is loaded.
531
536
*/
@@ -786,6 +791,16 @@ define([
786
791
//>>includeEnd('debug');
787
792
this._entityCluster=value;
788
793
}
794
+
},
795
+
/**
796
+
* Gets the credit that will be displayed for the data source
797
+
* @memberof GeoJsonDataSource.prototype
798
+
* @type {Credit}
799
+
*/
800
+
credit : {
801
+
get : function(){
802
+
returnthis._credit;
803
+
}
789
804
}
790
805
});
791
806
@@ -804,6 +819,7 @@ define([
804
819
* @param {Number} [options.strokeWidth=GeoJsonDataSource.strokeWidth] The default width of polylines and polygon outlines.
805
820
* @param {Color} [options.fill=GeoJsonDataSource.fill] The default color for polygon interiors.
806
821
* @param {Boolean} [options.clampToGround=GeoJsonDataSource.clampToGround] true if we want the features clamped to the ground.
822
+
* @param {Credit|String} [options.credit] A credit for the data source, which is displayed on the canvas.
807
823
*
808
824
* @returns {Promise.<GeoJsonDataSource>} a promise that will resolve when the GeoJSON is loaded.
0 commit comments