So basically I am using the mapbox-gl-leaflet plugin to render mapbox vector tiles on leaflet map. Now I am trying to load ArcGIS vector tiles in the plugin but the vector tile is not rendering on the map. It is specified that the plugin supports any vector tile source like for example this one https://api.maptiler.com/maps/topo/style.json?key=input_key_here which loads without any problems. But the ArcGIS map that I am trying to load: https://www.arcgis.com/home/webmap/viewer.html?webmap=28f49811a6974659988fd279de5ce39f doesn't load in the plugin.
The URL request (points to a 404): https://www.arcgis.com/sharing/rest/content/items/28f49811a6974659988fd279de5ce39f/resources/styles/root.json
Also from the chrome developer console I get these errors when trying to load the vector map:
evented.js:140 Error: missing required property "version"
at Object.Un [as emitValidationErrors] (validate_style.js:37)
at Be (style.js:46)
at i._load (style.js:245)
at style.js:225
at ajax.js:165
evented.js:140 Error: missing required property "sources"
at Object.Un [as emitValidationErrors] (validate_style.js:37)
at Be (style.js:46)
at i._load (style.js:245)
at style.js:225
at ajax.js:165
evented.js:140 Error: missing required property "layers"
at Object.Un [as emitValidationErrors] (validate_style.js:37)
at Be (style.js:46)
at i._load (style.js:245)
at style.js:225
at ajax.js:165
Edit* adding code example
<!DOCTYPE html>
<html>
<head>
<title>WebGL</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
html,
body,
#map {
width: 100%;
height: 100%;
margin: 0;
background: white;
}
</style>
<!-- Leaflet -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<!-- Mapbox GL -->
<link href="https://api.tiles.mapbox.com/mapbox-gl-js/v1.9.1/mapbox-gl.css" rel='stylesheet' />
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v1.9.1/mapbox-gl.js"></script>
<script src="https://rawgit.com/mapbox/mapbox-gl-leaflet/master/leaflet-mapbox-gl.js"></script>
</head>
<body>
<div id="map"></div>
<script>
var token = 'your mapbox token';
var leafletMap = L.map('map').setView([38.912753, -77.032194], 2);
var satelliteArcGIS = L.mapboxGL({
accessToken: token,
style: 'https://www.arcgis.com/sharing/rest/content/items/28f49811a6974659988fd279de5ce39f/resources/styles/root.json?f=pjson'
}).addTo(leafletMap);
</script>
</body>
</html>