Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Many Graphics is doesn't work with TextSymbol with MapFont since Version 3.01 #320

Closed
dirk193 opened this issue Mar 28, 2024 · 2 comments · Fixed by #326
Closed

Add Many Graphics is doesn't work with TextSymbol with MapFont since Version 3.01 #320

dirk193 opened this issue Mar 28, 2024 · 2 comments · Fixed by #326
Labels
bug Something isn't working

Comments

@dirk193
Copy link

dirk193 commented Mar 28, 2024

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

@TimPurdum
Copy link
Collaborator

@dirk193 thanks for this, it is a legit bug, will fix shortly!

@TimPurdum TimPurdum added the bug Something isn't working label Apr 6, 2024
@dirk193
Copy link
Author

dirk193 commented Apr 7, 2024

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants