MapJumper/MapJumperCode

From OpenStreetMap Wiki
Jump to: navigation, search

javascript:(function(){var mJ={_:['frvipofm.net/osm/mapjumper/','&'],o:['www.openstreetmap.org','B000FTF'],ol:['www.openlinkmap.org/','B0TTT'],'?':document.location.search };mJ.$p=prompt('Choose:\n_:%20mapJumper hub\no:%20OpenStreetMap\nol:%20OpenLinkMap\n?:%20search');mJ.$=mJ[/^[_\w]+/.exec(mJ.$p)];mJ.$_='http://'+mJ.$[0]+'?'+/zoom=[0-9]+/.exec(mJ.$_)+'&'+(mJ.$[2]?mJ.$[2]:'lat')+/lat(=[-\.0-9]+)/.exec(mJ.$_)[1]+'&'+(mJ.$[3]?mJ.$[3]:'lon')+/(lon|lng)(=[-\.0-9]+)/.exec(mJ.$_)[2]+'&layers='+mJ.$[1];if(/[^_\w]/.exec(mJ.$p)){void(open(mJ.$_))}else{document.location=mJ.$_}})();