AnsweredAssumed Answered

How to use style-change event of VectorTileLayer

Question asked by yuki_ozawaesrij-esridist Employee on Nov 24, 2015
Latest reply on Dec 2, 2015 by KEkenes-esristaff

VectorTileLayer class has style-change event.

This event don't fire even if change a style of VectorTileLayer using setStyle methods.

I want to use style-change event.


var map = new Map();

//make map view and bind it to the map
var view = new MapView({
  container: "viewDiv",
  map: map,
  center: [-100.33, 25.69],
  zoom: 10

var tileLyr = new VectorTileLayer({
  url: ""

on(changeStyle, "click", function() {

tileLyr.on("style-change", function(){
  console.log("style changed");