Skip to content

Commit

Permalink
WMS tile seam corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Jul 22, 2021
1 parent 5f51040 commit 8c1ce09
Show file tree
Hide file tree
Showing 34 changed files with 373 additions and 2,203 deletions.
2,204 changes: 1 addition & 2,203 deletions dist/lithosphere.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/src/constants.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare const NO_DATA_VALUE_INTERNAL = -1100101;
Empty file added dist/src/controls/altitude.d.ts
Empty file.
15 changes: 15 additions & 0 deletions dist/src/controls/compass.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Corners } from '../generalTypes.d.ts';
interface Private {
}
export default class Compass {
_: Private;
p: any;
name: string;
corner: Corners;
constructor(parent: any, name: string);
getControl: () => string;
attachEvents: () => void;
onUpdate: () => void;
setDirection: () => void;
}
export {};
Empty file added dist/src/controls/controls.d.ts
Empty file.
19 changes: 19 additions & 0 deletions dist/src/controls/coordinates.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Corners } from '../generalTypes.d.ts';
interface Private {
}
interface Params {
existingDivId?: string;
}
export default class Coordinates {
_: Private;
p: any;
name: string;
params: Params;
corner: Corners;
constructor(parent: any, name: string, params?: object);
getControl: () => string;
attachEvents: () => void;
onUpdate: () => void;
private updateMouseCoords;
}
export {};
Empty file added dist/src/controls/crop.d.ts
Empty file.
18 changes: 18 additions & 0 deletions dist/src/controls/exaggerate.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Corners } from '../generalTypes.d.ts';
interface Private {
}
export default class Exaggerate {
_: Private;
id: string;
p: any;
name: string;
corner: Corners;
exaggeration: number;
constructor(parent: any, name: string);
getControl: () => string;
attachEvents: () => void;
private getInactiveContent;
private getActiveContent;
setExaggeration: (multiplier: number) => void;
}
export {};
13 changes: 13 additions & 0 deletions dist/src/controls/home.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Corners } from '../generalTypes';
interface Private {
}
export default class Home {
_: Private;
p: any;
name: string;
corner: Corners;
constructor(parent: any, name: string);
getControl: () => string;
attachEvents: () => void;
}
export {};
29 changes: 29 additions & 0 deletions dist/src/controls/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { Corners } from '../generalTypes';
export default class Controls {
p: any;
controlContainer: HTMLElement;
corners: {
TopLeft: HTMLElement;
TopRight: HTMLElement;
BottomLeft: HTMLElement;
BottomRight: HTMLElement;
};
activeControls: any;
compass: any;
coordinates: any;
home: any;
layers: any;
exaggerate: any;
observe: any;
walk: any;
link: any;
constructor(parent: any);
addControl: (name: string, control: any, params?: object, corner?: Corners) => any;
removeControl: (name: any) => void;
_onUpdateEvent: () => void;
_onMove: (lng: any, lat: any, height: any) => void;
_onMouseMove: (lng: any, lat: any, height: any) => void;
_onMouseOut: (e?: any) => void;
_onFirstPersonUpdate: () => void;
_onOrbitalUpdate: (e?: any) => void;
}
17 changes: 17 additions & 0 deletions dist/src/controls/layers.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Corners } from '../generalTypes.d.ts';
interface Private {
}
export default class Layers {
_: Private;
id: string;
p: any;
name: string;
corner: Corners;
constructor(parent: any, name: string);
getControl: () => string;
attachEvents: () => void;
private getInactiveContent;
private getActiveContent;
private attachEventsInternal;
}
export {};
29 changes: 29 additions & 0 deletions dist/src/controls/link.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { Corners } from '../generalTypes';
import { Object3D } from 'three';
interface Private {
linkPanned: boolean;
linkPannedTimeout: any;
targetPoint?: Object3D;
}
export default class Link {
_: Private;
p: any;
name: string;
params: any;
corner: Corners;
return: any;
constructor(parent: any, name: string, params?: object);
getControl: () => string;
attachEvents: () => void;
getReturn: () => any;
onMove: (lng: any, lat: any, height: any) => void;
onMouseMove: (lng: any, lat: any, height: any) => void;
onMouseOut: () => void;
onFirstPersonUpdate: () => void;
onOrbitalUpdate: () => void;
setLink: (latlng?: any, style?: any, spriteId?: string) => void;
linkMove: (lng: number, lat: number) => void;
linkMouseMove: (lng: number, lat: number) => void;
linkMouseOut: () => void;
}
export {};
23 changes: 23 additions & 0 deletions dist/src/controls/observe.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { Corners } from '../generalTypes.d.ts';
interface Private {
}
export default class Observe {
_: Private;
p: any;
name: string;
id: string;
helpDiv: HTMLElement;
corner: Corners;
constructor(parent: any, name: string);
getControl: () => string;
private getInactiveContent;
private getActiveContent;
attachEvents: () => void;
private setCamera;
private leaveObserver;
private getObserverValues;
private keydownObserverSettings;
private toggleFOVOverlay;
private updateFOVOverlayBounds;
}
export {};
16 changes: 16 additions & 0 deletions dist/src/controls/walk.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Corners } from '../generalTypes.d.ts';
interface Private {
}
export default class Walk {
_: Private;
p: any;
name: string;
helpDiv: HTMLElement;
corner: Corners;
constructor(parent: any, name: string);
getControl: () => string;
attachEvents: () => void;
private setCamera;
private leaveWalking;
}
export {};
58 changes: 58 additions & 0 deletions dist/src/core/cameras.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import { Vector2, Vector3 } from 'three';
interface Private {
keepNear: boolean;
crosshair: HTMLElement;
}
interface Orbit {
camera: any;
controls: any;
near: number;
far: number;
}
interface FirstPerson {
camera: any;
controls: any;
lockControls: boolean;
height: 3;
}
export default class Camera {
_: Private;
container: HTMLElement;
sceneContainer: HTMLElement;
camera: any;
controls: any;
orbit: Orbit;
firstPerson: FirstPerson;
isFirstPerson: boolean;
isShift: boolean;
moveForward?: boolean;
moveBackward?: boolean;
moveLeft?: boolean;
moveRight?: boolean;
canJump?: boolean;
prevTime?: number;
velocity?: Vector3;
constructor(container: HTMLElement, sceneContainer: HTMLElement, scene: any, projection: any);
reset(): void;
_init(scene: any, projection: any): void;
swap(lockControls: any, skipLock: any): void;
private inToFirstPerson;
private outFromFirstPerson;
private toggleCrosshair;
private requestPointerLocking;
setupEvents(): void;
onKeyDown: (event: KeyboardEvent) => void;
onKeyUp: (event: KeyboardEvent) => void;
updateSize: () => void;
setNearFarPlane: (farther: any, near: any, far: any, keepNear: any) => void;
setFirstPersonHeight: (height: any) => void;
getFirstPersonFocalLength: () => number;
setFirstPersonFocalLength: (focalLength: any) => void;
getFirstPersonFOV: () => number;
setFirstPersonFOV: (fov: any) => void;
getFirstPersonAspect: () => number;
setFirstPersonAspect: (aspect: any) => void;
setCameraAzimuthElevation: (az: any, el: any, cameraIsFirstPerson: any) => void;
update: () => Vector2;
}
export {};
8 changes: 8 additions & 0 deletions dist/src/core/renderer.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default class Renderer {
renderer: any;
container: HTMLElement;
constructor(container: HTMLElement);
_init(): void;
updateSize: () => void;
remove(): void;
}
7 changes: 7 additions & 0 deletions dist/src/core/shaders.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { ShaderMaterial } from 'three';
declare const Shaders: {
simplePoint: () => ShaderMaterial;
multiTexture: (textures: any, fadeIn?: boolean) => ShaderMaterial;
atmosphere: (color?: string) => ShaderMaterial;
};
export default Shaders;
10 changes: 10 additions & 0 deletions dist/src/layers/clamped.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { XYZ } from '../generalTypes.d.ts';
export default class ClampedLayerer {
p: any;
constructor(parent: any);
add: (layerObj: any, callback?: Function) => void;
toggle: (name: string, on?: boolean) => boolean;
setOpacity: (name: string, opacity: number) => boolean;
remove: (name: string) => boolean;
getClampedTexture: (i: number, xyz: XYZ) => any;
}
Empty file added dist/src/layers/curtain.d.ts
Empty file.
34 changes: 34 additions & 0 deletions dist/src/layers/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import Tile3dLayerer from './tile3d';
import TileLayerer from './tile';
import ClampedLayerer from './clamped';
import VectorLayerer from './vector';
interface Private {
layerers: {
tile3d: Tile3dLayerer;
tile: TileLayerer;
clamped: ClampedLayerer;
vector: VectorLayerer;
};
}
export default class Layers {
_: Private;
p: any;
baseStyle: any;
tile3d: any;
tile: any;
clamped: any;
vector: any;
all: any;
constructor(parent: any);
_reset(): void;
addLayer: (type: string, layerObj: any, callback?: Function, sI?: number) => void;
removeLayer: (name: string) => boolean;
toggleLayer: (name: string, on?: boolean) => boolean;
setLayerOpacity: (name: string, opacity: number) => boolean;
findHighestMaxZoom: () => number;
findLowestMinZoom: () => number;
private getFeatureStyleProp;
getLayerByName: (layerName: string) => any;
getFeatureStyle: (layer: any, feature: any, isStrokeless?: boolean) => any;
}
export {};
Empty file added dist/src/layers/model.d.ts
Empty file.
Empty file added dist/src/layers/overlay.d.ts
Empty file.
8 changes: 8 additions & 0 deletions dist/src/layers/tile.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default class TileLayerer {
p: any;
constructor(parent: any);
add: (layerObj: any) => void;
toggle: (name: string, on?: boolean) => boolean;
setOpacity: (name: string, opacity: number) => boolean;
remove: (name: string) => boolean;
}
10 changes: 10 additions & 0 deletions dist/src/layers/tile3d.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export default class Tile3dLayerer {
p: any;
constructor(parent: any);
add: (layerObj: any) => void;
toggle: (name: string, on?: boolean) => boolean;
setOpacity: (name: string, opacity: number) => boolean;
remove: (name: string) => boolean;
private generateTile3ds;
private localizeTile3ds;
}
11 changes: 11 additions & 0 deletions dist/src/layers/vector.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export default class VectorLayerer {
p: any;
baseStyle: any;
constructor(parent: any);
add: (layerObj: any, callback?: Function) => void;
toggle: (name: string, on?: boolean) => boolean;
setOpacity: (name: string, opacity: number) => boolean;
remove: (name: string) => boolean;
private generateVectors;
private geomTo;
}
Empty file added dist/src/parsers/demt.d.ts
Empty file.
3 changes: 3 additions & 0 deletions dist/src/parsers/rgba.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import '../secondary/PNG/zlib';
import '../secondary/PNG/png';
export default function RGBAParser(tilePath: string, layerObj?: any, xyz?: any, tileResolution?: number, numberOfVertices?: number): Promise<number[]>;
5 changes: 5 additions & 0 deletions dist/src/secondary/OrbitControls.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare function OrbitControls(object: any, domElement: any): void;
declare namespace OrbitControls {
var prototype: any;
}
export default OrbitControls;
Empty file added dist/src/secondary/PNG/png.d.ts
Empty file.
Empty file.
1 change: 1 addition & 0 deletions dist/src/secondary/PointerLockControls.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function PointerLockControls(camera: any): void;
7 changes: 7 additions & 0 deletions dist/src/secondary/loadingScreen.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import './loadingScreen.scss';
export default class Controls {
p: any;
loadingContainer: HTMLElement;
constructor(parent: any);
end: (name: any) => void;
}
8 changes: 8 additions & 0 deletions dist/src/secondary/sprites.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Sprite } from 'three';
declare const Sprites: {
spriteMaterials: {};
makeMarkerSprite: (parameters: any, id: any, forceNewMaterial?: boolean) => Sprite;
makeMarkerMaterial: (parameters: any, id: any, forceNewMaterial?: boolean) => any;
makeTextSprite: (message: any, parameters: any) => Sprite;
};
export default Sprites;
22 changes: 22 additions & 0 deletions dist/src/utils/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { XY, XYZ } from '../generalTypes';
declare const Utils: {
getIn: (obj: any, keyArray: string[], notSetValue?: any) => any;
mod: (n: number, m: number) => number;
findHighestMaxZoom: (tileLayers: any) => number;
findLowestMinZoom: (tileLayers: any) => number;
isInExtent: (xyz: XYZ, bb: any, projection: any) => boolean;
clone: (obj: any) => any;
capitalizeFirstLetter: (string: string) => string;
getExtension: (string: string) => string;
getRadiansPerPixel: (zoom: number) => number;
lastTileContains: any[];
tileContains: (xyz: any, z: number, useLast?: boolean) => any;
tileIsContained(xyzContainer: any, xyzContained: any, useLast?: boolean): boolean;
arrayAverage(array: any, key: string): number;
hexToRGB(hex: string): any;
rotatePoint(pt: any, center: any, angle: any): XY;
rotateAroundArbAxis(object: any, axis: any, radians: any, noPremultiply?: boolean): void;
getParamString(params: any, baseUrl: string, isUppercase?: boolean): string;
isArray(object: any): boolean;
};
export default Utils;

0 comments on commit 8c1ce09

Please sign in to comment.