No edit summary |
|||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==== '''Bookmarklets''' ==== | ==== '''Bookmarklets''' ==== | ||
'''Load WME Fix UI''' | |||
{{pre2|<nowiki>javascript:(function(){ | |||
$.get("https://cdn.rawgit.com/justins83/WMEFU/master/WMEFU.js"); | |||
})();</nowiki>}} | |||
'''Load JAI''' | |||
{{pre2|<nowiki>javascript: (function() { | |||
$.getScript("https://cdn.rawgit.com/justins83/BookmarkletFiles/master/JAIBookmarkletFork.js"); | |||
})();</nowiki>}} | |||
'''Load WMESimplePermalink''' | |||
{{pre2|<nowiki>javascript: (function() { | |||
$.getScript("https://cdn.rawgit.com/WazeDev/SimplePermalink/master/SimplePermalink.js"); | |||
})();</nowiki>}} | |||
'''Measure Single Segment Length''' | |||
{{pre2|<nowiki>javascript: (function() { | |||
var length = 0; | |||
if(W.selectionManager.getSelectedFeatures().length === 1){ | |||
var segment = W.selectionManager.getSelectedFeatures()[0]; | |||
var line = new OpenLayers.Geometry.LineString(segment.geometry.components); | |||
length = line.getGeodesicLength(W.map.getProjectionObject()); | |||
alert(Math.round((length * 100))/100 + "m" + "\n" + Math.round((length * 3.28084 * 100))/100 + "ft"); | |||
} | |||
})();</nowiki>}} | |||
'''Open in TIMS''' | '''Open in TIMS''' | ||
Line 13: | Line 39: | ||
{{pre2|<nowiki>javascript:(function(){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);var lat=Math.round(center_lonlat.lat*1000000)/1000000;var lon=Math.round(center_lonlat.lon*1000000)/1000000;var spn=Math.abs(topleft.lat-bottomright.lat)+','+Math.abs(topleft.lon-bottomright.lon);window.open('https://www.google.com/mapmaker%3Fll='+lat+','+lon+'%26spn='+spn+'%26lyt=large_map_v3','Google Map Maker');})();</nowiki>}} | {{pre2|<nowiki>javascript:(function(){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);var lat=Math.round(center_lonlat.lat*1000000)/1000000;var lon=Math.round(center_lonlat.lon*1000000)/1000000;var spn=Math.abs(topleft.lat-bottomright.lat)+','+Math.abs(topleft.lon-bottomright.lon);window.open('https://www.google.com/mapmaker%3Fll='+lat+','+lon+'%26spn='+spn+'%26lyt=large_map_v3','Google Map Maker');})();</nowiki>}} | ||
'''Open in Ohio Missing Speed Limits (MyMaps)''' | |||
{{pre2|<nowiki>javascript: (function() { 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); var lat = Math.round(center_lonlat.lat * 1000000) / 1000000; var lon = Math.round(center_lonlat.lon * 1000000) / 1000000; var spn = Math.abs(topleft.lat - bottomright.lat) + ',' + Math.abs(topleft.lon - bottomright.lon); window.open('https://www.google.com/maps/d/u/0/edit?ll=' + lat + ',' + lon + '&mid=159Evn-SMdsP6BMSSQxJ_k3G8zB4', 'Ohio Speed Limits');})();</nowiki>}} |
Latest revision as of 16:10, 20 August 2018
Bookmarklets
Load WME Fix UI
javascript:(function(){ $.get("https://cdn.rawgit.com/justins83/WMEFU/master/WMEFU.js"); })();
Load JAI
javascript: (function() { $.getScript("https://cdn.rawgit.com/justins83/BookmarkletFiles/master/JAIBookmarkletFork.js"); })();
Load WMESimplePermalink
javascript: (function() { $.getScript("https://cdn.rawgit.com/WazeDev/SimplePermalink/master/SimplePermalink.js"); })();
Measure Single Segment Length
javascript: (function() { var length = 0; if(W.selectionManager.getSelectedFeatures().length === 1){ var segment = W.selectionManager.getSelectedFeatures()[0]; var line = new OpenLayers.Geometry.LineString(segment.geometry.components); length = line.getGeodesicLength(W.map.getProjectionObject()); alert(Math.round((length * 100))/100 + "m" + "\n" + Math.round((length * 3.28084 * 100))/100 + "ft"); } })();
Open in TIMS
javascript:(function(){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);var lat=Math.round(center_lonlat.lat*1000000)/1000000;var lon=Math.round(center_lonlat.lon*1000000)/1000000;var spn=Math.abs(topleft.lat-bottomright.lat)+','+Math.abs(topleft.lon-bottomright.lon);var newZoom= (Waze.map.zoom + 12);window.open('https://gis.dot.state.oh.us/tims/map?center='+lon+','+lat+'&level='+newZoom+'&visiblelayers=Assets:-1%7CEnvironmental:-1%7CProjects:-1%7CRoadway Information:-1%7CStrategic Transportation System:-1','ODOT TIMS');})();
Open in TIMS - County Road Display
javascript:(function(){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);var lat=Math.round(center_lonlat.lat*1000000)/1000000;var lon=Math.round(center_lonlat.lon*1000000)/1000000;var spn=Math.abs(topleft.lat-bottomright.lat)+','+Math.abs(topleft.lon-bottomright.lon);var newZoom= (Waze.map.zoom + 12);window.open('https://gis.dot.state.oh.us/tims/map?center='+lon+','+lat+'&level='+newZoom+'&visiblelayers=Assets:-1%7CEnvironmental:-1%7CProjects:-1%7CRoadway Information:8%7CStrategic Transportation System:-1','ODOT TIMS');})();
Open in TIMS - FC Display
javascript:(function(){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);var lat=Math.round(center_lonlat.lat*1000000)/1000000;var lon=Math.round(center_lonlat.lon*1000000)/1000000;var spn=Math.abs(topleft.lat-bottomright.lat)+','+Math.abs(topleft.lon-bottomright.lon);var newZoom= (Waze.map.zoom + 12);window.open('https://gis.dot.state.oh.us/tims/map?center='+lon+','+lat+'&level='+newZoom+'&visiblelayers=odot-osip-1:0,1%7Codot-osip-2:0,3%7CAssets:-1%7CBoundaries:2%7CEnvironmental:-1%7CProjects:-1%7CRoadway%20Information:9%7CStrategic%20Transportation%20System:-1%7CSafety:-1','ODOT TIMS');})();
Open in GMM
javascript:(function(){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);var lat=Math.round(center_lonlat.lat*1000000)/1000000;var lon=Math.round(center_lonlat.lon*1000000)/1000000;var spn=Math.abs(topleft.lat-bottomright.lat)+','+Math.abs(topleft.lon-bottomright.lon);window.open('https://www.google.com/mapmaker%3Fll='+lat+','+lon+'%26spn='+spn+'%26lyt=large_map_v3','Google Map Maker');})();
Open in Ohio Missing Speed Limits (MyMaps)
javascript: (function() { 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); var lat = Math.round(center_lonlat.lat * 1000000) / 1000000; var lon = Math.round(center_lonlat.lon * 1000000) / 1000000; var spn = Math.abs(topleft.lat - bottomright.lat) + ',' + Math.abs(topleft.lon - bottomright.lon); window.open('https://www.google.com/maps/d/u/0/edit?ll=' + lat + ',' + lon + '&mid=159Evn-SMdsP6BMSSQxJ_k3G8zB4', 'Ohio Speed Limits');})();