Vector Tile Layer Broken After Upgrade to arcgis/core

111
1
2 weeks ago
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