Using Maps as adjunct to narrative
The Simple Statement
I want a system that will allow for the display of a "live map." This a map
where the user can select elements and click, or mouse over, to get more
information.
One path: use the gpsplotter as the starting point to create a map, and then
add demonstration features.
Vaque!
I want to click on a map and see pictures and stories, or lists of pictures and
stories, that relate to the location clicked upon.
Two approaches
- The gpsplotter approach of 'named points.' Click on a named point, or mouse
over, and see what there is to offer at that point.
- The proximity approach: click on the map, go to the server, and a list is
assembled from some manner of proximity calculation.
The Proximity Approach
I here am being a tad ambiguous. It does not occur through 'some manner' of
calculation, but, rather, through the straight forward approach that I have had
mastered now for years. Specifically:
- Determine the coordinates of the target point (tp). This could, in theory,
be complicated, but in practice for the map project it is a simple formula. The
reverse of what was used to determine an X,Y point on the map to correspond to
a give lat, long pair.
- Select all items that are within the distance limit of the target point. This
is subject to complexity, but not real difficulty, as it is dependent on data
storage.
- A query like this: select * from [places/pictures/stories] where lat between
passed_lat-lat_offset and passed_lat+lat_offset
and long between passed_long-long_offset and passed_long+long_offset
- Or... Walk a geocoded file. For each line, calculate distance from TP. If
it fits, you must include.
A Specific Thought
Javascript to preload an array of image thumbnails, then have a live map where
mouse overs change the image in a navigation.
Tentacles of despair.
file created 10/10/2000 original as: //icarus/geo/narrative.html