/// <summary> /// Create graphic object for editing marker. /// </summary> /// <param name="editingMarker">Source editing marker.</param> /// <returns>Graphic object for editing marker.</returns> public static EditMarkerGraphicObject Create(EditingMarker editingMarker) { EditMarkerGraphicObject graphic = null; Symbol editMarkerSymbol; if (editingMarker.MultipleIndex > -1) editMarkerSymbol = new EditingMarkerSymbol(); else editMarkerSymbol = new PencilSymbol(); graphic = new EditMarkerGraphicObject(editingMarker) { Symbol = editMarkerSymbol }; graphic.SetZIndex(ObjectLayer.FRONTZINDEX); return graphic; }
/// <summary> /// Create graphic object for editing marker. /// </summary> /// <param name="editingMarker">Source editing marker.</param> /// <returns>Graphic object for editing marker.</returns> public static EditMarkerGraphicObject Create(EditingMarker editingMarker) { EditMarkerGraphicObject graphic = null; Symbol editMarkerSymbol; if (editingMarker.MultipleIndex > -1) { editMarkerSymbol = new EditingMarkerSymbol(); } else { editMarkerSymbol = new PencilSymbol(); } graphic = new EditMarkerGraphicObject(editingMarker) { Symbol = editMarkerSymbol }; graphic.SetZIndex(ObjectLayer.FRONTZINDEX); return(graphic); }