Azgaar / Fantasy-Map-Generator

Web application generating interactive and highly customizable maps
https://azgaar.github.io/Fantasy-Map-Generator
Other
4.48k stars 636 forks source link

Unreadable state labels when generated from biome layer #1052

Closed basxto closed 6 months ago

basxto commented 6 months ago

Describe the bug

When generating new maps with biomes view, state labels become unreadable. It doesn’t look like it really has to be “Biomes map”, but that “Labels” layer not being active during generation. On first sight it looks like the character width of curved labels got calculated wrong since straight burg labels look fine.

The labels can be fixed with a click on label regeneration.

Steps to reproduce

  1. Select “Layer preset” “Biomes map”
  2. Generate a “New Map!”
  3. Switch to “Layer preset” “Political map”

Expected behavior

Readable state names

.map file

Givraia 2024-03-04-18-34.map.zip

Screenshots

03-04_18:34_1600x788

System

Azgaar commented 6 months ago

It seems to be Firefox-specific issue, looking into it

basxto commented 6 months ago

No, ec5e44b94a86a6a713416642d97805253d2743fc (1.96.03) also fixed this issue. It works now.

Azgaar commented 6 months ago

I can still see the issue in FF

basxto commented 6 months ago

For 1.96.03? I tested in my still open 1.96.02 tab, where it indeed still occurs, and the new 1.96.03, where it doesn’t even though I’m doing the same actions.

Azgaar commented 6 months ago

Should be fine now. The Labels layer rendering was dependent on layer visibility in Firefox and labels size calculation was incorrect. Now it should be fine