General fitness, health and nutrition · Public discussion

More on the current Streetmap website problems

Started by Www.Emmerdale.M · · Last activity · 2 posts · 471 views

Thread details

What we know about this thread

Original section
General fitness, health and nutrition
Published
16 January 2004
Last activity
16 January 2004
Original author
Www.Emmerdale.M
Posts
2
Discussion status
Public discussion
Total views
471
Views / 30 days
0

The navigation and discussion metadata provide context. Posts remain in their original chronological order.

Showing posts 1–2 of 2
Posts remain in their original chronological order.

Text size
  1. The Streetmap site is *still* showing the "streetmap.dll" method in its "How to link" info, even
    though they scrapped the URLs several days ago in favour of the "newmap.srf" method. The
    redirections to the new URLs are still behaving erratically. The website may well be free, but it
    would actually help if it worked as advertised!

    I stand by my harsh words used in my original posting. Hundreds of website owners may well be
    blissfully unaware that their Streetmap links to OS Landranger maps suddenly stopped working a few
    days ago. Not good practice on the part of Streetmap, is it? Being a free service is irrelevant.

    I note that, as predicted, the extra "&dn=" parameter increased from 529 to 530 at midnight on
    Thursday 18 December, to stop everyone from constructing their own direct URLs!

    All is not totally lost, though. As I said in my original message, you can click on the "steps" icon
    between the "+" and "-" buttons below the map image, to access the OS 1:50000 Landranger data. Once
    that is loaded, you can zoom and pan, etc., as in the good old days.

    Also, if you want the bigger 5km x 5km coverage, just click on the "Large Map" icon, after you've
    loaded the OS 1:50000 data using the "steps" icon.

    However, I've noticed that the "Printer friendly map" icon (just underneath the zoom and "steps"
    icons) strips off that extra "&dn=" parameter to stop you printing out that nice OS data!

    To fix this, I'm afraid you have to go into the address bar and stick it back on the end of the URL
    manually. Hey presto! You've got a printer friendly OS 1:50000 map. If you want the 5km x 5km rather
    than 3km x 3km size, just edit the URL in the address bar again to change the "z=3" parameter to
    "z=4", but making sure you keep the "&dn=" bit. Remember that the 5km x 5km size spills over the
    edge of A4 paper, unless you reduce it down before printing.

    If the clock strikes midnight while you're fiddling about doing all this, watch out! Streetmap's
    server will have changed that pesky "&dn=" number again!

    Have fun!

    ALAN TURNBULL www.emmerdale.me.uk

    ---
    Email certified virus free Checked by AVG anti-virus system (grisoft.comgrisoft.com). Version:
    6.0.553 / Virus Database: 345 - Release Date: 18-12-03

  2. The "dn" in the new Streetmap URL parameters appears to stand for "day
    number" - the number of days since 07/06/2002 (why this date?).
    You can calculate the "dn" in Javascript with the following code:-

    function streetmapURL(easting,northing,maptitle) { currentDate = new Date(); streetmapDate = new
    Date(); streetmapDate.setDate(07); streetmapDate.setMonth(06); streetmapDate.setFullYear(2002);
    streetmapDN = currentDate.getTime() - streetmapDate.getTime(); streetmapDN = Math.floor(streetmapDN
    / (1000 * 60 * 60 * 24));

    // (use &z=4 for 5X5 km map) streetmap="streetmap.co.uknewmap.srf" + easting + "&y="
    + northing + "&z=3&st=4&ar=Y&dn=" + streetmapDN + "&tl=" + maptitle;

    return(streetmap); }

    and link to it in your HTML tag like this:-

    <a href="#" onclick="window.location.href=streetmapURL(390905,620525,'The+Cheviot'😉;return
    false;">The Cheviot</a>

    Cheers, Simon Website simonedwardes.co.uksimonedwardes.co.uk "The Mountains of England and Wales"

Active in the last 60 minutes

Active in this thread

0 users · 1 guest ·0 bots ·1 total

No signed-in users are active right now.

No known search crawlers active right now.