-
Notifications
You must be signed in to change notification settings - Fork 226
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
Missing Icons #617
Comments
This is what I get when running tilemaker with the bundled demo server and version of OSM Bright: Just guessing, but one possible cause is that the OpenMapTiles schema, exasperatingly, has no clarity about how names are meant to be encoded (openmaptiles/openmaptiles#930). I wonder if the version of the style you're using expects names to be in a different field from the one that tilemaker's processing script is writing. You can adjust this fairly easily in the first few lines of If you want to compare what's in the tilemaker-created tiles vs your existing tiles, you could use the inspect plugin, or vt2geojson. |
We're using bright. I'll see if I can get inspect plugin to work - it seems to be throwing an error at the moment. |
I think the most likely change would be changing |
its version 8 |
Ah, I think I can see. It is the stupid OpenMapTiles name issue again. Have a look at line 3603 in the style.json. The stylesheet contains the filter
several times, i.e. "only show if the name attribute is set". Which is fine, but it then goes on a few lines later to say
i.e. "render a text label using the 'name:latin' attribute". So it looks for the Easiest way to fix this would be to adjust tilemaker's Lua script (resources/process-openmaptiles.lua) so after this in line 687:
you add
then regenerate. That'll make sure it's set for both |
That's brought them back but places have different rank values. So in my live maps https://tiles2.tty.org.uk/index.html#16/51.906003/-2.04701 Clyde Crescent Play area has a rank of 21, in the new maps it is 25 Bus Stops just dont seem to be there at all So I think this is down to the node_keys and the poiClasses and poiClassRanks |
Yes, it isn't a like-for-like emulation of OpenMapTiles' rank values - OpenMapTiles has some fairly complex SQL operations to generate these, and they obviously aren't available to tilemaker as it isn't a SQL-based environment. The Lua script has a |
So how do I add things like bus stops. I assume I have to look at the existing map.So a bus stop is a class of "bus" and a subclass of "bus_stop" |
Ah, sorry, you need to add the extra name code near L693 of the Lua as well. So it reads
I've highlighted the two lines to add. Just tested it and that works fine. |
That looks like its fixed it. |
This is back in version 3. Making the same code changes so if preferred_language and Holds("name:"..preferred_language) then Has not worked. |
Works fine for me. With the two lines added (
i.e. the "name" tag is generated correctly as well as the standard |
It seems that my laptop has some rather aggressive caching. I had to stop my test server stack (running on the laptop), purge the cache in Firefox, restart Firefox and then restart the server stack and it found them! |
mbtiles created by tilemaker seem to be missing a lot of the icons.
Should look like
but lt looks like this
There are no errors in the browser console log so that suggests that the data just isn't there. I'm not getting any errors when running tilemaker either.
I suspect I've just missed something somewhere.
The text was updated successfully, but these errors were encountered: