Raruto / leaflet-kmz

A KMZ file loader for Leaflet Maps
GNU General Public License v3.0
48 stars 27 forks source link

Marker icons are cut on the edges of map canvas tiles #2

Closed Raruto closed 5 years ago

Raruto commented 5 years ago

This problem occurs when using/activating the geojson-vt.js library

clipped-markers

Apparently all the icons wich insist on two tiled canvas are cutted

clipped-markers

But, in this image, the icon circled in yellow does not seem to suffer of these kind of problems...


You can see this problem in action directly in this example and adding the following portion of css code:

.leaflet-tile-container canvas {
    border: 1px solid #fff; /* show map tiles grid borders */
}

if you have any suggestions on how to solve this annoying problem, please fork and commit!

Raruto commented 5 years ago

it can be solved increasing the buffer size between the geojson-vt tiles