Code Monkey home page Code Monkey logo

Comments (4)

bdon avatar bdon commented on May 27, 2024

The min_zoom is derived from Natural Earth and @nvkelso 's work, and those are hand-edited values for generalization because OSM does not store non-verifiable information. Same with population_rank.

States are a special case because ideally we want to show all of the states at the same time or none of them in the cases where we label them at a low zoom.

Screenshots would be helpful

from basemaps.

nuclearsecrecy avatar nuclearsecrecy commented on May 27, 2024

I don't think a screenshot is all that useful here since I'm talking about metadata.

If you load up the latest pmtiles archive in the PMTiles Viewer (I am using 20231025), and look at the data that shows up for Mexico's name entry on the places layer, this is what it currently has if you strip out all of the name translations:

pmap:kind_detail	country	
pmap:population_rank	1		
population	0	
name	México	
place	country	
pmap:kind	country	
wikidata	Q96	
pmap:kind	earth	

By comparison, the United States has a a pmap:population_rank of 17. If the population_rank is 1, it means that the metadata has 0 for the population, I think. Norway has the same issue.

And, again, the US states are given very low zoom levels — which is fine! — but some other states of similar significances, like Wales, Scotland, Northern Ireland, etc. (which are considered state-level entities part of the United Kingdom) have really, really high minimum zooms, so you will just never see the state name unless you are happening to zoom in on just the right part of the map. Scotland's name won't show up until zoom=8 which is really high for a place the size of Scotland, and you have to know exactly where it is if you are ever going to see it, because Scotland is relatively large compared to that zoom:

https://imgur.com/RbJc6Ad

There should be a way to update these things without resorting to doing it manually, no? OSM definitely allows one to add population data into its entries. I had imagined that the pipeline would take the OSM population field and then run something on it to make a population_rank field, but I guess not?

(Is Natural Earth being updated? The last build on their website seems to be from 2018.)

from basemaps.

nvkelso avatar nvkelso commented on May 27, 2024

These all sound like data, curation, and/or data join issues. Thanks for the examples, I'll dig into them.

FYI: Last Natural Earth update was in 2022, and we're preparing version 6 for release in 2024.

from basemaps.

bdon avatar bdon commented on May 27, 2024

I don't think a screenshot is all that useful here since I'm talking about metadata.

Our design principle is that the key/value tags in the tileset drive the visual style; the tileset is not meant to be a general-purpose geodatabase. Tags such as pmap:population_rank are used to determine the size or font-weight of the textual label associated with that. So screenshots are always useful because the end result of erroneous tags like you pointed out are inappropriately sized or missing labels at a specific zoom level in the map. You're right that there seems to be some odd numbers in there - we'll investigate.

from basemaps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.