[書きかけ]untitled 02

2017-09-25

Map service switch bookmarklet

Switch to OSM

javascript:(function(){var map_url=location.href;var dummy,lat,lon,zoom;if(map_url.match(/(www\.openstreetmap)/)){[dummy,zoom,lat,lon]=map_url.match(/map=(\d{1,2})\/(-?\d[0-9.]*)\/(-?\d[0-9.]*)/);}else if(map_url.match(/(google).*(maps)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})z/);}else if(map_url.match(/(mapillary)/)){[dummy,lat,lon,zoom]=map_url.match(/lat=(-?\d[0-9.]*)&lng=(-?\d[0-9.]*)&z=(\d{1,2})/);}if(dummy){window.location.href='http://www.openstreetmap.org/#map='+zoom+'/'+lat+'/'+lon;}else{alert('Not%20supported');}})();

Switch to Google map

javascript:(function(){var map_url=location.href;var dummy,lat,lon,zoom;if(map_url.match(/(www\.openstreetmap)/)){[dummy,zoom,lat,lon]=map_url.match(/map=(\d{1,2})\/(-?\d[0-9.]*)\/(-?\d[0-9.]*)/);}else if(map_url.match(/(google).*(maps)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})z/);}else if(map_url.match(/(mapillary)/)){[dummy,lat,lon,zoom]=map_url.match(/lat=(-?\d[0-9.]*)&lng=(-?\d[0-9.]*)&z=(\d{1,2})/);}if(dummy){window.location.href='https://www.google.co.jp/maps/@'+lat+','+lon+','+zoom+'z';}else{alert('Not supported');}})();

Switch to Mapillary

https://www.mapillary.com/app/

javascript:(function(){var map_url=location.href;var dummy,lat,lon,zoom;if(map_url.match(/(www\.openstreetmap)/)){[dummy,zoom,lat,lon]=map_url.match(/map=(\d{1,2})\/(-?\d[0-9.]*)\/(-?\d[0-9.]*)/);}else if(map_url.match(/(google).*(maps)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})z/);}else if(map_url.match(/(mapillary)/)){[dummy,lat,lon,zoom]=map_url.match(/lat=(-?\d[0-9.]*)&lng=(-?\d[0-9.]*)&z=(\d{1,2})/);}if(dummy){window.location.href='https://www.mapillary.com/app/?lat='+lat+'&lng='+lon+'&z='+zoom;}else{alert('Not supported');}})();

Switch to OpenStreetCam

https://www.openstreetcam.org/

javascript:(function(){var%20map_url=location.href;var%20dummy,lat,lon,zoom;if(map_url.match(/(www\.openstreetmap)/)){[dummy,zoom,lat,lon]=map_url.match(/map=(\d{1,2})\/(-?\d[0-9.]*)\/(-?\d[0-9.]*)/);}else%20if(map_url.match(/(google).*(maps)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}else%20if(map_url.match(/(mapillary)/)){[dummy,lat,lon,zoom]=map_url.match(/lat=(-?\d[0-9.]*)&lng=(-?\d[0-9.]*)&z=(\d{1,2})/);}else%20if(map_url.match(/(openstreetcam)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}if(dummy){window.location.href='https://www.openstreetcam.org/map/@'+lat+','+lon+','+zoom+'z';}else{alert('Not%20supported');}})();

Open 'Overpass-turbo'by Martin Raifer (tyr_asd)

http://overpass-turbo.eu/

javascript:(function(){var map_url=location.href;var dummy,lat,lon,zoom;if(map_url.match(/(www\.openstreetmap)/)){[dummy,zoom,lat,lon]=map_url.match(/map=(\d{1,2})\/(-?\d[0-9.]*)\/(-?\d[0-9.]*)/);}else if(map_url.match(/(google).*(maps)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})z/);}else if(map_url.match(/(mapillary)/)){[dummy,lat,lon,zoom]=map_url.match(/lat=(-?\d[0-9.]*)&lng=(-?\d[0-9.]*)&z=(\d{1,2})/);}if(dummy){window.open('http://overpass-turbo.eu/?Q=&C='+lat+';'+lon+';'+zoom);}else{alert('Not supported');}})();

