[Cartoweb-users] hide query icon
Oliver Christen
oliver.christen at camptocamp.com
Wed Sep 17 09:10:31 EDT 2008
Hi christoph
to deactivate a tool, imply set a negative weight in the related plugin .ini
for example, weightQueryByBbox = -1
see
http://www.cartoweb.org/doc/cw3.5/xhtml/user.config.html#user.config.plugins.order
the problem you have is because the tool is still considered active from the
point of view of the javascript and when you switch tool the javascript that
handle the tools try to deactivate the tool you have in your toolbar 3, but
since you commented it, it wont find it and the tool will not get switched
correctly, hence you are stuck to zoom in.
regards
Oliver
----- Original Message -----
From: "Lauber Christoph" <ch.lauber at geo-thun.ch>
To: <cartoweb-users at lists.maptools.org>
Sent: Wednesday, September 17, 2008 2:38 PM
Subject: [Cartoweb-users] hide query icon
> Hi list
>
> This might be a silly question, but I don't find the answer.
> I want to make a cartoweb application where the user is not allowed to
> make a query. Therefore I would simply like to hide the query icon. But
> when I comment the line --include file="toolbar.tpl" group="3"-- (in
> query.ini I set groupPlugin=3) in my cartoclient.tpl file the pan and zoom
> functions get broken. They just do 'zoom in' all the time.
>
>
> Thanks for help.
>
> Christoph
>
> _______________________________________________
> 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