<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><div class="WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I am going down the path of possibly over riding the JS function.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">function QueryFeatureInfo(geom, append, maxfeatures, which)</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">{</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">…</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">var reqParams = "OPERATION=QUERYMAPFEATURES&VERSION=1.0.0&PERSIST=1&MAPNAME=" + encodeURIComponent(mapName) + "&SESSION=" + sessionId + "&SEQ=" + Math.random();</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">reqParams += "&LAYERNAMES=" + encodeURIComponent(GetVisSelLayers()) + "&GEOMETRY=" + geom + "&SELECTIONVARIANT=" + queryVariant + "&CLIENTAGENT=" + encodeURIComponent(clientAgent);</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">…</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">This seems to be working by adding LAYERATTRIBUTEFILTER=2.</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">What do you think? Is this a solid way to go? Might have to tweak GetVisSelLayers()) as well.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Berg, James [via OSGeo.org] [mailto:<a href="/user/SendEmail.jtp?type=node&node=5067630&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>] <br>
<b>Sent:</b> Friday, July 19, 2013 9:54 AM<br><b>To:</b> ChrisGo<br><b>Subject:</b> Re: Selection of Layers Not Visible (Suggestions)</span></p><p class="MsoNormal"> </p><p class="MsoNormal" style="margin-bottom:12.0pt">There's no setting like that so if want a layer selected you'll need it turned on. <br>
<br>You can, however, make it appear like  de-activated layers are being selected. <br><br>First, you need an invisible version of the layer that is selectable. Hide the layer from the legend also. <br><br>Second, create visible layer that is not selectable. <br>
<br>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. <br><br>-----Original Message----- <br>From: <a href="/user/SendEmail.jtp?type=node&node=5067625&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a> [mailto:<a href="/user/SendEmail.jtp?type=node&node=5067625&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>] On Behalf Of ChrisGo <br>
Sent: Friday, July 19, 2013 9:04 AM <br>To: <a href="/user/SendEmail.jtp?type=node&node=5067625&i=2" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>Subject: [mapguide-users] Selection of Layers Not Visible (Suggestions) <br>
<br>Couple of questions: <br><br>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? <br><br>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. <br>
<br><br>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. <br>
<br>I don't mind JS override but I really do not want to edit the viewer code is possible. <br><br>HOW? <br><br>Thanks, <br>Chris <br><br><br><br>-- <br>View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Selection-of-Layers-Not-Visible-Suggestions-tp5067613.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/Selection-of-Layers-Not-Visible-Suggestions-tp5067613.html</a><br>
Sent from the MapGuide Users mailing list archive at Nabble.com. <br>_______________________________________________ <br>mapguide-users mailing list <br><a href="/user/SendEmail.jtp?type=node&node=5067625&i=3" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br><br>_______________________________________________ <br>mapguide-users mailing list <br>
<a href="/user/SendEmail.jtp?type=node&node=5067625&i=4" target="_top" rel="nofollow" link="external">[hidden email]</a> <br><a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
<br></p><div class="MsoNormal" align="center" style="text-align:center"><hr size="1" width="100%" noshade style="color:#cccccc" align="center"></div><div><div><p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#444444">If you reply to this email, your message will be added to the discussion below:</span></b></p>
</div><p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#444444"><a href="http://osgeo-org.1560.x6.nabble.com/Selection-of-Layers-Not-Visible-Suggestions-tp5067613p5067625.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/Selection-of-Layers-Not-Visible-Suggestions-tp5067613p5067625.html</a> </span></p>
</div><div style="margin-top:4.8pt"><p class="MsoNormal" style="line-height:18.0pt"><span style="font-size:8.5pt;font-family:"Tahoma","sans-serif";color:#666666">To unsubscribe from Selection of Layers Not Visible (Suggestions), <a href="" target="_top" rel="nofollow" link="external">click here</a>.<br>
<a href="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" target="_top" rel="nofollow" link="external"><span style="font-size:7.0pt;font-family:"Times New Roman","serif"">NAML</span></a> </span></p>
</div></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Selection-of-Layers-Not-Visible-Suggestions-tp5067613p5067630.html">RE: Selection of Layers Not Visible (Suggestions)</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html">MapGuide Users mailing list archive</a> at Nabble.com.<br/>