You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"> <option value="Point">Point</option> <option value="Polyline">Polyline</option> <option value="Polygon">Polygon</option> <option value="Text">Text</option> </select>
Run it
The text was updated successfully, but these errors were encountered: