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

[styles] Better representation of island names according to their size #8464

Open
patepelo opened this issue Jun 14, 2024 · 2 comments
Open
Labels
Generator Related to generator tool. Styles Map drawing styles World Map Issues about improving the base map of the whole world that is bundled with the app

Comments

@patepelo
Copy link
Contributor

Currently all islands are represented at the same zoom level. See the island of Corsica as an example.

Describe the ideal solution
Represent major size islands according to their bbox like it's currently done for water bodies. Find a balance between islands, towns and administrative borders.

Additional context
Example of Corsica
Screenshot_20240614-100613

CC: @pastk @biodranik

@patepelo patepelo added Styles Map drawing styles World Map Issues about improving the base map of the whole world that is bundled with the app labels Jun 14, 2024
@patepelo
Copy link
Contributor Author

cc: @organicmaps/styles

@pastk
Copy link
Contributor

pastk commented Jun 14, 2024

E.g. for waterbodies we have in styles

area|z10-13[natural=water][!tunnel][bbox_area>=4000000],
{font-size: 9;}
area|z10-13[natural=water][!tunnel][bbox_area<4000000],
{text: none;}

We can try use the same approach for islands.

But its unlikely to work out of the box, because atm islands labels are point POIs, i.e. the actual polygon is not stored in the map data.
Maybe if we add a [bbox_area] condition to styles then the generator will automatically make it an areal geometry feature (IDK).
But then it'd mean quite a lot of data will be stored just to be able to calculate an approx area at run-time.

A much more efficient approach would be to calc area sizes at the generation stage and derive several feature types like place-island-small/medium/big.

(so its another case when this "dynamic bbox_area" approach is suboptimal, see #6331)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Generator Related to generator tool. Styles Map drawing styles World Map Issues about improving the base map of the whole world that is bundled with the app
Projects
None yet
Development

No branches or pull requests

2 participants