Select to view content in your preferred language

Multisource Vector Tile and Raster map service

849
2
09-18-2024 02:38 AM
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
2 Replies
Andy-Green
Esri Contributor

ArcGIS clients only implement vector tile sources in styles. We do support multiple vector sources though. The difficulty we have is that the vector tile style is a whole map spec for mapbox. For us, we just use it for vector tile layers. Hillshade + vector tiles should be done as two layers in the ArcGIS ecosystem (can be saved out as a web map). This also gives Esri the advantage of supporting things like blend modes that the style spec doesn’t support.

MarcelloTola
New Contributor

Dear @Andy-Green ,

Thanks for your reply. 
I realise it isn’t possible to implement the map in that way. In the meantime, I’d already adopted the two-layer structure. Thanks again, and please keep me updated on any developments.

0 Kudos