ICGC - ESRI -Piràmides rasters

Veure codi font pantalla completa



        <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
            <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no" />
            <title>ICGC - ESRI -Catmaps</title>
            <link rel="stylesheet" href="https://js.arcgis.com/3.35/esri/css/esri.css">
            <style>
                html,
                body,
                #map {
                    height: 100%;
                    width: 100%;
                    margin: 0;
                    padding: 0;
                }
            </style>
            <script src="https://js.arcgis.com/3.35/"></script>
            <script>
                require([
                    "esri/map",
                    "esri/layers/WebTiledLayer",
                    "dojo/domReady!"
                ], function (Map, WebTiledLayer) {
                    var map = new Map("map", {
                    
                        center: [2.8508, 41.8567], // longitude, latitude
                        zoom: 8
                    });
                    var weblayer = new WebTiledLayer("https://geoserveis.icgc.cat/servei/catalunya/mapa-base/wmts/topografic/MON3857NW/${level}/${col}/${row}.png", {
                      "copyright": 'Institut Cartogràfic i Geològic de Catalunya ',
                      "id": "icgc"
                  });
                  map.addLayer(weblayer);
      
                });
            </script>
        </head>
        <body>
            <div id="map"></div>
        </body>
        </html>