Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Globe - transform+projection changes #4341

Merged
merged 828 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
828 commits
Select commit Hold shift + click to select a range
4ff2e9b
Delete unused file
kubapelc May 22, 2024
7b441e3
Rename projection.name to projection.projectionName
kubapelc May 22, 2024
1096f97
Symbols: displayed collision circles now exactly match their computed…
kubapelc May 22, 2024
4fb0206
Globe: use mercator projection for symbol placement when globe render…
kubapelc May 22, 2024
fcb7e5c
Group all getters/setters in the transform class
kubapelc May 22, 2024
ae955a5
Transform: move transform-related stuff from the projection interface…
kubapelc May 22, 2024
644e828
Transform: finish moving parts of projection into mercator_transform.ts
kubapelc May 22, 2024
a92ed64
Transform: remove posMatrix usage from line symbol placement
kubapelc May 22, 2024
c42afd3
Transform: temporarily remove globe stuff
kubapelc May 22, 2024
36d71b4
Transform: fix line symbols
kubapelc May 22, 2024
c2f04a8
Symbols: fix wrong function names
kubapelc May 22, 2024
a5f0553
Fix line point projections
kubapelc May 23, 2024
c95877b
Fix line rendering
kubapelc May 23, 2024
04739b7
Fix line symbols sometimes being incorrectly oriented
kubapelc May 23, 2024
defecf8
Fix some failing unit tests
kubapelc May 23, 2024
a75d033
Fix single glyph orientation
kubapelc May 23, 2024
9f3cd10
Add another image to render test
kubapelc May 23, 2024
f6b4ec0
Add another expected image to textFit-grid-long test
kubapelc May 23, 2024
f02103e
Fix some failing unit tests
kubapelc May 23, 2024
d65e6a3
Simplify getProjectionData interface and terrain matrix passing
kubapelc May 23, 2024
7719743
Change comment at calculatePosMatrix
kubapelc May 23, 2024
b26daef
Fix symbols not rendering, remove unused shader parameters
kubapelc May 23, 2024
57ed928
Bring back globe src files
kubapelc May 23, 2024
59c622e
globe.test.ts is now globe_transform.test.ts
kubapelc May 23, 2024
fc6b607
Move stuff from globe.ts to globe_transform.ts
kubapelc May 23, 2024
111378a
Fix showTileBoundaries not working
kubapelc May 27, 2024
d82ab87
Remove irrelevant test
kubapelc May 27, 2024
5d2cc7e
Fix failing unit test
kubapelc May 27, 2024
b0f74f5
Transform: move more stuff from globe to globe_transform
kubapelc May 28, 2024
ea6a2e0
Transform: better comments
kubapelc May 28, 2024
12c9e3f
Transfrom: isRenderingDirty cleanup
kubapelc May 28, 2024
002357e
Transform: no more errors in globe_transform.ts
kubapelc May 28, 2024
00e42f3
Transform: remove `get point()` from transform class
kubapelc May 28, 2024
3ba892d
Transform: globe_transform.ts is compilable
kubapelc May 28, 2024
21230e3
Re-enable globe projection
kubapelc May 28, 2024
18764b2
Fix source_cache.ts sometimes crashing
kubapelc May 28, 2024
08dca44
Fix globe.ts - globe_transform.ts circular dependency
kubapelc May 28, 2024
79ec9b3
Fix and refactor getProjectionData interface
kubapelc May 28, 2024
25dd719
Transform: fix failing unit tests
kubapelc May 28, 2024
6216a93
Transform: fix symbols not rendering on globe
kubapelc May 28, 2024
6ea928f
Transform: minor fixes
kubapelc May 28, 2024
253407a
Transform: update globe symbol render tests
kubapelc May 28, 2024
05ad812
Transform: unify how symbol/projection.ts exports stuff
kubapelc May 29, 2024
7b62b66
Transform: improve comments
kubapelc May 29, 2024
6f4ea10
Remove unused function in painter
kubapelc May 29, 2024
5ee08e4
Transform: cleanup unneeded abstract functions
kubapelc May 29, 2024
bf90d7f
Transform: replace abstract getHorizon function with more generic isP…
kubapelc May 29, 2024
2178329
Fix useGlobeRendering not being set properly
kubapelc May 29, 2024
73db086
Transform: proper implementation of isPointOnMapSurface and screen pi…
kubapelc May 29, 2024
cdae3e6
Transform: adapt more functions for globe
kubapelc May 29, 2024
f7be61c
Transform: fix locationPoint implementation
kubapelc May 30, 2024
8b25973
Controls: globe panning experiments
kubapelc May 30, 2024
46bb0ae
Controls: reasonable globe panning
kubapelc May 30, 2024
8c5a794
Controls: centering zoom for globe experiment
kubapelc May 30, 2024
daaea31
Transform: fix globe unit tests
kubapelc May 30, 2024
a8da623
Transform: fix remaining unit tests
kubapelc May 30, 2024
078c751
Move mercator_transform.test to src/geo/projection
kubapelc May 30, 2024
cb27ab3
Transform: globe bugfixes and more unit tests
kubapelc May 30, 2024
3d42cfc
Transform: bugfix globe setLocationAtPoint
kubapelc May 30, 2024
061f052
Transform: isolate accesses to globe projection to avoid unintentiona…
kubapelc May 31, 2024
0fd0e51
Transform: move related tests so they are near each other
kubapelc May 31, 2024
2e61917
Transform: improve globe unprojection accuracy
kubapelc May 31, 2024
6ea7a69
Transform: fix globe bugs
kubapelc May 31, 2024
1c31944
Transform: move globe unit tests
kubapelc May 31, 2024
c8f706e
Transform: another globe setLocationAtPoint implementation
kubapelc May 31, 2024
4854298
Transform: fix globe zoom adjustment not working
kubapelc May 31, 2024
7ce2563
Transform: fix setLocationAtPoint
kubapelc May 31, 2024
8ddb25c
Transform: setLocationAtPoint and zoom WIP
kubapelc Jun 3, 2024
1a3fe89
Transform: adjust unit test to accept positive longitudes
kubapelc Jun 3, 2024
f9a607c
Transform: improve globe math precision (fp64)
kubapelc Jun 3, 2024
c7016f3
Transform: precision improvement, better camera position
kubapelc Jun 3, 2024
dcee086
Transform: another test WIP
kubapelc Jun 4, 2024
d1f0e10
Transform: fix setLocationAtPoint condition
kubapelc Jun 4, 2024
e403ba2
Transform: more reasonable zoom for globe
kubapelc Jun 5, 2024
1bb6977
Transform: globe zoom works well when cursor is outside the globe
kubapelc Jun 5, 2024
f454be4
Transform: globe more consistent zoom logic
kubapelc Jun 5, 2024
e4e30c2
Transform: experimental pole edge clamp for globe
kubapelc Jun 5, 2024
ce074cd
Transform: fix maxLatitudeForZoomLevel math
kubapelc Jun 17, 2024
9f6c3c2
Transform: globe constrain experiment
kubapelc Jun 17, 2024
399e9b2
Transform: minor improvements
kubapelc Jun 18, 2024
9baac15
Transform: globe panning 2.0
kubapelc Jun 18, 2024
87e0b37
Transform: globe panning 2.1
kubapelc Jun 18, 2024
e6f94a7
Transform: some math for globe zoom
kubapelc Jun 18, 2024
d75c274
Transform: globe: working zoom controls without glitches
kubapelc Jun 19, 2024
4a5f2b6
Transform: globe zoom: fix some more glitching
kubapelc Jun 19, 2024
daef54d
Transform: globe zoom: reduce panning when zoom pixel is far from the…
kubapelc Jun 19, 2024
6af0384
Transform: zoom globe: simplify, better behaviour around poles
kubapelc Jun 19, 2024
6de90c8
Transform: globe zoom: exact zooming
kubapelc Jun 19, 2024
6ccd7cb
Transform: globe zoom: better comments
kubapelc Jun 19, 2024
75df489
Transform: temporarily disable camera easeTo and flyTo
kubapelc Jun 19, 2024
879dc62
Transform: calling project/unproject on a globe should fail, rename p…
kubapelc Jun 19, 2024
212373f
Transform: fitBounds: initial implementation for globe_transform
kubapelc Jun 20, 2024
58c85b0
Transform: fitBounds: zoom is now correct
kubapelc Jun 20, 2024
9a0fc85
Transform: fitBounds: padding works for north/south
kubapelc Jun 20, 2024
15e5118
Transform: fitBounds: just build on top of mercator code
kubapelc Jun 21, 2024
a641ba4
Transform: fitBounds: the original way
kubapelc Jun 21, 2024
b382f02
Transform: fitBounds: back to mercator-buildon + done
kubapelc Jun 21, 2024
4d6ab66
Transform: tighter bounds for zoom heuristic transition
kubapelc Jun 21, 2024
e111d9e
Transform: easeTo: probably works
kubapelc Jun 21, 2024
2df2fed
Transform: attempt to handle camera options apparent zoom for globe
kubapelc Jun 21, 2024
d800172
Transform: easeTo fixes WIP
kubapelc Jun 22, 2024
869dca0
Transform: easeTo: mostly working implementation (still WIP)
kubapelc Jun 23, 2024
6c6ef9f
Transform: easeTo: small fixes
kubapelc Jun 23, 2024
57a6394
Transform: easeTo: intertia works for panning
kubapelc Jun 24, 2024
53af6c6
Transform: globe zoom: add globe radius based slowing factor
kubapelc Jun 24, 2024
293b00d
Transform: globe zoom adjustments
kubapelc Jun 24, 2024
ba2752a
Transform: jumpTo adapted for globe
kubapelc Jun 24, 2024
a8995a4
Transform: camera flyTo works for globe
kubapelc Jun 24, 2024
c1fbc9c
Make (un)projectToWorldCoordinates into standalone functions
kubapelc Jun 24, 2024
074a9ab
Fix inertia sometimes rotating in the wrong direction
kubapelc Jun 24, 2024
bdb050c
Fix transform center sometimes not getting wrapped, leading to visual…
kubapelc Jun 24, 2024
7d191b0
Transform: easeTo: slerp experiment
kubapelc Jun 24, 2024
06a7907
Transform: easeTo: revert slerp, add note on why it is not used
kubapelc Jun 24, 2024
b21c5da
Transform: improve center animation for easeTo and flyTo
kubapelc Jun 24, 2024
88e2852
Minor refactor & remove some outdated TODOs
kubapelc Jun 24, 2024
2d79e5f
More refactor and TODOs
kubapelc Jun 24, 2024
a99d2b4
Transform: globe remembers its globeness state after clone, fixes imp…
kubapelc Jun 24, 2024
dbe506f
Terrain matrix refactor WIP
kubapelc Jun 24, 2024
defe4d8
Terrain fixes
kubapelc Jun 25, 2024
355054e
Transform: better comments, rename angularCoordinatesToVector to angu…
kubapelc Jun 25, 2024
9f23855
Transform: getBounds for globe works
kubapelc Jun 25, 2024
5982bc0
Transform: remove some comments
kubapelc Jun 25, 2024
5ad0f5d
Merge tag 'v4.4.1' into kubapelc/globe-vector
kubapelc Jun 25, 2024
824cb65
Fix merge
kubapelc Jun 25, 2024
1fa8f02
Merge remote-tracking branch 'upstream/globe' into kubapelc/globe-vector
kubapelc Jun 25, 2024
9426637
Remove globe.test.ts (it is now globe_transform.test.ts)
kubapelc Jun 26, 2024
2dd42f1
Rename Transform.updateProjection to newFrameUpdate
kubapelc Jun 26, 2024
f7db96d
Revert globe.ts to pre-merge state
kubapelc Jun 26, 2024
140de5a
Revert mercator.ts to pre-merge state
kubapelc Jun 26, 2024
dfb9193
New mechanism for creating specialized transforms, more merge fixes
kubapelc Jun 26, 2024
58b4277
Rename projectionMatrix to modelViewProjectionMatrix, refactor mercat…
kubapelc Jun 26, 2024
c58f891
More merge fixes, minor refactor of transforms
kubapelc Jun 26, 2024
e905c57
Add transform getters for atmosphere
kubapelc Jun 26, 2024
2e1ea82
Fix forgotten useGlobeControls uses
kubapelc Jun 26, 2024
e054ead
Fix cyclical dependency
kubapelc Jun 26, 2024
b9a7181
Fix tests
kubapelc Jun 26, 2024
bed6f84
Fix crashes
kubapelc Jun 26, 2024
97650b1
Fix manually triggered globe transition animation
kubapelc Jun 26, 2024
37ddf31
Fix collision boxes not respecting mercator transition
kubapelc Jun 26, 2024
86c41fd
Blend out atmosphere when transitioning to mercator
kubapelc Jun 26, 2024
4813c3c
Fix globe transitions when mercator should be constrained
kubapelc Jun 26, 2024
ed31d72
Reload all tiles upon projection change
kubapelc Jun 26, 2024
f50c867
Fix failing style tests
kubapelc Jun 27, 2024
ff96537
Fix terrain source cache tests
kubapelc Jun 27, 2024
14e178d
Fix map zoom&center being applied in wrong order, causing zoom to be …
kubapelc Jun 27, 2024
5a2173b
Update globe pole render tests with correct zoom
kubapelc Jun 27, 2024
511f4a0
Update globe unit test zooms
kubapelc Jun 27, 2024
7fe68e1
Fix more unit tests
kubapelc Jun 27, 2024
20f8368
Fix transform.apply not copying everything, fix globe controls not wr…
kubapelc Jun 27, 2024
c055fef
Fix some globe tests
kubapelc Jun 27, 2024
446966e
Fix globe setLocationAtPoint
kubapelc Jun 28, 2024
69ed188
Fix docs & lint
kubapelc Jun 28, 2024
e63fdf8
Increase globe setLocationAtPoint test desired precision
kubapelc Jun 28, 2024
a072b6d
Some camera tests for globe
kubapelc Jun 28, 2024
d5ccfee
Fix easeTo test suite name and placing
kubapelc Jun 28, 2024
2a97b92
Add rotated setLocationAtPoint test for globe, fix failing test
kubapelc Jun 28, 2024
b8cc6ab
Fix globe easeTo & flyTo with bearing to follow spec, add tests
kubapelc Jun 28, 2024
369e7b3
easeTo globe tests
kubapelc Jun 28, 2024
30e8b72
All relevant camera tests for globe implemented
kubapelc Jun 28, 2024
002a818
Update build size test
kubapelc Jun 28, 2024
6a0014d
Fix symbols not respecting mercator
kubapelc Jun 28, 2024
6307a7e
Update build size again
kubapelc Jun 28, 2024
d7c4394
Terrain fix
kubapelc Jun 28, 2024
b9d0c49
Merge remote-tracking branch 'upstream/globe' into kubapelc/globe-vector
kubapelc Jun 28, 2024
74cc793
Merge branch 'kubapelc/terrain-fix' into kubapelc/globe-vector
kubapelc Jun 28, 2024
83d63a0
Fix merge
kubapelc Jun 28, 2024
d149dda
Merge remote-tracking branch 'upstream/globe' into kubapelc/globe-vector
kubapelc Jun 28, 2024
6459561
Fix terrain shaders
kubapelc Jun 30, 2024
e7c0487
Merge remote-tracking branch 'upstream/globe' into kubapelc/globe-vec…
kubapelc Jun 30, 2024
38f2165
Fix merge
kubapelc Jun 30, 2024
85eb5a8
Revert controls changes
kubapelc Jun 30, 2024
dd79c57
Fix reverted files
kubapelc Jun 30, 2024
171d981
Fix reverted camera tests
kubapelc Jun 30, 2024
f9c85f3
Revert forgotten file, fix lint
kubapelc Jun 30, 2024
db12cc6
Update build size
kubapelc Jun 30, 2024
3fd01bb
Feedback comments for unit tests
kubapelc Jun 30, 2024
b7122fe
Merge remote-tracking branch 'upstream/globe' into kubapelc/globe-vector
kubapelc Jul 2, 2024
bbe025a
Convert setters to functions: runtime code
kubapelc Jul 2, 2024
4ac378a
Convert setters to functions: test code
kubapelc Jul 2, 2024
7e7ddc5
Convert last setter to function
kubapelc Jul 2, 2024
4e20c1b
Fix some tests
kubapelc Jul 2, 2024
45c3dc2
Transform is now an interface
kubapelc Jul 2, 2024
441be12
Rename Transform to ITransform
kubapelc Jul 2, 2024
41bc941
Remove abstract functions from transform base class
kubapelc Jul 2, 2024
020952b
TransformHelper wip
kubapelc Jul 3, 2024
e6efa65
Rename transform files
kubapelc Jul 3, 2024
68dea12
Finish transform rewrite
kubapelc Jul 3, 2024
f81eedd
Fix mercator transform tests
kubapelc Jul 3, 2024
8324036
Fix mercator_transform constructor
kubapelc Jul 3, 2024
8723212
Fix symbol bucket test
kubapelc Jul 4, 2024
b5350f4
Fix source cache tests
kubapelc Jul 4, 2024
2cb723f
Fix transform clone bug & tests
kubapelc Jul 4, 2024
c606fc7
Improve comments
kubapelc Jul 4, 2024
0c7cd2e
More comments
kubapelc Jul 4, 2024
0908e98
Fix import
kubapelc Jul 4, 2024
84faaae
Move helper functions in tests to beginning of file
kubapelc Jul 4, 2024
5e39cb0
Fix collision index test accessing a private field
kubapelc Jul 4, 2024
99ed284
Remove unneeded null check
kubapelc Jul 4, 2024
334fd07
New utils tests + quadratic solve fix
kubapelc Jul 4, 2024
28a9062
Add remapSaturate tests
kubapelc Jul 4, 2024
611b6c4
Add explicit types to line glyph placement
kubapelc Jul 4, 2024
5f7679b
Refactor placeGlyphsAlongLine args into an object
kubapelc Jul 4, 2024
7acaef2
Merge remote-tracking branch 'upstream/globe' into kubapelc/globe-vector
kubapelc Jul 5, 2024
281214d
Fix merge, cleanup draw_custom.test, fix missing perspective offset i…
kubapelc Jul 5, 2024
826115e
Fix draw_custom test
kubapelc Jul 5, 2024
be5c150
Update build test
kubapelc Jul 5, 2024
a526465
Fix crashes
kubapelc Jul 5, 2024
65b2ffb
Fix transform_helper apply function not setting bearing correctly
kubapelc Jul 5, 2024
9cad3a1
Add test for TransformHelper
kubapelc Jul 5, 2024
9c7ee9b
Fix TransformHelper.apply
kubapelc Jul 5, 2024
77f1f2e
Fix flipped text placement
kubapelc Jul 5, 2024
a37ffe0
Add new expected image to render test
kubapelc Jul 5, 2024
cc8cd6d
Fix marker tests
kubapelc Jul 5, 2024
98fb944
Update build size
kubapelc Jul 5, 2024
c118c83
Move functions from mercator_transform.ts to mercator_utils.ts
kubapelc Jul 5, 2024
2c2f848
Refactor un/projectToWorldCoordinates function args
kubapelc Jul 5, 2024
0ee2348
Make zoomScale and scaleZoom standalone functions
kubapelc Jul 5, 2024
3ca8f6a
Fix unprojectFromWorldCoordinates arg type
kubapelc Jul 5, 2024
de3f2e8
Move globe functions to separate file
kubapelc Jul 5, 2024
21322ea
Fix private member access in source_cache.test.ts
kubapelc Jul 5, 2024
4fd405a
Fix deck.gl missing dot
kubapelc Jul 5, 2024
64086cb
Fix missing globe_utils.ts
kubapelc Jul 5, 2024
fbaa2c9
Better `angleToRotateBetweenVectors2D` doccomment
kubapelc Jul 8, 2024
956f4d6
Remove unneeded `protected`
kubapelc Jul 8, 2024
5e0f24a
Cleanup transform interface and remove duplicate comments
kubapelc Jul 8, 2024
d03d0c5
Split mercator_utils tests into a separate file
kubapelc Jul 8, 2024
2f0e2fe
Fix tests
kubapelc Jul 8, 2024
1c6c62a
Split globe locationPoint tests a bit
kubapelc Jul 8, 2024
784d612
Add more mercator tests
kubapelc Jul 8, 2024
e64a165
More globe tests
kubapelc Jul 8, 2024
9a23508
Fix globe getBounds and add tests for it
kubapelc Jul 8, 2024
1d82c9f
Remove unneeded function, update build size
kubapelc Jul 8, 2024
1274cbc
projectTileCoordinates for globe now covered by test
kubapelc Jul 8, 2024
0d8d378
Add globe_utils tests
kubapelc Jul 8, 2024
e54d671
Split up globe tests more
kubapelc Jul 8, 2024
89399ca
Fix missing doccomment
kubapelc Jul 9, 2024
e2a5446
Rename transform's projection/unprojection functions
kubapelc Jul 11, 2024
625453c
Better ray intersection comment and type
kubapelc Jul 11, 2024
0c416ce
Reduce indentation
kubapelc Jul 11, 2024
8b75f1b
Improve unproject math readability
kubapelc Jul 11, 2024
b717d08
Add point-plane distance util function
kubapelc Jul 11, 2024
343f231
Move tileCoordinatesToMercatorCoordinates to mercator_utils
kubapelc Jul 11, 2024
8257c24
Better name for location to mercator coordinate functions
kubapelc Jul 11, 2024
b62a6d0
Move angleToRotateBetweenVectors2D to utils
kubapelc Jul 11, 2024
5c48f38
Refactor _globeness usage
kubapelc Jul 11, 2024
aeece24
Remove _initialized from GlobeTransform
kubapelc Jul 11, 2024
8b79d16
Remove translatePosition from transform interface
kubapelc Jul 11, 2024
d0c40fe
Add IReadonlyTransform interface
kubapelc Jul 11, 2024
d002f61
Update build size
kubapelc Jul 11, 2024
639ed7f
Remove unneeded comment
kubapelc Jul 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions src/data/bucket/symbol_bucket.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {SymbolBucket} from './symbol_bucket';
import {CollisionBoxArray} from '../../data/array_types.g';
import {performSymbolLayout} from '../../symbol/symbol_layout';
import {Placement} from '../../symbol/placement';
import {Transform} from '../../geo/transform';
import {CanonicalTileID, OverscaledTileID} from '../../source/tile_id';
import {Tile} from '../../source/tile';
import {CrossTileSymbolIndex} from '../../symbol/cross_tile_symbol_index';
Expand All @@ -18,19 +17,17 @@ import {IndexedFeature, PopulateParameters} from '../bucket';
import {StyleImage} from '../../style/style_image';
import glyphs from '../../../test/unit/assets/fontstack-glyphs.json' with {type: 'json'};
import {StyleGlyph} from '../../style/style_glyph';
import {MercatorProjection} from '../../geo/projection/mercator';
import {SubdivisionGranularitySetting} from '../../render/subdivision_granularity_settings';
import {MercatorTransform} from '../../geo/projection/mercator_transform';

