Skip to main content
9 events
when toggle format what by license comment
Jul 30, 2020 at 3:30 comment added noblemaster This blog article by Daniel Smilkov gives a sample implementation: Largest rectangle in a polygon. Anyhow, there is no "easy" solution. Given you don't need a perfect solution, I'd write something brute-force simply checking enough points (not perfect) to be good enough to place the text.
Aug 30, 2019 at 18:26 vote accept FiveShipHUN
Aug 30, 2019 at 7:38 answer added MatejC timeline score: 1
Aug 29, 2019 at 19:54 comment added FiveShipHUN I have tried the labels but I could not do it (maybe I did something wrong). It took more time to check wether the area is on the screen than rendering everything. EDIT: I put the method how I checked.
Aug 29, 2019 at 19:52 history edited FiveShipHUN CC BY-SA 4.0
I cannot do label because I render everything twice (I use two worldmap to simulate circual world) and 3000 is okay but 6000 is impossible. I tried checking wether the area is on the screen or not but it took more time than rendering everything. (Maybe I did something wrong)
Aug 29, 2019 at 18:31 comment added DMGregory Do all 3000 of your regions need to show a label simultaneously, or only the ones currently on-screen / at sufficient zoom to be legible? Think of Google Maps - you don't see every label all at once. ;)
Aug 29, 2019 at 18:28 comment added FiveShipHUN Can you please help me how I can do that?
Aug 29, 2019 at 18:10 comment added Ocelot Try concave decomposition and then put the text inside the biggest convex's centroid, possibly varying font size depending on the size of the convex.
Aug 29, 2019 at 17:44 history asked FiveShipHUN CC BY-SA 4.0