Open 'Osmose'by E. Chové, J. Jaubert, F. Rodrigo

http://osmose.openstreetmap.fr/map/

javascript:(function(){var map_url=location.href;var dummy,lat,lon,zoom;if(map_url.match(/(www\.openstreetmap)/)){[dummy,zoom,lat,lon]=map_url.match(/map=(\d{1,2})\/(-?\d[0-9.]*)\/(-?\d[0-9.]*)/);}else if(map_url.match(/(google).*(maps)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})z/);}else if(map_url.match(/(mapillary)/)){[dummy,lat,lon,zoom]=map_url.match(/lat=(-?\d[0-9.]*)&lng=(-?\d[0-9.]*)&z=(\d{1,2})/);}if(dummy){window.open('http://osmose.openstreetmap.fr/map/#zoom='+zoom+'&lat='+lat+'&lon='+lon);}else{alert('Not%20supported');}})();

Open 'Who did it'by Ilya Zverev

http://simon04.dev.openstreetmap.org/whodidit/

javascript:(function(){var map_url=location.href;var dummy,lat,lon,zoom;if(map_url.match(/(www\.openstreetmap)/)){[dummy,zoom,lat,lon]=map_url.match(/map=(\d{1,2})\/(-?\d[0-9.]*)\/(-?\d[0-9.]*)/);}else if(map_url.match(/(google).*(maps)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})z/);}else if(map_url.match(/(mapillary)/)){[dummy,lat,lon,zoom]=map_url.match(/lat=(-?\d[0-9.]*)&lng=(-?\d[0-9.]*)&z=(\d{1,2})/);}if(dummy){window.open('http://simon04.dev.openstreetmap.org/whodidit/?zoom='+zoom+'&lat='+lat+'&lon='+lon);}else{alert('Not supported');}})();

Open 'Multimapas' by Javier Jiménez Shaw

http://javier.jimenezshaw.com/mapas/

javascript:(function(){var map_url=location.href;var dummy,lat,lon,zoom;if(map_url.match(/(www\.openstreetmap)/)){[dummy,zoom,lat,lon]=map_url.match(/map=(\d{1,2})\/(-?\d[0-9.]*)\/(-?\d[0-9.]*)/);}else if(map_url.match(/(google).*(maps)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})z/);}else if(map_url.match(/(mapillary)/)){[dummy,lat,lon,zoom]=map_url.match(/lat=(-?\d[0-9.]*)&lng=(-?\d[0-9.]*)&z=(\d{1,2})/);}if(dummy){window.open('http://javier.jimenezshaw.com/mapas/mapas.html?z='+zoom+'&c='+lat+','+lon);}else{alert('Not supported');}})();

Open 'Map compare' by Geofabrik

http://tools.geofabrik.de/mc/

javascript:(function(){var map_url=location.href;var dummy,lat,lon,zoom;if(map_url.match(/(www\.openstreetmap)/)){[dummy,zoom,lat,lon]=map_url.match(/map=(\d{1,2})\/(-?\d[0-9.]*)\/(-?\d[0-9.]*)/);}else if(map_url.match(/(google).*(maps)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})z/);}else if(map_url.match(/(mapillary)/)){[dummy,lat,lon,zoom]=map_url.match(/lat=(-?\d[0-9.]*)&lng=(-?\d[0-9.]*)&z=(\d{1,2})/);}if(dummy){window.open('http://tools.geofabrik.de/mc/#'+zoom+'/'+lat+'/'+lon);}else{alert('Not%20supported');}})();

Save and Import as Bookmark