// Load a point feature from fixture tile.
const vt = new VectorTile(new Protobuf(fs.readFileSync(path.resolve(__dirname, '../../../test/unit/assets/mbsv5-6-18-23.vector.pbf'))));
const feature = vt.layers.place_label.feature(10);

/*eslint new-cap: 0*/
const collisionBoxArray = new CollisionBoxArray();
const transform = new Transform();
transform.width = 100;
transform.height = 100;
transform.cameraToCenterDistance = 100;
const transform = new MercatorTransform();
transform.resize(100, 100);

const stacks = {'Test': glyphs} as any as {
[_: string]: {
Expand Down Expand Up @@ -66,7 +63,7 @@ describe('SymbolBucket', () => {
const bucketA = bucketSetup() as any as SymbolBucket;
const bucketB = bucketSetup() as any as SymbolBucket;
const options = {iconDependencies: {}, glyphDependencies: {}} as PopulateParameters;
const placement = new Placement(transform, new MercatorProjection(), undefined as any, 0, true);
const placement = new Placement(transform, undefined as any, 0, true);
const tileID = new OverscaledTileID(0, 0, 0, 0, 0);
const crossTileSymbolIndex = new CrossTileSymbolIndex();

Expand Down
5 changes: 0 additions & 5 deletions src/data/bucket/symbol_bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import {register} from '../../util/web_worker_transfer';
import {EvaluationParameters} from '../../style/evaluation_parameters';
import {Formatted, ResolvedImage} from '@maplibre/maplibre-gl-style-spec';
import {rtlWorkerPlugin} from '../../source/rtl_text_plugin_worker';
import {mat4} from 'gl-matrix';
import {getOverlapMode} from '../../style/style_layer/overlap_mode';
import type {CanonicalTileID} from '../../source/tile_id';
import type {
Expand Down Expand Up @@ -348,8 +347,6 @@ export class SymbolBucket implements Bucket {
featureSortOrder: Array<number>;

collisionCircleArray: Array<number>;
placementInvProjMatrix: mat4;
placementViewportMatrix: mat4;

text: SymbolBuffers;
icon: SymbolBuffers;
Expand Down Expand Up @@ -377,8 +374,6 @@ export class SymbolBucket implements Bucket {
this.sortKeyRanges = [];

this.collisionCircleArray = [];
this.placementInvProjMatrix = mat4.identity([] as any);
this.placementViewportMatrix = mat4.identity([] as any);

const layer = this.layers[0];
const unevaluatedLayoutValues = layer._unevaluatedLayout._values;
Expand Down
4 changes: 2 additions & 2 deletions src/data/feature_index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ import {mat4} from 'gl-matrix';

import type {StyleLayer} from '../style/style_layer';
import type {FeatureFilter, FeatureState, FilterSpecification, PromoteIdSpecification} from '@maplibre/maplibre-gl-style-spec';
import type {Transform} from '../geo/transform';
import type {ITransform} from '../geo/transform_interface';
import type {VectorTileFeature, VectorTileLayer} from '@mapbox/vector-tile';

type QueryParameters = {
scale: number;
pixelPosMatrix: mat4;
transform: Transform;
transform: ITransform;
tileSize: number;
queryGeometry: Array<Point>;
cameraQueryGeometry: Array<Point>;
Expand Down
2 changes: 1 addition & 1 deletion src/geo/edge_insets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {clamp} from '../util/util';

/**
* An `EdgeInset` object represents screen space padding applied to the edges of the viewport.
* This shifts the apprent center or the vanishing point of the map. This is useful for adding floating UI elements
* This shifts the apparent center or the vanishing point of the map. This is useful for adding floating UI elements
* on top of the map and having the vanishing point shift as UI elements resize.
*
* @group Geography and Geometry
Expand Down
155 changes: 0 additions & 155 deletions src/geo/projection/globe.test.ts

This file was deleted.

Loading
Loading