Topic: EasyMap problems
We have implemented EasyMaps for a few years on http://www.hbrg.org.uk/TRY/TRYmaps.html.
The code is the same for all the links, through a bit of javascript thus:
//<![CDATA[
function showGridmap(tvk)
{
var Gridmap = document.getElementById("OrigMap");
Gridmap.src = 'http://www.brc.ac.uk/schemes/NBNWidget/ … .aspx?tvk=' + tvk + '&bg=VC&ds=GA000495,GA000383,GA000496,GA000499,GA000497,GA001303&gd=100km&zoom=highland&b0from=1900&b0to=2009&b0fill=0000BB&w=200&terms=0&ref=0&link=0&css=http://www.hbrg.org.uk/CommonItems/nbn.css';
var Gridmap = document.getElementById("CurrentMap");
Gridmap.src = 'http://www.brc.ac.uk/schemes/NBNWidget/ … .aspx?tvk=' + tvk + '&bg=VC&ds=GA000495,GA000383,GA000496,GA000499,GA000497,GA001303&gd=100km&zoom=highland&b0from=1900&b0to=2050&b0fill=00BB00&w=200&terms=0&ref=0&link=0&css=http://www.hbrg.org.uk/CommonItems/nbn.css';
}
//]]>
</script>
That is called by the hyperlinks e.g.
<a title="Acalitus longisetosus" href="javascript:%20showGridmap('NHMSYS0020703336');">Birch Felt-mite Gall</a>
<a title="Phragmidium bulbosum" href="javascript:%20showGridmap('NHMSYS0001493534');">Bramble Rust Fungus (1)</a>
I have chosen these examples deliberately, as the first one, LH map, gives the error ‘Your request could not be completed because of the following errors. No data returned for the criteria you have specified’.
The other shows a blank map, as I would want, and as happened originally under G4.
The links for the two Uromyces also give the error, while the Knopper also shows a blank map.
The problem, therefore - why do some calls give an error and others do not, despite neither having any records that meet the request?
Also, the RH map intermittently fails in both instances with an identical error as above, but with the ‘No data …’ line in small blue font rather than the large black. Clicking the link again once or twice, or doing a manual reload of the iframe, will load the RH map correctly (but this never happens with the LH map).
Please identify the problem(s), and allow a blank map to be displayed in all cases if no records exist, and investigate why there should be that intermittent display of an error when clearly no error exists.
Identical behaviour in Opera and Chrome.
Murdo