NetCharts Server .NET Toolkit

ImageMapCreator.createImageMap Method 

Creates an image map using the given parameters.

public string createImageMap(
   MapElement[] mapElements,
   string mapName,
   string onMouseOver,
   string onMouseOut,
   string defaultHref
);

Parameters

mapElements
n array of MapElement objects to use to create the image map. MapElements contain a shape that specifies coordinates for the area tag in the image map. They also provides target, href, label, index and parameter information.
mapName
The name to associate with the image map.
onMouseOver
string containing javascript to run on the onMouseOver event of the area tag.
onMouseOut
string containing javascript to run on the onMouseOut event of the area tag.
defaultHref
default URL to use when creating image map HREF attributes if none is set within the MapElement.

Return Value

A string containing the HTML image map.

See Also

ImageMapCreator Class | NetChartsServer Namespace