<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/1231218?s=20&v=4" /><strong>1ec5</strong> left a comment <a href="https://github.com/openstreetmap/openstreetmap-website/issues/6641#issuecomment-3679109530">(openstreetmap/openstreetmap-website#6641)</a></div>
<p dir="auto">It would be nice to coordinate the migration between the two projects. There’s already <a href="https://github.com/westnordost/osmfeatures/">a Kotlin library</a> along these lines for Android applications, but most Web clients seem to be rolling their own custom code. I think this is because most applications either only need to display a matching preset name (as with <a href="https://codeberg.org/cartes/web/src/branch/master/app/osmTagLabels.ts" rel="nofollow">Cartes</a>) or take a preset name as input (Overpass turbo).</p>
<p dir="auto">I think any support library in JavaScript or Ruby should start out very simple, addressing the more common display-only use case that doesn’t require NSI. Like I’m imagining the JS implementation would be as short as what Cartes has. The more sophisticated matching done by editors could be a later effort if the editor developers are on board to make use of it.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/6641#issuecomment-3679109530">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKOYSOUADIH2MS7QCL4C3ITJAVCNFSM6AAAAACPU3PYZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMNZZGEYDSNJTGA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOYMSID2JA3PUSZ4ED4C3ITJA5CNFSM6AAAAACPU3PYZ6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTW3JLAZU.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/6641/3679109530</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/6641#issuecomment-3679109530",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/6641#issuecomment-3679109530",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>