Leaflet.VectorGrid icon indicating copy to clipboard operation
Leaflet.VectorGrid copied to clipboard

Half pixel gap between canvas tiles

Open chriszrc opened this issue 6 years ago • 6 comments

screen shot 2018-04-17 at 1 47 42 pm

I'm guessing this has something to do with leaflet itself, does anyone know if this plugin would address the problem?

https://github.com/Leaflet/Leaflet.TileLayer.NoGap

chriszrc avatar Apr 17 '18 17:04 chriszrc

Can we not find out the root cause? What's your tile size?

tomchadwin avatar Apr 17 '18 17:04 tomchadwin

Normal tile size (256), and whole number zoom levels. The tilelayer no gap fix seems to add all the data to a full map size canvas in order to deal with the problem, seems rather heavy handed, but maybe that was the only way-

chriszrc avatar Apr 17 '18 18:04 chriszrc

You've got buffers set in the source VT data?

tomchadwin avatar Apr 17 '18 18:04 tomchadwin

Yes, buffers are set in the source, in this case it's postgis:

ST_AsMVTGeom(web_geom, TileBBox($5::int, $6, $7), 4096, 256, false) geom

I experienced the feature clipping issue here (https://github.com/Leaflet/Leaflet.VectorGrid/issues/149) and was able to resolve that-

chriszrc avatar Apr 17 '18 18:04 chriszrc

Sounds like a duplicate of https://github.com/Leaflet/Leaflet/issues/4844

IvanSanchez avatar Apr 18 '18 07:04 IvanSanchez

The tilelayer no gap plugin I mentioned in initial issue is indeed the result of the work on that issue-

On Wed, Apr 18, 2018 at 3:52 AM, Iván Sánchez Ortega < [email protected]> wrote:

Sounds like a duplicate of Leaflet/Leaflet#4844 https://github.com/Leaflet/Leaflet/issues/4844

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Leaflet/Leaflet.VectorGrid/issues/160#issuecomment-382297694, or mute the thread https://github.com/notifications/unsubscribe-auth/AYgWKVFmKdnrVjHAhZUK142VBY83o6JNks5tpvDZgaJpZM4TYw7V .

--

Chris Marx ZevRoss - Know Your Data Data Science & Spatial Analysis New website: www.zevross.com Ithaca, NY

chriszrc avatar Apr 18 '18 13:04 chriszrc