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

Render the name of islets #983

Closed
wants to merge 2 commits into from
Closed

Render the name of islets #983

wants to merge 2 commits into from

Conversation

sommerluk
Copy link
Collaborator

This fixes #159

@matthijsmelissen
Copy link
Collaborator

I think this would also benefit from an approach based on way_pixels, see for example #941.

@HolgerJeromin
Copy link
Contributor

If i checked right, the project.yaml was not updated...

@pnorman
Copy link
Collaborator

pnorman commented Sep 25, 2014

@sommerluk
Copy link
Collaborator Author

@HolgerJeromin @pnorman Thanks for the hint. I even wasn't aware that project.yaml exists.

@math1985 I've played a little bit with way_pixels, adopting the values that you have used in #941 also for islands and islets in amenity-points.mss

.text {
  [feature = 'place_island'][zoom >= 7][way_pixels > 3000],
  [feature = 'place_island'][zoom >= 14],
  [feature = 'place_islet'][zoom >= 14][way_pixels > 3000],
  [feature = 'place_islet'][zoom >= 19] {
    text-name: "[name]";
    text-fill: #000;
    text-size: 9;
    [way_pixels > 12000] { text-size: 12; }
    [way_pixels > 48000] { text-size: 15; }
    text-face-name: @oblique-fonts;
    text-halo-radius: 1;
    text-placement: interior;
  }

Seems to work.

Is rendering from zoom level >=7 okay (performance)? Would probably be low enough to solve #988. Can we imagine even bigger islands that should get a label?

My new test code relies on the SQL way_pixels querry of #941 from @math1985. Should I wait until #941 is merged and then rebase? Or is it possible to base a PR on #941 even before this one is merged?

@matthijsmelissen
Copy link
Collaborator

My new test code relies on the SQL way_pixels querry of #941 from @math1985. Should I wait until #941 is merged and then rebase? Or is it possible to base a PR on #941 even before this one is merged?

If you like, you can change the SQL queries already in this PR, and I will rebase #941.

@sommerluk
Copy link
Collaborator Author

Okay.

The code is available at https://github.com/sommerluk/openstreetmap-carto/compare/islet_names_rendering

But I don't know how I can change this current pull request to the new content. (I'm still new not familiar with Github, but at least know I have a clean setup.) Is it okay to just open a new PR and close this one?

@matthijsmelissen
Copy link
Collaborator

Is it okay to just open a new PR and close this one?

Yes, that's perhaps the easiest way.

@sommerluk
Copy link
Collaborator Author

Closing in favor of #990.

@sommerluk sommerluk closed this Sep 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing name on islets
4 participants