[Chameleon] MapTips Problems

Julien-Samuel Lacroix jlacroix at mapgears.com
Wed May 24 09:13:26 EDT 2006


Alessandro Oggioni wrote:
> I have use the MapTips  widget with the JavaScript module:
>        <script type="text/javascript">
>      function myMaptipsOver(e, content)
[...snip...]
>      }
>          function myMaptipsOut(e, content)
>      {
[...snip...]
>      }
> 
> in this script have I definited the MouseOver and MouseOut widget 
> parameters?
> I have insert the layer in my html page:
> 
> <div id="MaptipsLayer" name="MaptipsLayer">
> </div>
> 
> and I have activated the maptips button:
> 
>                <cwc2 type="MapTips" visible="false" defaulttext="&nbsp;" 
> tolerance="2" maptipsdiv="MaptipsLayer" label="Map Tips" 
> styleresource="TextButtons" popupstyleresource="TextButtons" 
> popupwidth="550" popupheight="475" image="images/icon_maptips.png" 
> toolbar="false" status="false" menubar="false" layer="Stradario" 
> attributes="NOME_STRAD">
>                      <image state="normal"/>
>                      <image state="selected"/>
>                      <image state="hover"/>
>                  </cwc2>
> 
> It's all right??
> Alessandro
> 

Hi,
If you define your own MapTipsOver and MapTipsOut javascript functions, 
you will need to define the MouseOver="myMaptipsOver" and 
MouseOut="myMaptipsOut" parameters in your widget. Also, try adding the 
values in your function definition. Like:

function myMaptipsOver(e, content, values) {...
and
function myMaptipsOut(e, content, values) {...

Does it help?

Julien
-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/


More information about the Chameleon mailing list