Repository navigation
[core] support tiles with non-4096 extents - #3766
Conversation
|
Are you going to port mapbox/mapbox-gl-js@282a12c? It seems like a good idea. |
|
🙇 |
|
@jfirebaugh I think it should be ported separately, later. -native doesn't have an equivalent to |
|
@ansis Can you please kindly clarify the following? 1.) Since all coordinates are normalized to 13 bit values, is it correct to say that using tiles with extent > 13 bits is not advisable since the higher precision won't be used by the client for rendering? 2.) Under what scenarios should a source return tiles with extent < 8192? Does a lower tile extent reduce size of vector tiles? Is there a specific end user case/bug that this change addresses? I also looked at the gl-js link added by @jfirebaugh but couldn't figure it out. 3.) Should the default value be changed to 8192 here as well? 4.) Can you please also confirm that a source can return tiles with variable extents and the client would render them correctly? For e.g. return tiles with extent 512 for zoom less than maxzoom and 8192 for maxzoom. |
|
@mb12 sure,
|
|
Are we at all performance sensitive about the floating point operations in |
|
The extra work done by This seems ok, right? |
Convert all geometries to the maximum extent supported by our buffers and then use that constant extent everywhere else.
c87a8b1 to
4e0d107
Compare
GeoJSONTile and AnnotationTile don't need to reimplement getExtent() if they use the same default value. This also helps point and shape annotations to avoid using raw values.
Convert all geometries to the maximum extent supported by our buffers and then use that constant extent everywhere else.
ports 1da1e5ab2bd10ea4d427d4f8dacd77e54f47e0b9 from -js
fixes #250
Only the line extent render test is re-enabled. The rest of the extent render tests have other differences causing them to still fail. I'll work on these separately: #3764 #3765
👀 @jfirebaugh