This class produces a MAP tag suitable for inclusion in an HTML page. Each of the MapElements passed to createImageMap will result in a corresponding AREA tag within the resultant MAP tag. Each of these AREA tags have the HREF defined in the MapElement, as well as its target.
The parameters onMouseOver and onMouseOut on the method createImageMap allow for the creation of OnMouseOver and OnMouseOut attributes on the resultant AREA tags. The text of these attributes can include information that is specific to the MapElement corresponding to the AREA tag. Namely, the MapElement's HREF, target, or label, selectedItemIndex or selectedItemParam can be inserted anywhere in the OnMouseOver or OnMouseOut text. This can be accomplished by using the value of LABEL_REPLACE, HREF_REPLACE, TARGET_REPLACE, INDEX_REPLACE or PARAM_REPLACE in the text of your onMouseOver or onMouseOut parameter. For example, the following code would create an onMouseOver attribute in each AREA tag that had that specific MapElement's label inserted in the javascript call to popup:
ImageMapCreator.createImageMap(sgi.map, sgi.mapName, "return popup('LABEL_REPLACE')", "return popdown()", "javascript://")
It would also create onMouseOut attributes which made a call to the javascript function popdown. As in: <AREA COORDS="23,45,12,45" onMouseOver="return popup('245.56')" onMouseOut="return popdown()" HREF="http://www.visualmining.com">
For a list of all members of this type, see ImageMapCreator Members.
System.Object
NetChartsServer.ImageMapCreator
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
Namespace: NetChartsServer
Assembly: NetChartsServer (in NetChartsServer.dll)
ImageMapCreator Members | NetChartsServer Namespace