Printing with SVG PictureFillSymbol

920
3
10-28-2013 12:38 PM
YamunadeviRathinasamy
New Contributor II
I am having a graphicslayer with SVG picture marker symbol, If I try print it fails.
any idea?
var PictureMarkerJSON = {};
          PictureMarkerJSON["url"] = "../../../images/myimage.svg";
//also I tried web path "http://webserver/images/myimage.svg"
          PictureMarkerJSON["contentType"] = "image/svg+xml";
          PictureMarkerJSON["angle"] = 0;
          symb = new PictureMarkerSymbol(PictureMarkerJSON);

          symb.width = w;
                    symb.height =h;
3 Replies
YamunadeviRathinasamy
New Contributor II
I tried print again actually it prints with default point symbol not my SVG image. any ideas would be appreciated.
0 Kudos
ManishkumarPatel
Occasional Contributor II
Hi Yamunadevi,

Have you tried adding the MIME type in IIS to serve the .svg files. Simply add the following MIME type declarations via IIS Manager (HTTP Headers tab of website properties):

Filename extension               MIME type
     .svg                              image/svg+xml


Let me know if this works for you.

Best Regards,
Manish
0 Kudos
YamunadeviRathinasamy
New Contributor II
Thanks Manish.
I have mime type added for .svg in my application IIS server and WebAdaptor IIS.
This svg file wrks fine on my application I can see that picture symbol on Map. Only issue is not printing. it prints just point.
I am using ArcGIS 10.1 advanced printing.

Regards,
Yamuna.
0 Kudos