Automatic indication of a place on a map on a web page
Posted on 2004-08-15
Automatic indication of a place on a map.
I have a web page consisting of a map with hundreds of towns names on it. The map fills almost the whole screen. Scrolling down the page reveals a list, in alphabetical order, of all the town names which are shown on the map.
I would like the site visitor to be able to look up any town name in the alphabetical list, hover over or click on it, and then for him to see the position of the town name on the map indicated automatically in some way. Ideally the page should scroll up automatically to the map, so that he can see where the town is on the map.
(At the moment I have only a non-automatic conventional partial solution. The map is divided into grid squares, and each town in the alphabetical list has the map grid square displayed next to it, as on a conventional map, e.g. D6. The viewer has to note the grid square reference, scroll up, look in the grid square on the map and visually search for the town inside the square. I am seeking a neater solution which pinpoints the position exactly and quickly).
Any bright ideas?