Skip to content

Commit 83cd5f7

Browse files
author
Tom Fili
authored
Merge branch 'master' into master
2 parents f65257d + 404a1e9 commit 83cd5f7

10 files changed

+23
-17
lines changed

Apps/Sandcastle/gallery/Custom Geocoder.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* @returns {Promise<GeocoderResult[]>}
5252
*/
5353
OpenStreetMapNominatimGeocoder.prototype.geocode = function (input) {
54-
var endpoint = 'http://nominatim.openstreetmap.org/search?';
54+
var endpoint = 'https://nominatim.openstreetmap.org/search?';
5555
var query = 'format=json&q=' + input;
5656
var requestString = endpoint + query;
5757
return Cesium.loadJson(requestString)

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Change Log
44

55
* Added function that inserts missing namespace declarations into KML files. [#5860](https://github.com/AnalyticalGraphicsInc/cesium/pull/5860)
66
* Added support for the layer.json `parentUrl` property in `CesiumTerrainProvider` to allow for compositing of tilesets.
7+
* Fixed a bug that caused KML ground overlays to appear distorted when rotation was applied. [#5914](https://github.com/AnalyticalGraphicsInc/cesium/issues/5914)
78

89
### 1.38 - 2017-10-02
910

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Before we can merge a pull request, we require a signed Contributor License Agre
5555
* [individuals](Documentation/Contributors/CLAs/individual-cla-agi-v1.0.txt) and
5656
* [corporations](Documentation/Contributors/CLAs/corporate-cla-agi-v1.0.txt).
5757

58-
This only needs to be completed once. The CLA ensures you retain copyright to your contributions, and we have the right to use them and incorporate them into Cesium using the [Apache 2.0 License](LICENSE.md).
58+
This only needs to be completed once, and enables contributions to all of the projects under the [Analytical Graphics Inc](https://github.com/AnalyticalGraphicsInc) organization, including Cesium. The CLA ensures you retain copyright to your contributions, and provides us the right to use, modify, and redistribute your contributions using the [Apache 2.0 License](LICENSE.md).
5959

6060
Please email a completed CLA with all fields filled in to [cla@agi.com](mailto:cla@agi.com). Related questions are also welcome.
6161

CONTRIBUTORS.md

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu
9494
* [Florent Cayré](https://github.com/fcayre/)
9595
* [Novetta](http://www.novetta.com/)
9696
* [Natanael Rivera](https://github.com/nrivera-Novetta/)
97+
* [Justin Burr](https://github.com/jburr-nc/)
9798

9899
## [Individual CLA](Documentation/Contributors/CLAs/individual-cla-agi-v1.0.txt)
99100
* [Victor Berchet](https://github.com/vicb)

Source/DataSources/KmlDataSource.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1869,7 +1869,9 @@ define([
18691869

18701870
var rotation = queryNumericValue(latLonBox, 'rotation', namespaces.kml);
18711871
if (defined(rotation)) {
1872-
geometry.rotation = CesiumMath.toRadians(rotation);
1872+
var rotationRadians = CesiumMath.toRadians(rotation);
1873+
geometry.rotation = rotationRadians;
1874+
geometry.stRotation = rotationRadians;
18731875
}
18741876
}
18751877
}

Source/DataSources/PolylineGraphics.js

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ define([
3030
* @param {Property} [options.width=1.0] A numeric Property specifying the width in pixels.
3131
* @param {Property} [options.show=true] A boolean Property specifying the visibility of the polyline.
3232
* @param {MaterialProperty} [options.material=Color.WHITE] A Property specifying the material used to draw the polyline.
33+
* @param {MaterialProperty} [options.depthFailMaterial] A property specifiying the material to used to draw the polyline when it is below the terrain.
3334
* @param {Property} [options.granularity=Cesium.Math.RADIANS_PER_DEGREE] A numeric Property specifying the angular distance between each latitude and longitude if followSurface is true.
3435
* @param {Property} [options.shadows=ShadowMode.DISABLED] An enum Property specifying whether the polyline casts or receives shadows from each light source.
3536
* @param {Property} [options.distanceDisplayCondition] A Property specifying at what distance from the camera that this polyline will be displayed.
@@ -98,6 +99,7 @@ define([
9899
* Requires the EXT_frag_depth WebGL extension to render properly. If the extension is not supported,
99100
* there may be artifacts.
100101
* </p>
102+
* @memberof PolylineGraphics.prototype
101103
* @type {MaterialProperty}
102104
* @default undefined
103105
*/

Source/Scene/GroundPrimitive.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ define([
597597
var boundingVolumes;
598598
if (frameState.mode === SceneMode.SCENE3D) {
599599
boundingVolumes = groundPrimitive._boundingVolumes;
600-
} else if (frameState.mode !== SceneMode.SCENE3D && defined(groundPrimitive._boundingVolumes2D)) {
600+
} else {
601601
boundingVolumes = groundPrimitive._boundingVolumes2D;
602602
}
603603

Source/Scene/Model.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -2306,16 +2306,16 @@ define([
23062306
sampler : sampler,
23072307
flipY : false
23082308
});
2309-
}
2310-
// GLTF_SPEC: Support TEXTURE_CUBE_MAP. https://github.com/KhronosGroup/glTF/issues/40
2311-
2312-
if (mipmap) {
2313-
tx.generateMipmap();
2309+
// GLTF_SPEC: Support TEXTURE_CUBE_MAP. https://github.com/KhronosGroup/glTF/issues/40
2310+
if (mipmap) {
2311+
tx.generateMipmap();
2312+
}
23142313
}
23152314
}
2316-
2317-
model._rendererResources.textures[gltfTexture.id] = tx;
2318-
model._texturesByteLength += tx.sizeInBytes;
2315+
if (defined(tx)) {
2316+
model._rendererResources.textures[gltfTexture.id] = tx;
2317+
model._texturesByteLength += tx.sizeInBytes;
2318+
}
23192319
}
23202320

23212321
var scratchCreateTextureJob = new CreateTextureJob();

Source/Scene/PrimitivePipeline.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -272,19 +272,18 @@ define([
272272
var attributeLocations;
273273
var instances = parameters.instances;
274274
var length = instances.length;
275+
var pickOffsets;
275276

276277
if (length > 0) {
277278
geometries = geometryPipeline(parameters);
278279
if (geometries.length > 0) {
279280
attributeLocations = GeometryPipeline.createAttributeLocations(geometries[0]);
281+
if (parameters.createPickOffsets) {
282+
pickOffsets = createInstancePickOffsets(instances, geometries);
283+
}
280284
}
281285
}
282286

283-
var pickOffsets;
284-
if (parameters.createPickOffsets && geometries.length > 0) {
285-
pickOffsets = createInstancePickOffsets(instances, geometries);
286-
}
287-
288287
var boundingSpheres = new Array(length);
289288
var boundingSpheresCV = new Array(length);
290289
for (var i = 0; i < length; ++i) {

Specs/DataSources/KmlDataSourceSpec.js

+1
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ defineSuite([
816816
expect(entity.polygon).toBeUndefined();
817817
expect(entity.rectangle.coordinates.getValue()).toEqualEpsilon(Rectangle.fromDegrees(3, 1, 4, 2), CesiumMath.EPSILON14);
818818
expect(entity.rectangle.rotation.getValue()).toEqual(Math.PI / 4);
819+
expect(entity.rectangle.stRotation.getValue()).toEqual(Math.PI / 4);
819820
});
820821
});
821822

0 commit comments

Comments
 (0)