Skip to content

Instantly share code, notes, and snippets.

@vaindil vaindil/midrive.js Secret
Created Oct 9, 2016

Embed
What would you like to do?
Bookmarklet to open the current WME view in Mi Drive
javascript:void%20function(){var%20e=new%20OpenLayers.LonLat(Waze.map.getExtent().left,Waze.map.getExtent().top),a=new%20OpenLayers.LonLat(Waze.map.getExtent().right,Waze.map.getExtent().bottom),t=e.lon,s=a.lon,l=a.lat,n=e.lat,f=%22http://mdotnetpublic.state.mi.us/drive/Default.aspx%3Fxmin=%22+t+%22%26xmax=%22+s+%22%26ymin=%22+l+%22%26ymax=%22+n+%22%26lc=true%26cam=true%26tb=false%26bc=false%26bh1=false%26bh2=false%26sensor=false%26inc=true%26mp=false%26sign=false%26mb=false%26cps=false%26aps=false%26bing=false%26source=social%26rsp=false%26rest=false%26park=false%26plow=false%22;window.open(f,%22_blank%22)}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.