scrolling over a point to view attributes

Fawcett, David David.Fawcett at PCA.STATE.MN.US
Thu Dec 22 13:04:21 PST 2005


Here is the method that I have used to create an imagemap that displays
mouseover/tooltips information.  

Here are the Web and Layer definitions from my mapfile:

  WEB
    IMAGEPATH "c:\netscape\server4\docs\maps\tmp\"

    IMAGEURL "/maps/tmp/"
    TEMPLATE "imagemaptemplate.html"
  END   # End of Web Interface

LAYER
    NAME basemap
    STATUS DEFAULT
    TYPE POLYGON
    DATA 'county'
	TEMPLATE "countytemplate.html"
	HEADER "countyimagemapheader.html"
	FOOTER "countyimagemapfooter.html"
    CLASSITEM "COUNTY_FIP"
    CLASS 
       NAME "All"
       OUTLINECOLOR 0 0 0   
       COLOR 255 255 255
    END

END  #end layer
________

The template in the Web object, "imagemaptemplate.html" contains one
line:
<img src="[img]">

_________


More information about the MapServer-users mailing list