[Cartoweb-users] Tool Tips plugin problem
Pierre GIRAUD
pierre.giraud at camptocamp.com
Tue Jan 30 12:26:43 EST 2007
Hello,
Hope this is not too late to answer you on that point.
I think you were right to notice the errors on the jstrace debugger.
The first two warnings are not really important. This are notices.
But the last one will prevent some javascript code to be executed
without any javascript error shown in console.
To fix this issue, you need to add the following code into your
project's cartoclient.tpl template for example just before the body
close tag :
{if $imagemap_active|default:''}
{$imagemap}
{/if}
This should insert a new img HTML tag with id="map1" in the generated
HTML page.
Regards
Pierre
frequens wrote:
> Dear all,
>
> I managed to activate and configure the Tooltips plugin for one of my
> projects, although it works from cartoweb plugin directory and I could
> not find a way to configure it from project's plugin directory.
> But so far, so good.
> Yet when using the tooltips, the transparent layer atop of the main
> map itself does not get cleared anymore.
> So all drawn zoom in rectangles & zoom out crosses stay in the layer
> regardless of the scale of the map. Otherwise these tools work OK
>
> Three types of messages are appearing in the jstrace debugger
>
> Warning: given element (currentScale) was not found in the DOM!
>
> Warning: given element (location_info) was not found in the DOM!
>
> Warning: given element (map1) was not found in the DOM!
>
> The last one is related to: image.useMap = "#map1"; setting in
> ToolTips.ajax.js,
> but I am clueless how to resolve it.
>
> Many thanks for any help in advance,
>
> frequens
> ------------------------------------------------------------------------
>
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>
More information about the Cartoweb-users
mailing list