Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
  <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"/>
  <title>Vector tiles</title>
  <style>
    html,
    body,
    #mapDiv {
      padding: 0;
      margin: 0;
      height: 100%;
      width: 100%;
    }
  </style>
  <link rel="stylesheet" href="//js.arcgis.com/3.19/esri/css/esri.css">
  <script src="//js.arcgis.com/3.19/"></script>
  <script>
    require([
      'esri/map',
      'esri/layers/VectorTileLayer',
      'dojo/domReady!'
    ], function(Map, VectorTileLayer) {
      var map = new Map('mapDiv', {
        center: [2.122809,41.380888],
        zoom: 2
      });
      var vector_basemap_url = '//www.arcgis.com/sharing/rest/content/items/763884983d3544c0a418a97992881fce/resources/styles/root.json';
      
      var tileLyr = new VectorTileLayer(vector_basemap_url);
      map.addLayer(tileLyr);
    });
  </script>
</head>
<body>
  <div id="mapDiv"></div>
</body>
</html>
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
hhkaospro
0viewers