Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

factor out tile extent as constant #862

Closed
incanus opened this issue Feb 12, 2015 · 2 comments
Closed

factor out tile extent as constant #862

incanus opened this issue Feb 12, 2015 · 2 comments
Labels

Comments

@incanus
Copy link
Contributor

incanus commented Feb 12, 2015

screen shot 2015-02-11 at 5 07 45 pm

@mb12
Copy link

mb12 commented Feb 19, 2015

In addition to this, the factor 8.0 needs to be factored out to layer_extent/tileSize.

Once that is done, then performance on retina displays can be improved by 4x by setting tileSize for iPad Air/retina devices to a higher value. Currently for the same zoom level, it loads 4x the number of tiles compared to non-retina devices.
Since a tile represents a fixed physical region on earth, for Vector sources tileSize should be a function of device physical size not pixel density.

@incanus
Copy link
Contributor Author

incanus commented Mar 15, 2015

Dupe of #250, really.

@incanus incanus closed this as completed Mar 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants