Re-add missing style for polygon layer

feature/threejs-update
Robin Hawkes 2016-10-06 13:17:24 +01:00
rodzic ecdf7a984c
commit 5b5337da64
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 1EC4C2D6765FA8CF
3 zmienionych plików z 4 dodań i 5 usunięć

Wyświetl plik

@ -245,7 +245,7 @@ class GeoJSONLayer extends LayerGroup {
style = (typeof this._options.style === 'function') ? this._options.style(this._geojson.features[0]) : this._options.style;
style = extend({}, GeoJSON.defaultStyle, style);
this._setPolygonMesh(mergedPolygonAttributes, polygonAttributeLengths, polygonFlat).then((result) => {
this._setPolygonMesh(mergedPolygonAttributes, polygonAttributeLengths, style, polygonFlat).then((result) => {
this._polygonMesh = result.mesh;
this.add(this._polygonMesh);

Wyświetl plik

@ -291,7 +291,7 @@ class PointLayer extends Layer {
if (flat) {
material.depthWrite = false;
mesh.renderOrder = 1;
mesh.renderOrder = 3;
}
if (options.interactive) {

Wyświetl plik

@ -69,11 +69,10 @@ class ImageTile extends Tile {
localMesh.rotation.x = -90 * Math.PI / 180;
localMesh.receiveShadow = true;
localMesh.renderOrder = -1;
localMesh.renderOrder = 0;
mesh.add(localMesh);
mesh.renderOrder = 0.1;
mesh.renderOrder = 0;
mesh.position.x = this._center[0];
mesh.position.z = this._center[1];