Recently I have deployed WMTS with GeoServer, using MVT (PBF) format tiles.
I use Leaflet JS parsing PBF tiles.
Layer displaying and interactions are normal. I have generated level 1-13 tiles beforehand,did not generated level 14 tiles and other bigger level tiles.
I use setting maxNativeZoom value to realize displaying level 14 and other bigger level.
But I have another problem: When I zoom to level 16 with leaflet, I wrote following code:
var vectorTileOptions = { layerURL: url, rendererFactory: L.canvas.tile, wtms: true, tileSize:256, vectorTileLayerStyles: vectorTileStyling, interactive: true, //开启VectorGrid触发mouse/pointer事件 //zoom: 11, maxZoom: 18, minNativeZoom:6, maxNativeZoom:13, getFeatureId: function (f) { return f.properties.ID; } }; var vectorTile = new L.vectorGrid.protobuf(url, vectorTileOptions).addTo(map); The dispalying style like blow:
The lines are so fuzzy.
But when I use Openlayers in the same place,the dispalying style like blow:
The lines are so normal.
How can I generate the same normal result with Leaflet?



