How to use SVG as a marker image in Map

1400
1
07-31-2021 12:47 AM
balakrishnak
New Contributor

We want to use SVG icon as a marker in map view..

Its working fine with JPG/PNG. But we tryinh to use SVG facing challenges.

Please let me know, if we have any method or approach or sample code.

Thanks in advance

Tags (3)
0 Kudos
1 Reply
DrVSSKiran
Occasional Contributor II

 

Attached code helps the setPath() method of the SimpleMarkerSymbol class. Using this method you can create a customized marker icon from any SVG path. You may also use the setColor() method to customize its filled color.