After loading webmap, set the map's showLabels property to true

2347
1
04-13-2016 08:29 AM
MarcBate
Occasional Contributor

After loading webmap, set arcgisUtils.createMap I want to be able to add new layers which I label.  However, There's no map.setShowLabels method, and setting the map.showLabels = true directly doesn't work (where map is from the response.map) .  

Am I missing something because surely I should be able to label my layers after loading a webmap?

Tags (3)
0 Kudos
1 Reply
MarcBate
Occasional Contributor

I found the answer to this myself.  The arcgisUtils.createMap takes a mapoptions parameter:

var deferred = arcgisUtils.createMap(id, "map", {

  mapOptions: {

  showLabels : true
  }

});

0 Kudos