<div dir="ltr">I would be willing to assist you on getting the panquery widget to work. <br>Why are you using a hacked version of pan? when panquery is there?<br><br>heres an example for panquery in appDef<br><br>&lt;!-- CONTAINER--&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Container&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;toolbar&lt;/Name&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Type&gt;Toolbar&lt;/Type&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Position&gt;left&lt;/Position&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Item&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Function&gt;Widget&lt;/Function&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Widget&gt;FitToWindow&lt;/Widget&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Item&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Item&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Function&gt;Widget&lt;/Function&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Widget&gt;ZoomIn&lt;/Widget&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Item&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Item&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Function&gt;Widget&lt;/Function&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Widget&gt;ZoomOut&lt;/Widget&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Item&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Item&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Function&gt;Widget&lt;/Function&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Widget&gt;PanQuery&lt;/Widget&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Item&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Container&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;Widget&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;PanQuery&lt;/Name&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Type&gt;PanQuery&lt;/Type&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Description&gt;Click or click and drag to select features&lt;/Description&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Extension&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;SelectionType&gt;INTERSECTS&lt;/SelectionType&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Tolerance&gt;25&lt;/Tolerance&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;QueryActiveLayer&gt;false&lt;/QueryActiveLayer&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Extension&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ImageUrl&gt;images/icons/pan.png&lt;/ImageUrl&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Tooltip&gt;Click or click and drag to select features&lt;/Tooltip&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/Widget&gt;<br><br>also if you do not want it to have a &quot;button&quot; for it at all you can add this to your fusion initialized function and set it active<br><br>function onInitialize() {<br>&nbsp;&nbsp;&nbsp;&nbsp;  <br>&nbsp;&nbsp;&nbsp; var map = Fusion.getMapById(&#39;mapArea&#39;);<br>
<br>&nbsp;&nbsp;&nbsp; // activate PanQuery<br>&nbsp;&nbsp;&nbsp; var panWidget = Fusion.getWidgetById(&#39;PanQuery&#39;);<br>&nbsp;&nbsp;&nbsp; map.activateWidget(panWidget);<br><br>}<br><br>If you want a clue on the &quot;wierd behaviour&quot; it is your map tips fired event that causes the focus to be lost.&nbsp; That is causing the selection to be triggered when you pan. <br>
<br><br>Cheers<br><br>Paul D. <br><br><div class="gmail_quote">On Fri, Sep 12, 2008 at 1:07 PM, Marc Pfister <span dir="ltr">&lt;<a href="mailto:mpfister@enplan.com">mpfister@enplan.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">My app is at:</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><a href="http://209.20.81.81/fusion/templates/mapserver/corning/" target="_blank">http://209.20.81.81/fusion/templates/mapserver/corning/</a></span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Also, there's some weird behavior I just noticed with
PanQuery – when the map redraws, it draws a new querymap based off of a
query on location where you started your click and drag, even though it does
not make the selection there.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Note that my PanQuery is a modified pan.js, not panquery.js.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">And, is it just me or is the selection highlight not drawn with
the antialiased renderer?</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">I'm using 1.1.0 RC1.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Marc</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<div style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0in 0in 0in 4pt;">

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:pdescham49@gmail.com" target="_blank">pdescham49@gmail.com</a> [mailto:<a href="mailto:pdescham49@gmail.com" target="_blank">pdescham49@gmail.com</a>] <b>On Behalf Of </b>Paul
Deschamps<br>
<b>Sent:</b> Thursday, September 11, 2008 6:21 PM<br>
<b>To:</b> Marc Pfister<br>
<b>Cc:</b> Paul Spencer; <a href="mailto:fusion-users@lists.osgeo.org" target="_blank">fusion-users@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [fusion-users] PanQuery and pink backgrounds</span></p>

</div>

</div><div><div></div><div class="Wj3C7c">

<p>&nbsp;</p>

<div>

<p style="margin-bottom: 12pt;">I would like to assist you on
this: <br>
<br>
1. Can we see your application? if not can you post your appdef. template and
supporting js code?<br>
2. What revision are you using?<br>
<br>
Cheers<br>
<br>
Paul D.</p>

<div>

<p>On Thu, Sep 11, 2008 at 5:18 PM, Marc Pfister &lt;<a href="mailto:mpfister@enplan.com" target="_blank">mpfister@enplan.com</a>&gt; wrote:</p>

<div>

<p style="margin-bottom: 12pt;"><br>
Paul Spencer [mailto:<a href="mailto:pspencer@dmsolutions.ca" target="_blank">pspencer@dmsolutions.ca</a>]
wrote:</p>

</div>

<div>

<p style="margin-bottom: 12pt;">&gt; I haven&#39;t tried the
panquery widget in a while. &nbsp;The intention of the<br>
&gt; widget was to have a dual mode widget that if you click and drag, it<br>
&gt; pans and if you just click it does a query. &nbsp;Looking at the code, it<br>
&gt; doesn&#39;t appear to have anything that would cause it to make two<br>
&gt; buttons. &nbsp;Perhaps you have something unintentional in your<br>
&gt; ApplicationDefinition (widget declared twice perhaps?).</p>

</div>

<p>I noticed a few things and now have it working.<br>
<br>
1. PanQuery.js requires Pan.js<br>
2. I end up with 2 icons. Hmmmmm....<br>
3. I set PanQuery.js and Pan.js to output a message to console when<br>
initializing.<br>
4. I have a map that only has PanQuery in its ApplicationDefinition.xml<br>
5. When it starts, I get messages that both Pan and PanQuery have<br>
initialized.<br>
6. Perhaps it&#39;s adding a new OpenLayers control twice, once for each<br>
initialization.<br>
7. Try commenting out the creation and adding of the control in either<br>
JS. No dice.<br>
8. OK, try taking the event binding and the mouseup event method and<br>
adding into pan.js<br>
9. Use query-fied pan.js<br>
10. Success!<br>
<br>
So I&#39;m not sure why exactly I couldn&#39;t get PanQuery.js to work, but it<br>
seems to have something to do with the require.<br>
<span style="color: rgb(136, 136, 136);"><br>
Marc</span></p>

<div>

<div>

<p><br>
_______________________________________________<br>
fusion-users mailing list<br>
<a href="mailto:fusion-users@lists.osgeo.org" target="_blank">fusion-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/fusion-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/fusion-users</a></p>

</div>

</div>

</div>

<p>&nbsp;</p>

</div>

</div></div></div>

</div>

</div>


</blockquote></div><br></div>