[OpenLayers-Users] Hyperlinked Features

Christopher Schmidt crschmidt at metacarta.com
Fri May 25 19:03:28 EDT 2007


On Fri, May 25, 2007 at 06:28:54PM -0400, Darren Cope wrote:
> Hi all,
> 
> I'm new to the OpenLayers world, but have set up a little application
> that displays exactly what I want it to.  You can see it here:
> http://dmcope.freeshell.org/gis/multiple4.html
> 
> I'm looking for a way to hyperlink each individual line feature (I'm
> serving them as a WMS via MapServer) to a webpage, so that a user
> could zoom in on the map, then click on a canoe trip feature in order
> to be taken to the info page for that particular trip.  I have the URL
> stored as an attribute for each feature (currently shapefile format
> behind Mapserver.) What is the best way to accomplish this?

http://openlayers.org/dev/examples/getfeatureinfo.html is probably a
good starting point: it will let you do a query to the WMS server. (This
isn't a complete solution, but it may help point you in the right
direction.)

Cool map.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list