Jump to content

Streetmap


Mr'D

Recommended Posts

Some time ago I downloaded a small script that gave me a 'streetmap' tag on the toolbar. I could click this, paste co-ords in and hey presto, goto page required in streetmap.

 

Following a PC crash I lost the script.

 

Can anyone oblige?

 

Thanks,

 

Jon

Link to comment

make a new shortcut in your links folder

 

edit properties to contain following:

 

javascript:bmsorguk=new Date();void(window.open('http://benchmarks.org.uk/map.php?c='+escape(document.selection.createRange().text),'w'+bmsorguk.getTime()))

 

drag link to your toolbar.

 

highlight coords on page, click button on toolbar.

Link to comment

 

javascript:bmsorguk=new Date();void(window.open('http://benchmarks.org.uk/map.php?c='+escape(document.selection.createRange().text),'w'+bmsorguk.getTime()))

 

 

Thanks CuplaKiwis, but this is not the script I was looking for.

 

When looking at a cache page, sometimes parking co-ords are given in the description for example.

 

Rather than open another browser window, go to streetmap.co.uk and enter the co-ords, the script enabled me to copy the co-ords with the mouse, then open the script on the favourites toolbar. A pop-up window would appear into which I pasted the co-ords, and the appropiate streetmap map page would appear in a new window.

 

A small but handy little application.

 

I hope I have described this well enough for someone to recognize what I am talking about?....

 

Jon

Link to comment

I think that the script the Kiwis mentioned is better than the one you mentioned.

 

I believe it uses the same script, but is extended so that it does the copy-paste automatically, so you don't have to.

 

You can highlight any co-ordinate on the page, click the button and it spawns a new streetmap window with those co-ordinates.

 

I think it's brilliant, and thanks to Gary & Jane for posting it in the UK Resources thread.

Link to comment
make a new shortcut in your links folder

 

edit properties to contain following:

 

javascript:bmsorguk=new Date();void(window.open('http://benchmarks.org.uk/map.php?c='+escape(document.selection.createRange().text),'w'+bmsorguk.getTime()))

 

drag link to your toolbar.

 

highlight coords on page, click button on toolbar.

Hi

 

This sounds excellent - but could you be really kind and walk me through the process ?

 

I've tried it once with no success - think I need the Dummy's guide :D

 

Thanks in advance

 

civilised

Link to comment

I did it by creating a new shortcut and naming it 'Streetmap'.

 

Then, instead of inputting an HTTP reference, paste in the javascript exactly as shown.

 

Now all you have to do is highlight a co-ordinate on a cache page (like parking co-ords etc), and click the 'Streetmap' shortcut you just created. It'll take you straight to the relevant page on Streetmap in a new window.

 

It's a great snippet and it takes the chore out of typing out the co-ords into Streetmap.

 

Jon

Link to comment

This works very well. It would not let me create a new shortcut item with the script instead of url, but I just edited the properties of an existing one re hotmail or something like that and renamed it.

Works perfectly on WGS84 co-ord format, doesnt take the OS grid refs though. Is there a way of havig this work in Mozilla too?

Link to comment

I to had problems getting it to work and none of the above would work.

In the end I pasted the script into the address box in ie6, then dragged the contents (by clicking on the e icon) to Links and then renamed the resultant new link.

Works a treat, thanks.

Edited by Phillimore Clan
Link to comment
This works very well. It would not let me create a new shortcut item with the script instead of url, but I just edited the properties of an existing one re hotmail or something like that and renamed it.

 

If truth be know, that's how I did it too!

 

Jon

Link to comment
This works very well. It would not let me create a new shortcut item with the script instead of url, but I just edited the properties of an existing one re hotmail or something like that and renamed it.

Works perfectly on WGS84 co-ord format, doesnt take the OS grid refs though. Is there a way of havig this work in Mozilla too?

javascript:bmsorguk=new Date();void(window.open('http://benchmarks.org.uk/map.php?c='+escape(window.getSelection()),'w'+bmsorguk.getTime()))

 

Sorta works it does a pop-under

Link to comment
Does anyone know how to get that javascript link to work in firefox? It's pretty dadgum good.

 

I used Firefox for a while. Can you not use the same method? If you can't actually 'create from new', try amending an existing favourite link in it's properties (ie. delete the favourite's URL and insert the java?

 

Jon

Link to comment
Sorta works it does a pop-under

Apparently this is a bug in Firefox but luckily there's a work around for it :D. The following code produces a pop-up window as expected with my copy of Firefox 1.0.

 

javascript:void(setTimeout("bmsorguk=new Date();void(window.open('http://benchmarks.org.uk/map.php?c='+escape(window.getSelection()),'w'+bmsorguk.getTime()))",10));

Gary

Edited by Gary & Jane
Link to comment
Thanks Gary & Jane, tis bloody good init!

Now to make it 5 x 5 squares!

No problem - just add "size=5&" to the code. To summarise the previous posts here's the code for each browser and required map sizes:

 

5 x 5 square version for Firefox

javascript:void(setTimeout("bmsorguk=new Date();void(window.open('http://benchmarks.org.uk/map.php?size=5&c='+escape(window.getSelection()),'w'+bmsorguk.getTime()))",10));

 

3 x 3 square version for Firefox

javascript:void(setTimeout("bmsorguk=new Date();void(window.open('http://benchmarks.org.uk/map.php?c='+escape(window.getSelection()),'w'+bmsorguk.getTime()))",10));

 

5 x 5 square version for IE

javascript:bmsorguk=new Date();void(window.open('http://benchmarks.org.uk/map.php?size=5&c='+escape(document.selection.createRange().text),'w'+bmsorguk.getTime()))

 

3 x 3 square version for IE

javascript:bmsorguk=new Date();void(window.open('http://benchmarks.org.uk/map.php?c='+escape(document.selection.createRange().text),'w'+bmsorguk.getTime()))

 

Gary

Link to comment

If I paste that script into the URL field, all I get is a dialogue box that says:-

 

The protcol "Javascript" does not have a registered program. Do you want to keep this target anyway? 

 

Save it anyway. You will get another prompt the same, then say yes and close. I think it's just a security prompt.

 

Jon

Link to comment

Does anyone know if you can bring up the bookmarks tool bar in Firefox with a key command? I have the scripts above in the tool bar but don't want it to be visible always (it takes up too much room).

 

I would like to just hit a key to bring it up when I am surfing on GC cache pages.

 

Cheers

 

Martin

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...