[Geomoose-users] clear selection results when identifying.

Reynolds, Michael J. (DOT) mike.reynolds at state.mn.us
Thu Jul 12 10:39:05 PDT 2012


One way would be to put that right into the identify.php:

Existing code is around line 190:
print header('Content-type: text/xml');
print "<results>";
print "<script/>";

Change it to:
print header('Content-type: text/xml');
print "<results>";
print "<script><![CDATA[";
print "GeoMOOSE.turnLayerOff('highlight/all');";
print "]]></script>";

I don't like changing the core geomoose script...makes it a hassle to upgrade but it works.


From: geomoose-users-bounces at lists.osgeo.org [mailto:geomoose-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz
Sent: Thursday, July 12, 2012 11:50 AM
To: Geomoose-users at lists.osgeo.org
Subject: [Geomoose-users] clear selection results when identifying.

Hello,

I was wondering if it is possible to mix javascript and services.  Specifically I would like the highlighting from the selection results cleared when a user identifies a feature.


This is the code I would like to execute at the same time:

                <tool name="identify" title="Identify" type="service" service="identify" cursor="url('cursors/identify2.cur') 9 9,url('cursors/identify2.cur'),auto" />
                <tool name="clear" title="Clear Selection" type="javascript" selectable="false">
                        GeoMOOSE.changeLayerVisibility('highlight/all', false);
                </tool>

Thanks

Mark Volz
GIS Specialist



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20120712/105f8a85/attachment.html>


More information about the Geomoose-users mailing list