Select to view content in your preferred language

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

2773
1
04-13-2016 08:29 AM
MarcBate
Frequent 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
Frequent 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