[Geomoose-users] identify on layers you don't want visable

Jim Klassen klassen.js at gmail.com
Fri Oct 26 21:25:38 PDT 2012


My understanding is you want some layers to always be identified while the rest are only identified if they are visible.

In that case, would the following work in the mapbook?

<input type="visiblelayers" name="layers"/>
<input type="hidden" name="layers" value="mapsource1/layer1:mapsource1/layer2:mapsource2/layer1"/>

Presuming everything is following the HTML forms spec for multiple valued fields, I would expect this would call identify.php with:
identify.php?layers=[whatever is on]&layers=mapsource1/layer1:mapsource1/layer2:mapsource2/layer1&...

I haven't checked if this all actually works, but seems less intrusive than adding another type.
GeoMoose JS might need to be modified to handle multiple parameters of the same name.
Identify.php might need to be modified to check for multiple parameters of the same name. (The ruby cgi library assumes this is always true. I don't know about PHP.)

If this isn't feasible I would still recommend using a type="hidden" field with maybe a name of layers2 or something.

On Oct 26, 2012, at 9:35 PM, Brian Fischer wrote:

> Hey Everyone,
> We have been trying to come up with a good way to identify on layers that you may want show up in the identify results all the time whether they are visible or not.  In our case we don’t even what those layers in the catalog.  Has anyone found a good way to do this with the existing 2.6 code?
>  
> We cannot find any good way to do this with the way the GeoMoose code sits now.  Essentially the only way the layers get passed into the identify service is to use <input type="visiblelayers" name="layers"/> or to specify them in a list.  And also the status has to be =on.  This also means each map image get’s requested whether you want it or not.
>  
> For our needs we want GeoMoose to be flexible so we can configure some <map-sources> to show up in the identify results even though their status is =off.  Then for the rest of the <map-sources> we still want to use <input type="visiblelayers" name="layers"/>.
>  
> So rather than customizing identify.php to do this for just our needs we are thinking of building this configurability in and contributing back.  2 questions.
> 1)      Is this useful to others.
> 2)      Would using a configuration options like this work well? Or should we add an option to the map-source to tell GeoMoose this is a query only layer?
> <input type="visiblelayers" name="layers"/>
> <input type="queryonlylayers" name="mapsource1/layer1:mapsource1/layer2:mapsource2/layer1"/>
>  
> Thanks!
>  
>  
>  
> Brian Fischer, CFM
> Principal | GIS Project Manager
> O 763.493.4522 | D 763.493.6664 | M 763.229.2734
>  
> <image001.jpg>
>   6901 E Fish Lake Rd. , Suite 140 • Maple Grove, MN• 55369
> www.houstoneng.com 
> This entire message (including all forwards and replies) and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret, work-product, attorney-client or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
>  
>  
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users



More information about the Geomoose-users mailing list