<div dir="ltr">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.<br>
<br><div class="gmail_quote">On Thu, Sep 11, 2008 at 5:18 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 class="Ih2E3d"><br>
Paul Spencer [mailto:<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a>] wrote:<br>
<br>
</div><div class="Ih2E3d">&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?).<br>
<br>
</div>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>
<font color="#888888"><br>
Marc<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
fusion-users mailing list<br>
<a href="mailto:fusion-users@lists.osgeo.org">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><br>
</div></div></blockquote></div><br></div>