Using ArcGIS Esri 100.9 with .NET Wpf, I am trying to combine a point icon and a line geometry, but I am not sure how to do that. I want to have a line with the point symbol at the start point and only the start point. Is there any way to do that without creating separate graphics? I am using either a PictureMarkerSymbol
or a MultilayerPointSymbol
for the point icon, and a PolyLine
for the line's geometry. Is there any way I can combine the two for a graphic? I tried using a CompositeSymbol
with PictureMarkerSymbol
and SimpleLineSymbol
, but that created a line with the point symbol at each vertex.
PictureMarkerSymbol pointSym = GenerateSymbol(iconInfo); // custom generation function
Geometry geo = new PolyLine(iconInfo.Points);
Symbol sym = // generate the appropriate symbol for the graphic
Graphic g = new Graphic(geo, sym);