kopia lustrzana https://github.com/robhawkes/vizicities
Re-add missing style for polygon layer
rodzic
ecdf7a984c
commit
5b5337da64
|
@ -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);
|
||||
|
||||
|
|
|
@ -291,7 +291,7 @@ class PointLayer extends Layer {
|
|||
|
||||
if (flat) {
|
||||
material.depthWrite = false;
|
||||
mesh.renderOrder = 1;
|
||||
mesh.renderOrder = 3;
|
||||
}
|
||||
|
||||
if (options.interactive) {
|
||||
|
|
|
@ -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];
|
||||
|
|
Ładowanie…
Reference in New Issue