Select to view content in your preferred language

Vector Tile Layer Broken After Upgrade to arcgis/core

162
1
04-24-2024 11:22 AM
BetulPercinel
New Contributor

Hello,

We upgraded the JavaScript library in our project to ArcGIS/core and vector tile layer labels are not loading properly as seen in the screenshot. 

BetulPercinel_0-1713982863758.png

 

0 Kudos
1 Reply
BetulPercinel
New Contributor

The issue has been resolved after creating VectorTileLayer and adding it to the map view object.

 

const layer = new VectorTileLayer({
portalItem: {
id: this.appSettingsService.appSettings.vectorTileLayer
},
visible: true
});

this.esriMap.add(layer, 0);

 

Thanks

0 Kudos