This PR will allow L.VectorGrid.Protobuf to accept bbox as an option. It's a L.latLngBounds object that defines the boundary box of the layer. If it's specified, the _getVectorTilePromise() function will first check if the requested area is outside the layer boundary bbox and not send the request if so. This is useful for people, especially who use dynamically generated vector tile, to reduce the unnecessary calculation.
This PR will allow
L.VectorGrid.Protobuf
to acceptbbox
as an option. It's aL.latLngBounds
object that defines the boundary box of the layer. If it's specified, the_getVectorTilePromise()
function will first check if the requested area is outside the layer boundary bbox and not send the request if so. This is useful for people, especially who use dynamically generated vector tile, to reduce the unnecessary calculation.