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

04-13-2016 08:29 AM
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 .  

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

Tags (3)
0 Kudos
1 Reply
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