In Leaflet 0.7x, this is made easy with the Leaflet.MapboxVectorTile plugin. You just need to specify the URL pattern in the url configuration option. The plugin documentation details the other configuration options that are available. To add the Mapillary data, you would use it like this:
var config = {
url: "https://d2munx5tg0hw47.cloudfront.net/tiles/{z}/{x}/{y}.mapbox"
};
var mapillarySource = new L.TileLayer.MVTSource(config);
map.addLayer(mapillarySource);
Here is a fiddle showing the result:
http://fiddle.jshell.net/nathansnider/sj12o4hj/
For Leaflet 1.0x, you will want to use Leaflet.VectorGrid's L.vectorGrid.protobuf method. It has a number of styling options described in the docs, but for just loading the tiles, you would use it like this:
var url = 'https://d2munx5tg0hw47.cloudfront.net/tiles/{z}/{x}/{y}.mapbox';
var mapillaryLayer = L.vectorGrid.protobuf(url).addTo(map);
Example fiddle:
http://fiddle.jshell.net/nathansnider/mwmpmLo7/
leaflet-mapbox-vector-tile) has 21 weekly downloads in 2024 and was last published 9 years ago, see https://www.npmjs.com/package/leaflet-mapbox-vector-tile – Ben Butterworth Mar 02 '24 at 16:40leaflet.vectorgrid) has 5980 weekly downloads in 2024 and was last published 7 years ago, see https://www.npmjs.com/package/leaflet.vectorgrid – Ben Butterworth Mar 02 '24 at 17:22