shaun_weston-eagle-co-nz-esridist

Text Symbol to Export Web Map

Discussion created by shaun_weston-eagle-co-nz-esridist on Aug 27, 2013
Latest reply on Jun 20, 2014 by jskinner-esristaff
I've setup some javascript code to add a text symbol to the map and then use the export web map task, but finding that what's on the map is different to what's appearing in the printout from the export web map task.

e.g.

[LEFT]
             var textSymbol = new esri.symbol.TextSymbol( "Hello World" ).setColor([/LEFT]
[LEFT]    new dojo.Color([128, 0, 0])).setAlign(esri.symbol.Font.ALIGN_START).setAngle(45).setFont([/LEFT]
[LEFT]    new esri.symbol.Font( "12pt" ).setWeight(esri.symbol.Font.WEIGHT_BOLD));[/LEFT]



If I add this code in to add to the map where a user clicks, then print the map, this text comes up as regular black text as opposed to what is shown on the map, so the angle, color and font family is not coming through to the export web map task. Is this not possible or am I doing something wrong in my code?

Outcomes