g.setInfoTemplate(null); g.setAttributes(null);
[NIM090748: Printing service fails to honour the font size of textSymbols.]
but then I hit the second bug of it not taking any styles to the print .
var graphic = new esri.Graphic(evt, app.anno.sym.point); var gId = new Date().getTime().toString(); var atts = { id: gId }; graphic.setAttributes(atts); var it = new esri.InfoTemplate(); it.setTitle('Point'); it.setContent(app.anno.itContentPoint(gId)); graphic.setInfoTemplate(it); graphic.graphic_id = gId; graphic.graphic_atts = atts; graphic.graphic_it = it; graphic.graphic_text = false; app.map._layers.gl_anno_point.add(graphic)
graphicsClear: function () { dojo.forEach(app.map._layers.gl_anno_polygon.graphics, function (g) { g.setInfoTemplate(null); g.setAttributes(null); }); dojo.forEach(app.map._layers.gl_anno_polyline.graphics, function (g) { g.setInfoTemplate(null); g.setAttributes(null); }); dojo.forEach(app.map._layers.gl_anno_point.graphics, function (g) { g.setInfoTemplate(null); g.setAttributes(null); }); dojo.forEach(app.map._layers.gl_anno_marker.graphics, function (g) { g.setInfoTemplate(null); g.setAttributes(null); }); dojo.forEach(app.map._layers.gl_anno_text.graphics, function (g) { g.setInfoTemplate(null); g.setAttributes(null); }); }, graphicsReset: function () { dojo.forEach(app.map._layers.gl_anno_polygon.graphics, function (g) { g.setInfoTemplate(g.graphic_it); g.setAttributes(g.graphic_atts); }); dojo.forEach(app.map._layers.gl_anno_polyline.graphics, function (g) { g.setInfoTemplate(g.graphic_it); g.setAttributes(g.graphic_atts); }); dojo.forEach(app.map._layers.gl_anno_point.graphics, function (g) { g.setInfoTemplate(g.graphic_it); g.setAttributes(g.graphic_atts); }); dojo.forEach(app.map._layers.gl_anno_marker.graphics, function (g) { g.setInfoTemplate(g.graphic_it); g.setAttributes(g.graphic_atts); }); dojo.forEach(app.map._layers.gl_anno_text.graphics, function (g) { g.setInfoTemplate(g.graphic_it); g.setAttributes(g.graphic_atts); }); }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.