<!DOCTYPE NETSCAPE-Bookmark-file-1>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
        <DT><H3 ADD_DATE="1508052523" LAST_MODIFIED="1508052560">Switch Map</H3>
        <DL><p>
            <DT><A HREF="javascript:(function(){var%20map_url=location.href;var%20dummy,lat,lon,zoom;if(map_url.match(/(www\.openstreetmap)/)){[dummy,zoom,lat,lon]=map_url.match(/map=(\d{1,2})\/(-?\d[0-9.]*)\/(-?\d[0-9.]*)/);}else%20if(map_url.match(/(google).*(maps)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}else%20if(map_url.match(/(mapillary)/)){[dummy,lat,lon,zoom]=map_url.match(/lat=(-?\d[0-9.]*)&lng=(-?\d[0-9.]*)&z=(\d{1,2})/);}else%20if(map_url.match(/(openstreetcam)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}if(dummy){window.location.href='http://www.openstreetmap.org/#map='+zoom+'/'+lat+'/'+lon;}else{alert('Not%20supported');}})();" ADD_DATE="1508049148">-&gt;OSM</A>
            <DT><A HREF="javascript:(function(){var%20map_url=location.href;var%20dummy,lat,lon,zoom;if(map_url.match(/(www\.openstreetmap)/)){[dummy,zoom,lat,lon]=map_url.match(/map=(\d{1,2})\/(-?\d[0-9.]*)\/(-?\d[0-9.]*)/);}else%20if(map_url.match(/(google).*(maps)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}else%20if(map_url.match(/(mapillary)/)){[dummy,lat,lon,zoom]=map_url.match(/lat=(-?\d[0-9.]*)&lng=(-?\d[0-9.]*)&z=(\d{1,2})/);}else%20if(map_url.match(/(openstreetcam)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}if(dummy){window.location.href='https://www.google.co.jp/maps/@'+lat+','+lon+','+zoom+'z';}else{alert('Not%20supported');}})();" ADD_DATE="1506346403">-&gt;GMap</A>
            <DT><A HREF="javascript:(function(){var%20map_url=location.href;var%20dummy,lat,lon,zoom;if(map_url.match(/(www\.openstreetmap)/)){[dummy,zoom,lat,lon]=map_url.match(/map=(\d{1,2})\/(-?\d[0-9.]*)\/(-?\d[0-9.]*)/);}else%20if(map_url.match(/(google).*(maps)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}else%20if(map_url.match(/(mapillary)/)){[dummy,lat,lon,zoom]=map_url.match(/lat=(-?\d[0-9.]*)&lng=(-?\d[0-9.]*)&z=(\d{1,2})/);}else%20if(map_url.match(/(openstreetcam)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}if(dummy){window.location.href='https://www.mapillary.com/app/?lat='+lat+'&lng='+lon+'&z='+zoom;}else{alert('Not%20supported');}})();" ADD_DATE="1506348575">-&gt;Mapillary</A>
            <DT><A HREF="javascript:(function(){var%20map_url=location.href;var%20dummy,lat,lon,zoom;if(map_url.match(/(www\.openstreetmap)/)){[dummy,zoom,lat,lon]=map_url.match(/map=(\d{1,2})\/(-?\d[0-9.]*)\/(-?\d[0-9.]*)/);}else%20if(map_url.match(/(google).*(maps)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}else%20if(map_url.match(/(mapillary)/)){[dummy,lat,lon,zoom]=map_url.match(/lat=(-?\d[0-9.]*)&lng=(-?\d[0-9.]*)&z=(\d{1,2})/);}else%20if(map_url.match(/(openstreetcam)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}if(dummy){window.location.href='https://www.openstreetcam.org/map/@'+lat+','+lon+','+zoom+'z';}else{alert('Not%20supported');}})();" ADD_DATE="1508051474">-&gt;OpenStreetCam</A>
            <DT><A HREF="javascript:(function(){var map_url=location.href;var dummy,lat,lon,zoom;if(map_url.match(/(www\.openstreetmap)/)){[dummy,zoom,lat,lon]=map_url.match(/map=(\d{1,2})\/(-?\d[0-9.]*)\/(-?\d[0-9.]*)/);}else if(map_url.match(/(google).*(maps)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}else if(map_url.match(/(mapillary)/)){[dummy,lat,lon,zoom]=map_url.match(/lat=(-?\d[0-9.]*)&lng=(-?\d[0-9.]*)&z=(\d{1,2})/);}if(dummy){window.open('http://overpass-turbo.eu/?Q=&C='+lat+';'+lon+';'+zoom);}else{alert('Not supported');}})();" ADD_DATE="1508045865">&gt;Overpass</A>
            <DT><A HREF="javascript:(function(){var%20map_url=location.href;var%20dummy,lat,lon,zoom;if(map_url.match(/(www\.openstreetmap)/)){[dummy,zoom,lat,lon]=map_url.match(/map=(\d{1,2})\/(-?\d[0-9.]*)\/(-?\d[0-9.]*)/);}else%20if(map_url.match(/(google).*(maps)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}else%20if(map_url.match(/(mapillary)/)){[dummy,lat,lon,zoom]=map_url.match(/lat=(-?\d[0-9.]*)&lng=(-?\d[0-9.]*)&z=(\d{1,2})/);}else%20if(map_url.match(/(openstreetcam)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}if(dummy){window.open('http://osmose.openstreetmap.fr/map/#zoom='+zoom+'&lat='+lat+'&lon='+lon);}else{alert('Not%20supported');}})();" ADD_DATE="1508049334">&gt;Osmose</A>
            <DT><A HREF="javascript:(function(){var%20map_url=location.href;var%20dummy,lat,lon,zoom;if(map_url.match(/(www\.openstreetmap)/)){[dummy,zoom,lat,lon]=map_url.match(/map=(\d{1,2})\/(-?\d[0-9.]*)\/(-?\d[0-9.]*)/);}else%20if(map_url.match(/(google).*(maps)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}else%20if(map_url.match(/(mapillary)/)){[dummy,lat,lon,zoom]=map_url.match(/lat=(-?\d[0-9.]*)&lng=(-?\d[0-9.]*)&z=(\d{1,2})/);}else%20if(map_url.match(/(openstreetcam)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}if(dummy){window.open('http://simon04.dev.openstreetmap.org/whodidit/?zoom='+zoom+'&lat='+lat+'&lon='+lon);}else{alert('Not%20supported');}})();" ADD_DATE="1508049374">&gt;Whodidit</A>
            <DT><A HREF="javascript:(function(){var%20map_url=location.href;var%20dummy,lat,lon,zoom;if(map_url.match(/(www\.openstreetmap)/)){[dummy,zoom,lat,lon]=map_url.match(/map=(\d{1,2})\/(-?\d[0-9.]*)\/(-?\d[0-9.]*)/);}else%20if(map_url.match(/(google).*(maps)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}else%20if(map_url.match(/(mapillary)/)){[dummy,lat,lon,zoom]=map_url.match(/lat=(-?\d[0-9.]*)&lng=(-?\d[0-9.]*)&z=(\d{1,2})/);}else%20if(map_url.match(/(openstreetcam)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}if(dummy){window.open('http://tools.geofabrik.de/mc/#'+zoom+'/'+lat+'/'+lon);}else{alert('Not%20supported');}})();" ADD_DATE="1508051635">&gt;Map compare</A>
            <DT><A HREF="javascript:(function(){var%20map_url=location.href;var%20dummy,lat,lon,zoom;if(map_url.match(/(www\.openstreetmap)/)){[dummy,zoom,lat,lon]=map_url.match(/map=(\d{1,2})\/(-?\d[0-9.]*)\/(-?\d[0-9.]*)/);}else%20if(map_url.match(/(google).*(maps)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}else%20if(map_url.match(/(mapillary)/)){[dummy,lat,lon,zoom]=map_url.match(/lat=(-?\d[0-9.]*)&lng=(-?\d[0-9.]*)&z=(\d{1,2})/);}else%20if(map_url.match(/(openstreetcam)/)){[dummy,lat,lon,zoom]=map_url.match(/@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})/);}if(dummy){window.open('http://javier.jimenezshaw.com/mapas/mapas.html?z='+zoom+'&c='+lat+','+lon);}else{alert('Not%20supported');}})();" ADD_DATE="1508051474">&gt;Multimapas</A>
</DL><p>

</DL><p>

スパム対策のためのダミーです。もし見えても何も入力しないでください
ゲスト


画像認証

トラックバック - http://d.hatena.ne.jp/muramototomoya/20170925/1506347160