Leaflet / Leaflet.VectorGrid

Display gridded vector data (sliced GeoJSON or protobuf vector tiles) in Leaflet 1.0.0
598 stars 194 forks source link

Half pixel gap between canvas tiles #160

Open chriszrc opened 6 years ago

chriszrc commented 6 years ago
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

tomchadwin commented 6 years ago

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

chriszrc commented 6 years ago

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-

tomchadwin commented 6 years ago

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

chriszrc commented 6 years ago

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-

IvanSanchez commented 6 years ago

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

chriszrc commented 6 years ago

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 < notifications@github.com> 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