Я создаю плитки, используя L.vectorGrid.protobuf
, который отлично работает. Однако стилизация полигонов с использованием этого плагина листовки , похоже, не работает! Любые предложения ??
// Custom Stripes.
var bigStripes = new L.StripePattern({
patternContentUnits: 'objectBoundingBox',
patternUnits: 'objectBoundingBox',
weight: 0.1,
spaceWeight: 0.1,
height: 0.2,
angle: 45
});
var vectorTilePolyOption = {
rendererFactory: L.canvas.tile,
vectorTileLayerStyles: {
default: function(e) {
console.log(e)
return{
fillPattern: bigStripes,
fillColor: "blue",
color: "red",
weight: 1,
opacity: 0.5,
fillOpacity:0.5,
fill: true
}
},
},
};
https://teastman.github.io/Leaflet.pattern/pattern-stripes.html