-
Notifications
You must be signed in to change notification settings - Fork 823
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
Added styles for generic shop=* icon #604
Conversation
I was not able to test it unfortunately. I can't seem to get my tilemill setup working correctly for some reason. But it should be good, hopefully. |
I tested it and found the following:
With the change of the first point made,
|
Made those changes. |
I forgot one: on the same line, "or shop is not null" should be "or amenity is not null". |
Done |
Thanks for rebasing this. I tested this on Luxembourg, and it is an enormous improvement compared to the previous rendering. That said, there are still some improvements to be made:
|
We can't add comments to the MML file, as it's JSON which (stupidly) doesn't support comments. We could add them to the SQL, but ugh, escaping. |
Closed this for now - looking forward to the improvements. |
Ok, I made some more changes. (You'll have to re-open this pull request to see 'em) The biggest change I made was I included a new script in the root of the repo called shop_values.rb . This script generates the list of shops that should show up. The script queries the taginfo api to get all values for shop. It then takes all values with more than 100 instances, filters out empty string values, and anything in the "blacklist" (currently [ "no", "vacant", "fixme", "drugstore", "other", "*" ]. Yes, there 503 occurrences of a literal star as a value. smh). Then it outputs those in sql format (to be copy-pasted into the project.mml file. I also made the other changes suggested by math1985, so shops in areas should show up, and hopefully the names show up now. Unfortunately, I still have not found time to fix my local Tilemill, so I'd appreciate it if someone could test these commits for me 😄 Thanks. |
Thanks, I re-opened the issue (but didn't have time yet to review the code). |
Please add fish and fishmonger to the blacklist. Seafood is there and the right tag. Thanks |
+1. I think shop=betting can also go to the ignore list: see http://wiki.openstreetmap.org/wiki/Tag:shop%3Dbetting (Full disclosure: I was improved in this proposal). |
Some more:
|
Just made those changes. I worked on trying to get my tilemill working, but still no luck yet. Urg. |
More for the blacklist:
In these three cases the preferred versions have a wiki page and the alternatives don't. The preferred versions are also used (much) more often according to taginfo. Also, there's a typo in "jewellry" currently on the blacklist; should be "jewellery". |
for reference some tag usage of shape=jew* jewelry 13 095 |
Here's what I'm thinking will be in the blacklist: no I'm hesitant about the last two. Edit by pnorman: markdown fix |
Ok, I've made that change. I would like to keep this blacklist simple for the moment, so unless there's one like the ones included (values that mean "not a shop" or similar), I won't be making any more changes to it for this PR. If someone could please test this version of the PR, I'd be grateful. :) Assuming it looks good (no syntax errors, etc) I think we're ready for it to be merged. |
@math1985, would you mind testing this again for me? |
Tested, looks fine. As far as I'm concerned, it can be merged. |
@gravitystorm What do you think? |
@gravitystorm What is the status of this PR? |
I've merged this now - thanks @oddityoverseer13 ! As well as the usual merge conflicts, I moved the script and also had to fix the handling of the icons. We're using a mixture of marker and point symbolizers now, and this patch was causing the specific pointsymbolizer icons to disappear. But it's all working now. |
cool. how soon until we'll see this on osm.org? The readme says it gets an update at each point release, and it looks like those are roughly once a month. So August? just curious. |
I'm not sure what you mean with that. What was exactly wrong? Edit: I think I see it now. See also some background and the correction. |
@gravitystorm usually creates a release each time he accepts a bunch of PRs, so that would be probably today or tomorrow. After that, the server admins need to manually update the carto version on the server. Usually they do that within one or two days, but human intervention is necessary so no guarantees. Then it still takes a couple of hours for the server to update the tiles. |
@math1985 cool thanks |
This is showing up now on new tiles. It is a real improvement! Great work! Thank you, all! |
Just noticed a minor regression(?): |
Great improvement. Thanks. |
@daganzdaanda It looks like it still has an icon to me. can you provide a link and/or screenshot? |
Example: There are two department shops in the middle of the view: "Nanu-Nana" and "Douglas". Move the drag button on the bottom to see the change |
hmm. strange. Here's the one I was looking at (jcpenny in the middle of view: http://bl.ocks.org/tyrasd/raw/6164696/#17.00/39.85821/-105.05881 (nice app, btw. hadn't seen that.) |
same in aachen: |
This was maybe not yet new rendered. Now it has the dot also at zoom 18. |
Please open a new ticket! |
See #117 for details. This is a new pull request for the same thing.