Printing PictureMarkerSymbols
Hello,
I am trying to print my map using the Geocortex Essentials Silverlight printing sample provided online (Version 3.4.1). I have implemented that locally, however, when I try to print a graphic symbolized with a PictureMarkerSymbol it does not print the symbol. If I change that to a SimpleMarkerSybmol it will print every time. I have tried setting the source of my image to be a local resource inside the xap file and also set it as content to be downloaded from the server. Neither way seems to be working. Has anyone else had any success printing PictureMarkerSymbols? What am I missing? I can get the PictureFillSymbols to work with polygons so I know that the image is available to the printing service.
The support gurus say the following symbols are supported for printing (as of April 13, 2011)
SimpleMarkerSymbol
CartographicLineSymbol
SimpleLineSymbol
SimpleFillSymbol
TextSymbol
CalloutSymbol
PictureMarkerSymbol
PictureFillSymbol
Here is the xmal description of my symbol.
<esriSymbols:PictureMarkerSymbol x:Name="DefaultMarkerSymbol" OffsetX="14" OffsetY="38" Source="/CHK.WebMap.SL;component/Images/marker.png"/>
-
Picture marker symbols should work. I wonder if the problem is due to accessing an embedded resource. Try referencing the image as a regular old URL available on the web.
Jeff
0 -
Jeff,
Thanks for the suggestion. No dice. I tried it with the fully qualified path to the image (image was on the same server as the application just to be sure it had access via silverlight). It placed the image on the map as before but no image in the output of the printing. I then took that image and placed it in a PictureFillSymbol and applied that to my polygon geometries (both embed and full image url) and both of them printed sucessfully. I am now beginning to believe PictureMarkerSymbols are not supported in 3.4.1.
Note: This is the symbol that I tried and it didn't work so I just commented it out and put the SimpleMarkerSymbol below and the points printed.
<esriSymbols:PictureMarkerSymbol x:Name="DefaultMarkerSymbol" OffsetX="14" OffsetY="38" Source="http://myserver/app/Styles/Default/Images/add.png"/>
<esriSymbols:SimpleMarkerSymbol x:Name="DefaultMarkerSymbol" Color="Magenta" Size="15"/>Any other thoughts?
Thanks!
Justin0 -
Which version of the Geocortex Silverlight API are you using?
0 -
I am using Essentials 3.4.1 with Silverlight API version 2.4.0.241.
0 -
I changed my code to use an older version of the Silverlight API, version 2.3.0.437, and tried the same steps mentioned above. It did not work in that version either. Do you think the problem would be in the Silverlight API or in the Essentials core product itself? I suppose I could revert back the core product install to 3.3 or something like that for testing, however, I could not revert back in our production environment. Do you think I should report this to the support team as a potential bug?
Thanks!
Justin
0 -
The problem could be in either the Silverlight API or Essentials core. I can't tell at this point. In any event, it does look like it could be a bug, so yeah you can definitely report it.
Jeff
0 -
Will do, thanks for your help Jeff. I appreciate you!
0 -
Update from Support:
Support has declared this a bug within the Silverlight API 2.4.0.241 (an probably the previous versions). There is currently no work-around for this.
The workaround I am implementing for this is to substitute the PictureMarkerSymbol with a SimpleMakerSymbol before printing in another graphic layer so the users can at least see the points.
Justin
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
8 kommentarer