[Chameleon] Re: turn on/off the tool tip
Normand Savard
nsavard at mapgears.com
Tue Sep 11 15:23:37 EDT 2007
vinod kumar wrote:
>Hi
>I am using chameleon 2.6 in JSAPI mode. When maptip widget works perfectly while i selecting the layer but I am not able to switch off the Map tip layer. Is it possible on/off the tool tip layer. IF so plz suggest me.
>
>
>
Vinod,
You can add the following to your template.
Norm
<script language="JavaScript" type="text/javascript">
function toggleMapTips()
{
oMapTips = document.getElementById("maptips_overlay");
if(oMapTips && oMapTips.style.visibility == "visible")
oMapTips.style.visibility="hidden";
else
oMapTips.style.visibility="visible";
}
</script>
<input type="button" name="maptipstoggle" value="MapTipsToggle"
onclick="toggleMapTips()">
More information about the Chameleon
mailing list