Skip to content

improve lod tile loading for projections #11233

@ansis

Description

@ansis

#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:
Screen Shot 2021-11-04 at 10 27 13 PM
After it splits, you can see how far north the center is:
Screen Shot 2021-11-04 at 10 27 26 PM

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 usage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions