[mapguide-users] Selection of Layers Not Visible (Suggestions)

ChrisGo cgountanis at mpowerinnovations.com
Fri Jul 19 08:09:55 PDT 2013


I am going down the path of possibly over riding the JS function.



function QueryFeatureInfo(geom, append, maxfeatures, which)

{

…

var reqParams =
"OPERATION=QUERYMAPFEATURES&VERSION=1.0.0&PERSIST=1&MAPNAME=" +
encodeURIComponent(mapName) + "&SESSION=" + sessionId + "&SEQ=" +
Math.random();

reqParams += "&LAYERNAMES=" + encodeURIComponent(GetVisSelLayers()) +
"&GEOMETRY=" + geom + "&SELECTIONVARIANT=" + queryVariant + "&CLIENTAGENT="
+ encodeURIComponent(clientAgent);

…



This seems to be working by adding LAYERATTRIBUTEFILTER=2.



What do you think? Is this a solid way to go? Might have to tweak
GetVisSelLayers()) as well.







*From:* Berg, James [via OSGeo.org] [mailto:
ml-node+s1560n5067625h1 at n6.nabble.com]
*Sent:* Friday, July 19, 2013 9:54 AM
*To:* ChrisGo
*Subject:* Re: Selection of Layers Not Visible (Suggestions)



There's no setting like that so if want a layer selected you'll need it
turned on.

You can, however, make it appear like  de-activated layers are being
selected.

First, you need an invisible version of the layer that is selectable. Hide
the layer from the legend also.

Second, create visible layer that is not selectable.

Add these both to the map and the user will view the second layer they can
switch on and off, but is always selecting the first invisible one that's
always turned on.

-----Original Message-----
From: [hidden email]
</user/SendEmail.jtp?type=node&node=5067625&i=0>[mailto:[hidden
email] </user/SendEmail.jtp?type=node&node=5067625&i=1>] On Behalf Of
ChrisGo
Sent: Friday, July 19, 2013 9:04 AM
To: [hidden email] </user/SendEmail.jtp?type=node&node=5067625&i=2>
Subject: [mapguide-users] Selection of Layers Not Visible (Suggestions)

Couple of questions:

1. What is the best way to set the current map to allow selections on
layers that are not yet shown at a current scale?

2. Can this setting be set in the WebLayout of the map because that would
be awesome if you could set it via API or globally per map without having
to use FCGI call.


Please any information on the best usage for this would be great. Example:
a layer is not yet turned on and a user draws a selection box. I want all
layers within that selection box to be selected no matter if the layer is
visible or not.

I don't mind JS override but I really do not want to edit the viewer code
is possible.

HOW?

Thanks,
Chris



-- 
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Selection-of-Layers-Not-Visible-Suggestions-tp5067613.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
[hidden email] </user/SendEmail.jtp?type=node&node=5067625&i=3>
http://lists.osgeo.org/mailman/listinfo/mapguide-users

_______________________________________________
mapguide-users mailing list
[hidden email] </user/SendEmail.jtp?type=node&node=5067625&i=4>
http://lists.osgeo.org/mailman/listinfo/mapguide-users

------------------------------

*If you reply to this email, your message will be added to the discussion
below:*

http://osgeo-org.1560.x6.nabble.com/Selection-of-Layers-Not-Visible-Suggestions-tp5067613p5067625.html

To unsubscribe from Selection of Layers Not Visible (Suggestions), click
here<http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5067613&code=Y2dvdW50YW5pc0BtcG93ZXJpbm5vdmF0aW9ucy5jb218NTA2NzYxM3wtMTAyODE3Mzk2>
.
NAML<http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Selection-of-Layers-Not-Visible-Suggestions-tp5067613p5067630.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20130719/1582a7ba/attachment.html>


More information about the mapguide-users mailing list