您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Opens the current Waze Map Editor view in Google Map Maker
当前为
// ==UserScript== // @name Open WME in GMM // @description Opens the current Waze Map Editor view in Google Map Maker // @namespace vaindil // @version 0.7 // @grant none // @include https://www.waze.com/editor/* // @include https://www.waze.com/*/editor/* // @include https://editor-beta.waze.com/editor/* // @include https://editor-beta.waze.com/*/editor/* // @exclude https://www.waze.com/user/* // @author vaindil // ==/UserScript== console.log("WMEGMM BEGINNING"); function gen_url() { var projI=new OpenLayers.Projection("EPSG:900913"); var projE=new OpenLayers.Projection("EPSG:4326"); var center_lonlat=(new OpenLayers.LonLat(Waze.map.center.lon,Waze.map.center.lat)).transform(projI, projE); var topleft=(new OpenLayers.LonLat(Waze.map.getExtent().left,Waze.map.getExtent().top)).transform(projI, projE); var bottomright=(new OpenLayers.LonLat(Waze.map.getExtent().right,Waze.map.getExtent().bottom)).transform(projI, projE); lat=Math.round(center_lonlat.lat * 1000000)/1000000; lon=Math.round(center_lonlat.lon * 1000000)/1000000; spn=Math.abs(topleft.lat-bottomright.lat)+','+Math.abs(topleft.lon-bottomright.lon); return 'https://www.google.com/mapmaker?ll='+lat+','+lon+'&spn='+spn+'&lyt=large_map_v3'; } function appendButton() { $('#sidepanel-prefs .side-panel-section.attributes-form').after('<a id="WMEtoGMM" href="'+gen_url()+'" target="_blank" style="font-weight:bold;"><button class="btn">Open in GMM</button></a>'); $('#editor-container').unbind('mouseup', appendButton); } $('#editor-container').mouseup(appendButton); $('#editor-container').mouseup(function() { $('#WMEtoGMM').attr('href', gen_url()); });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址