Skip to content

Add IATA code as Airport label on zoom 12-14#56

Open
CharliePlett wants to merge 4 commits intoOpenHistoricalMap:stagingfrom
CharliePlett:staging
Open

Add IATA code as Airport label on zoom 12-14#56
CharliePlett wants to merge 4 commits intoOpenHistoricalMap:stagingfrom
CharliePlett:staging

Conversation

@CharliePlett
Copy link
Copy Markdown
Contributor

This adds the iata= and icao= as the airport label beside the icon on zoom levels 12 to 14.

image

Added IATA code as Airport label beside the icon on zooms 12 to 14. If no IATA available then defaults to ICAO.
@CharliePlett
Copy link
Copy Markdown
Contributor Author

If this gets approved then the icao= and iata= would need to be added to the vtiles for this to take effect.

Copy link
Copy Markdown
Member

@erictheise erictheise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to drop the Airport icon entirely. Is that intentional?

I'm looking at SFO, https://localhost:8888/#13/37.62525/-122.38144, using our current version of staging and one to three airplanes appear from zoom ~10-14. I don't see any airplanes using your branch. I also don't see any IATA code; the only text that appears relates to taxiways and "San Francisco International Airport", and those begin to display at zoom 13.

Our staging branch:
image

Your staging branch:
image

@erictheise
Copy link
Copy Markdown
Member

Seems exposing the data is still pending in OpenHistoricalMap/issues#1314

@CharliePlett
Copy link
Copy Markdown
Contributor Author

I'm pretty sure the icon was showing when I created the pull request. Did something else change over time?

@erictheise
Copy link
Copy Markdown
Member

I cloned your repo and am running your staging branch directly. I'd suspect that dropping

"icon-size": ["interpolate", ["linear"], ["zoom"], 10, 1.2, 14, 1.5],

is the cause.

@CharliePlett
Copy link
Copy Markdown
Contributor Author

Can you fix it?

@CharliePlett
Copy link
Copy Markdown
Contributor Author

I messed up and accidentally moved my latest cemeteries commit into this pull request.

@1ec5
Copy link
Copy Markdown
Member

1ec5 commented Apr 30, 2026

Seems exposing the data is still pending in OpenHistoricalMap/issues#1314

The tiles should be ready for this change now.

I messed up and accidentally moved my latest cemeteries commit into this pull request.

I think the issue is that you cut these PRs from your copy of the staging branch. Whenever you make a fork, you should create a branch off of the default branch for anything you want to PR. Otherwise, your PRs get intermingled by accident. Unfortunately it isn’t possible to fix this from our end, so either everything needs to be in good shape to merge (even if unrelated), or you need to close the PR and open a new one with a different branch.

@CharliePlett
Copy link
Copy Markdown
Contributor Author

It should be in good shape to merge. If not, then I'll do whatever needs to be done.

"filter": ["==", ["get", "type"], "aerodrome"],
"layout": {
"icon-image": "airport-18",
"icon-size": ["interpolate", ["linear"], ["zoom"], 10, 1.2, 14, 1.5],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this deletion intentional? Without it, airport icons would be smaller than before.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it was intentional, but it's been a few months since I did that, so I'm not sure.

"text-font": ["OpenHistorical"]}
"icon-offset": [-1.0, 0],
"text-font": ["OpenHistorical"],
"text-field": ["coalesce", ["get", "iata"], ["get", "icao"]],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most smaller airports have a national code (like FAA LID in the U.S.) but not an international code. This was also true before the international codes were standardized. The tiles expose the national code as ref=*. Can we have that as a fallback, if not further up in the list?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be good to have a fallback, I didn't realize it gave other airport codes at that time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Label airports by IATA code

3 participants