-
Notifications
You must be signed in to change notification settings - Fork 831
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
Rendering of leisure=beach_resort #2440
Comments
2016-11-14 21:42 GMT+01:00 doktorpixel14 notifications@github.com:
that's orthogonal. You'll tag the beach as natural=beach and a beach resort |
So should we change this in the Wiki? Because in my opinion, it sounds like you can't use both tags in one place. |
2016-11-15 19:13 GMT+01:00 doktorpixel14 notifications@github.com:
The natural=beach tag has no such limitations and even explicitly mentions |
Okay, so we clarified that, but I think, that it would be still a good idea to render this tag ;-) |
It says opposite: "Use additional objects tagged with natural=beach and name=* for entire beaches."
Wiki never said "instead", please read carefully. |
Yes, after dieterdreist changed it :) |
Looks OK for me, but the most important part is testing icons with 14 px, because even nice design can break with so small matrix. |
I already have it as an svg but can't attach it to posts here |
You can export it as PNG (which is needed anyway, because it's how it will look on the map) and SVG can be uploaded as gist, because it's just code (XML) after all. |
It still looks nice and readable for me. The best way is to make a fork with a branch, change the code to use this icon and render some real area. I guess it's easiest to install Docker-based testing environment: https://github.com/gravitystorm/openstreetmap-carto/blob/master/DOCKER.md If you need some help just write. |
Unfortunately Docker doesn't work on my computer, beacause I can't activate "Hyper-V". So it would be nice if someone else could try it out for me... (I expect that it doesn't take that much time, does it?) |
There's also traditional way, Docker is meant only to make the process easier: https://github.com/gravitystorm/openstreetmap-carto/blob/master/INSTALL.md If you make the code, I can try it too. |
If you're on Windows, you can probably try VirtualBox and install Linux inside, like Ubuntu 16.04 for example - 64-bit arch might be needed for Kosmtik. Docker would be slower then, but it's still the easiest way and this test is quite simple, so it doesn't need anything big and fast. |
@doktorpixel14 Can you upload your SVG file to Gist? |
Yes, you can find it here: https://gist.github.com/doktorpixel14/fe72d5aa4d070385b6ba3f993bec0ca3 |
They should be independent, I guess. Where is this place - could you post a link? |
Another idea that came to my mind is to add an outline to beach resorts which are mapped as an area. It would be useful to see where the resort ends and where the next one begins or where there is a public beach again. |
Try to check in the Data inspector in Kosmtik how is it being selected. The area rendering is defined in https://github.com/gravitystorm/openstreetmap-carto/blob/master/landcover.mss. |
I don't really get how to use the data inspector. What do the colours mean? I only see different brown shades. |
You go close to the item you want to inspect (to avoid clutter) and click on the map on it, so the list of data attributes appears - that's the data as defined in project.mml. To make the selection more strict, you can turn on the view of only the data layers you want to test. |
If I click on an item nothing happens. Do I have to select a tool or something like that first? |
Thanks for testing it!
As I know, most of these resorts doesn't have a physical borders, so I think outline would be unnessesary and little bit confusing. |
Yes, there's a problem with layers, as you can see. My Docker is out of order now and I don't know why, so I can't check the source of it, but maybe try to rebuild the kosmtik container. |
Hmm, didn't help. |
Does anybody else with Docker could test if it builds properly? That's probably something with Mapnik, CartoCSS changes and Kosmtik npm version, so packaging and dependencies in general. |
Could you publish the code at least, so we could test it too? |
So here is what I changed: |
The most convenient way is to just use your fork and push the changes to a branch named like "beach_resort" and then just let us know which is it (for example https://github.com/kocio-pl/openstreetmap-carto/tree/castle ). |
Just follow the link in my previous post. I already did that. |
Here is the fix: 74915de The problem was you have added it to the The only layer you need for selecting areas for icons is |
I would try with z16+ - these are bigger, general areas, and that would be also on pair with similar picnic zone (tourism=picnic_site) or camping (tourism=camp_site). |
Yes, that's probably better, because you would also see it before the resort's amenities then. |
I'm not sure, but if you have no specific needs or known pitfalls, try to follow similar cases (like mentioned camping or picnic sites) for the sake of conceptual consistency and code compactness. |
Okay, I followed the example of the picnic sites by hiding names in zoom level 16. In addition, I made the code for the label a bit more compact. So would you declare it ready for an pull request or is there still a step missing? |
It is more or less ready in my opinion, there are however some technical things related to a project management:
|
And how do I merge the commits? |
Probably like this: https://stackoverflow.com/questions/5308816/how-to-use-git-merge-squash I do it in a different way - resetting the branch in a visual editor (namely gitk) in a mixed mode and then reapplying adding files and commit. Maybe I will test this way too, however I don't need to do it too much, so I don't care. |
Is this really necessary? I don't find a way that works for me ... |
Do you have a problem with It's not mandatory, but it's always good to not have many changes that are not standalone and are just part of the solution. If you fail, we can go on with what you have for now. |
Maybe beach_resort option should be not used? |
Then it says 'already up-to-date' |
So OK, I will squash them later and try to do it on my own to learn. Or maybe somebody with better git knowledge can help you? |
Ah, I found a simple way to merge the commits via the web interface by myself. |
Leisure=beach_resort is an important tag in touristical regions. The wiki tells us, that we have to tag this instead of natural=beach, if the beach area is managed. Because of that, there is a white hole on the map in some coastal areas and that doesn't look very good. Maybe you could use the same colour like on natural=beach, but with an parasol symbol in the center.
The text was updated successfully, but these errors were encountered: