private Symbol GenerateText() { return new TextSymbol( "Hello", color: new MapColor("red"), backgroundColor: new MapColor("transparent") , font: new MapFont(12, "Arial", "normal", "bold") ); }
In GenerateGraphic add:
case "Text": return new Graphic(GeneratePoint(), GenerateText(), GeneratePopupTemplate(), GenerateAttributes());
Replace this:
Add in ManyGraphics.razor following Code:
private Symbol GenerateText() { return new TextSymbol( "Hello", color: new MapColor("red"), backgroundColor: new MapColor("transparent") , font: new MapFont(12, "Arial", "normal", "bold") ); }
In GenerateGraphic add:case "Text": return new Graphic(GeneratePoint(), GenerateText(), GeneratePopupTemplate(), GenerateAttributes());
Replace this:` <select disabled="@_generating" @bind="_geometryType" @bind:after="SetGraphics">
`
Run it