Brad,
In the examples folder you will find "markersTextLayer.html" which does
90% of what you want. It loads information for your markers from a text
file (with a custom icon for each if you like) and displays a popup with
information relevant to that marker (also loaded from the text file).
It does not, to my knowledge, do so on just a mouse-over, the user has
to click on the icon, but I imagine that wouldn't be too difficult to
finesse. There has been considerable traffic recently regarding having
scrollbars in these popups as well, so if that is a need, you can do it
too.
Good luck,
r.b.
var newl = new OpenLayers.Layer.Text( "text", {location:
"./wateruse.txt"} );
map.addLayer(newl);
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Bradley Mclain
Sent: Wednesday, July 18, 2007 7:29 PM
To: Mapserver Users ML; OpenLayers ML
Subject: [OpenLayers-Dev] Information/Advice about placing markers
Ok what I want to do is place a series of markers on different farm
blocks and properties, I currently have a Webserver using OpenLayers to
import Google Maps and my own custom Mapserver WMS data. I am looking
for any advice hints and tips on how to go about all of this.
I have a list of all the info I need about the different farm blocks,
names of growers, variety of produce etc and I would like to place a
marker so that when you hover over it it displays this data. (Also a
potential future feature would be a full outline of the property but
this is probably a while off.
Currently all I have is markers being placed on the specific locations
with no pop-up info or anything. I don't want to cram my html file full
of this info and would prefer if I could import from some sort of a
database or text file. (Preferably textfile in the short term for
testing but eventually a database would be ideal).
Cheers
Brad
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users