- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2.3k
Open
Labels
performance ⚡Speed, stability, CPU usage, memory usage, or power usageSpeed, stability, CPU usage, memory usage, or power usage
Description
#11225 improved level-of-detail tile loading for projections but there is still one major issue. It uses the center of the mercator tile to calculate the tile's scale. This is problematic when the center of the mercator tile is very far from the center of the tile in a different projection.
For example, with { name: 'albers', parallels: [90, 90] } the z1 tile does not split early enough because the point at which it calculates the scale is still at an ok size.
This should be split:

After it splits, you can see how far north the center is:

Possible fixes might be:
- use center of the tile in LngLat instead of mercator
- use some other measure of center
- use some non-center area based measurement
I'm not sure, but this might be a performance sensitive spot.
Metadata
Metadata
Assignees
Labels
performance ⚡Speed, stability, CPU usage, memory usage, or power usageSpeed, stability, CPU usage, memory usage, or power usage