Open r4naf opened 3 years ago
<script>
var vectorTilePolyOption = {
rendererFactory: L.canvas.tile,
vectorTileLayerStyles: {
default: function(e) {
console.log(e)
return{
color: '#00F',
weight: 1
}
},
},
};
var openmaptilesUrl = "http://192.168.0.57:8080/{z}/{x}/{y}.pbf";
var openMapTilesLayer = L.vectorGrid.protobuf(openmaptilesUrl, vectorTilePolyOption);
</script>
Happened! But the points are not shown in any way.
I have only polygons and points in my database. It is in one table and one column. I do not store any more signs (river, house, etc. ... this is not). Polygons are displayed normally. I just need to display the points, with my own style. It's strange why the points are not shown. Also, I cannot change the style for all polygons. I looked at the help. Perhaps I need something much simpler ... Thank you in advance!
SQL on server: