Select to view content in your preferred language

Multisource Vector Tile and Raster map service

76
0
a week ago
Spike73
Occasional Contributor

Hi all,

I'm setting up a Multisource vector tile custom basemap and I would like to include a raster Hillshade. I've tried with the following code in the style file but it hasn't work:

 

 

"sources": {
       "landuse": {
            "type": "vector",
            "url": "https://ags1.organization.org/arcgis/rest/services/Hosted/TerrainLanduse_V01/VectorTileServer"
        } ,
        "landcover": {
            "type": "vector",
            "url": "https://ags1.organization.org/arcgis/rest/services/Hosted/TerrainLandcover_V01/VectorTileServer"
        }, 
        "hillshade": {
            "type": "raster",
            "tiles": [
                "https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer/tile/{z}/{y}/{x}"
              ],
              "tileSize": 256
            }
    },

    "layers": [
        {
            "id": "Hills",
            "type": "raster",
            "source": "hillshade",
            "paint": {
                "raster-opacity": 0.85
            }
        },

....
more layers

 

 

Is it possible to also include raster sources in multisource vector tile style files?
0 Kudos
0 Replies