您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Displays geodesic segment length in feet & meters
当前为
// ==UserScript== // @name WME True Segment Length // @namespace https://gf.qytechs.cn/users/30701-justins83-waze // @version 0.2 // @description Displays geodesic segment length in feet & meters // @author JustinS83 // @include https://www.waze.com/editor/* // @include https://www.waze.com/*/editor/* // @include https://beta.waze.com/* // @exclude https://www.waze.com/user/editor* // @grant none // @require https://gf.qytechs.cn/scripts/24851-wazewrap/code/WazeWrap.js // @license GPLv3 // ==/UserScript== (function() { function bootstrap(tries) { tries = tries || 1; if (window.W && window.W.map && window.W.model && $) { init(); } else if (tries < 1000) { setTimeout(function () {bootstrap(tries++);}, 200); } } bootstrap(); function init(){ window.Waze.selectionManager.events.register("selectionchanged", null, updateDisplay); } function updateDisplay(){ var count = W.selectionManager.selectedItems.length; var metersLength = 0; if(count > 0){ for(i=0;i<count;i++){ if(W.selectionManager.selectedItems[i].model.type === "segment") metersLength += WazeWrap.Geometry.calculateDistance(W.selectionManager.selectedItems[i].geometry.components); } if(metersLength >0){ var ftLength = Math.round(metersLength * 3.28084 *100)/100; $('#segment-edit-general > ul > li:nth-child(1) > span')[1].innerHTML = ftLength + " ft"; $('#segment-edit-general > ul > li:nth-child(1)').append('<br/><span class="name">Length: </span><span class="value">' + (Math.round(metersLength*100)/100) +' m</span>'); } } } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址