How to: |
This section describes how to create rollovers using the ESRI Configuration Utility. Rollovers are useful interactive features that can be used to display additional information about key points on a map.
For more information on creating outbound layers, see the WebFOCUS Adapter for Geographic Information Systems: ESRI ArcGIS Server and ArcGIS Flex API documentation.
The following syntax provides a sample of the SymbolMouseEvent JavaScript function that you can use:
function SymbolMouseEvent(type,fexId,layerId,x,y,p, currentGraphicJSON,extentGraphicJSON)
{
var div = document.getElementById('rollOverTextDiv');
var windowName = "_new" ;
var esriObject = getWfEsriObject();
var mapWindowName = esriObject.getFexById(fexId).getWindow();
var reportWindowName = esriObject.getFexById("fex2").getWindow();
// just some report to get windowname
if(fexId == "fex0")
windowName = reportWindowName;
switch(type)
{
case "close" :
case "mouseOut" :
div.style.display = "none";
div.style.left = -100;
div.style.top = -100;
break;
case "click" :
case "rollOver" :
div.style.display = "inline";
div.style.left = x;
div.style.top = y;
var s = "";
if(fexId == "fex11" || fexId == "fex12" || fexId == "fex21" || fexId == "fex22")
{
s = s + p.IBI$TEXT;
}
div.innerHTML = s;
break;
case "mouseMove" :
div.style.left = x;
div.style.top = y;
break;
case "mouseOver" :
break; default : debugWindow(type + "," + fexId + "," + layerId); break; } }
In the syntax, IBI$TEXT refers to the value that is returned from the outbound layer node in the Map FOCEXEC, as shown in the following image.
Note: Rollovers can also contain HTML text.
WebFOCUS |