Select to view content in your preferred language

SVG Graphics in ArcGis SDK WPF 10.2.3

3466
2
06-19-2014 12:32 AM
Labels (1)
EugenReiswich
Emerging Contributor
Hi folks,

we would like to resize graphics depending on the zoom level of a map. As png or jpg files get pretty fast blurred we would like to use SVG graphics. I tried to load them as byte array and set the graphics symbol, but this did't work. Any ideas?
            Graphic myGraphic= new Graphic
            {
                Geometry = myGeometry,
                Symbol = mySVGSymbol
            };


Regards,
Eugen
0 Kudos
2 Replies
MichaelBranscomb
Esri Frequent Contributor
Hi,

The supported symbol types are:

SimpleMarkerSymbol
PictureMarkerSymbol
SimpleLineSymbol
SimpleFillSymbol
PictureFillSymbol
TextSymbol

For custom symbols you could consider creating a WPF element then using RenderTargetBitmap to create an image to use as a PictureMarkerSymbol. We currently do not supported SVG symbols.

GraphicsLayer in Dynamic rendering mode should dynamically redraw the symbols to give a smooth experience when zooming in/out?

Cheers

Mike
0 Kudos
EugenReiswich
Emerging Contributor

Just came back from holidays and found your answer. RenderTargetBitmap worked fine, thanks Mike!

0 Kudos