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); }); }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.