<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&gt;</span><span style='color:#990000'> You should not have this
issue if you were to revert it to the the panquery widget i can tell you why
this is happening.</span> <o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Here&#8217;s a version set to the PanQuery widget right now:<o:p></o:p></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>http://209.20.81.81/fusion/templates/mapserver/panquery<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&lt;</span>Item xsi:type=&quot;WidgetItemType&quot;&gt;<o:p></o:p></p>

<p class=MsoNormal>&lt;Function&gt;Widget&lt;/Function&gt;<o:p></o:p></p>

<p class=MsoNormal>&lt;Widget&gt;PanTool&lt;/Widget&gt;<o:p></o:p></p>

<p class=MsoNormal>&lt;/Item&gt;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>And<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>&lt;Widget xsi:type=&quot;UiWidgetType&quot;&gt;<o:p></o:p></p>

<p class=MsoNormal>&lt;Name&gt;PanTool&lt;/Name&gt;<o:p></o:p></p>

<p class=MsoNormal>&lt;Type&gt;PanQuery&lt;/Type&gt;<o:p></o:p></p>

<p class=MsoNormal>&lt;StatusItem&gt;Drag the map to pan.&lt;/StatusItem&gt;<o:p></o:p></p>

<p class=MsoNormal>&lt;ImageUrl&gt;images/icons/pan.png&lt;/ImageUrl&gt;<o:p></o:p></p>

<p class=MsoNormal>&lt;ImageClass/&gt;<o:p></o:p></p>

<p class=MsoNormal>&lt;Tooltip&gt;Pan mode&lt;/Tooltip&gt;<o:p></o:p></p>

<p class=MsoNormal>&lt;Label/&gt;<o:p></o:p></p>

<p class=MsoNormal>&lt;Disabled/&gt;<o:p></o:p></p>

<p class=MsoNormal>&lt;/Widget&gt;<o:p></o:p></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#990000'>&gt;The other thing to note is
the maptip is actually triggering a &quot;QUERY / SELECTION&quot; to get the
maptip and thus the selection has changed. You can see the correct <o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#990000'>&gt;behavior if you quickly drag
pan it does not get a chance to fire maptips and then change the selection. <o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#990000'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#990000'>&gt;What you need to do is
basically disable the maptips widget when the pan widget is active.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#990000'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal>I need the maptips to be always be on, and it seems to break
every UI convention of a tooltip to have it only work some of the time.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>So in order to fix this, is it possible to query information
without changing the selection? Alternately, could one store the current
selection, and have maptips revert back to that selection after it does its
query/selection thing?<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Marc<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<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"'>
pdescham49@gmail.com [mailto:pdescham49@gmail.com] <b>On Behalf Of </b>Paul
Deschamps<br>
<b>Sent:</b> Friday, September 12, 2008 1:00 PM<br>
<b>To:</b> Marc Pfister; fusion-users<br>
<b>Subject:</b> Re: [fusion-users] PanQuery and pink backgrounds<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>My comments are within the
original email below: adding this back into the list. <o:p></o:p></p>

<div>

<p class=MsoNormal>On Fri, Sep 12, 2008 at 2:26 PM, Marc Pfister &lt;<a
href="mailto:mpfister@enplan.com">mpfister@enplan.com</a>&gt; wrote:<o:p></o:p></p>

<div>

<div>

<div>

<p><span style='font-size:11.0pt;color:#1F497D'>&gt;</span> Why are you using a
hacked version of pan? when panquery is there?<o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

</div>

<p><span style='font-size:11.0pt;color:#1F497D'>I'm using the hacked version of
pan because when I try to use panquery, I get two of the pan icons, one
disabled and one enabled but not selectable. However if I just drop the
onmouseup select method and event binding from panquery.js into pan.js, then it
works as it is supposed to.</span><o:p></o:p></p>

</div>

</div>

<div>

<p class=MsoNormal><br>
<span style='color:#990000'>You should not have this issue if you were to
revert it to the the panquery widget i can tell you why this is happening.</span>
<o:p></o:p></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<div>

<div>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&gt;</span> 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<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

</div>

<p><span style='font-size:11.0pt;color:#1F497D'>Well shoot. That's going to be
a problem. I suppose I could make a clone of selection.php just for maptips
that returns the same thing but doesn't trigger a selection event?</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

</div>

</div>

</blockquote>

<div>

<p class=MsoNormal><span style='color:#990000'>The other thing to note is the
maptip is actually triggering a &quot;QUERY / SELECTION&quot; to get the maptip
and thus the selection has changed. You can see the correct behavior if you
quickly drag pan it does not get a chance to fire maptips and then change the
selection. <br>
<br>
What you need to do is basically disable the maptips widget when the pan widget
is active. <br>
<br>
Essentially in looking into this further it is the maptip div itself that is
the losing focus issue. when you mouse moves over that div you loose focus on
the map Window causing the pan to fire.</span><br>
<br>
<br>
&nbsp;<o:p></o:p></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<div>

<p><span style='font-size:11.0pt;color:#1F497D'>Thanks for your help,</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>Marc</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

</div>

</div>

</blockquote>

<div>

<p class=MsoNormal><span style='color:#990000'>Cheers<br>
<br>
Paul D.&nbsp; </span><o:p></o:p></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<div>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<div style='border:none;border-left:solid windowtext 1.5pt;padding:0in 0in 0in 4.0pt;
border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color blue'>

<div>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;
border-color:-moz-use-text-color -moz-use-text-color'>

<p><b><span style='font-size:10.0pt'>From:</span></b><span style='font-size:
10.0pt'> <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> Friday, September 12, 2008 11:16 AM<o:p></o:p></span></p>

<div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt'><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<o:p></o:p></span></p>

</div>

</div>

</div>

</div>

<div>

<div>

<p>&nbsp;<o:p></o:p></p>

<div>

<p style='margin-bottom:12.0pt'>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('mapArea');<br>
<br>
&nbsp;&nbsp;&nbsp; // activate PanQuery<br>
&nbsp;&nbsp;&nbsp; var panWidget = Fusion.getWidgetById('PanQuery');<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. <o:p></o:p></p>

<div>

<p>On Fri, Sep 12, 2008 at 1:07 PM, Marc Pfister &lt;<a
href="mailto:mpfister@enplan.com" target="_blank">mpfister@enplan.com</a>&gt;
wrote:<o:p></o:p></p>

<div>

<div>

<p><span style='font-size:11.0pt;color:#1F497D'>My app is at:</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'><a
href="http://209.20.81.81/fusion/templates/mapserver/corning/" target="_blank">http://209.20.81.81/fusion/templates/mapserver/corning/</a></span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>Also, there's some weird
behavior I just noticed with PanQuery &#8211; 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><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>Note that my PanQuery is a
modified pan.js, not panquery.js.</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>And, is it just me or is the
selection highlight not drawn with the antialiased renderer?</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>I'm using 1.1.0 RC1.</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>Marc</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<div style='border:none;border-left:solid windowtext 1.5pt;padding:0in 0in 0in 4.0pt;
border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color blue'>

<div>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;
border-color:-moz-use-text-color'>

<p><b><span style='font-size:10.0pt'>From:</span></b><span style='font-size:
10.0pt'> <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><o:p></o:p></p>

</div>

</div>

<div>

<div>

<p>&nbsp;<o:p></o:p></p>

<div>

<p style='margin-bottom:12.0pt'>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.<o:p></o:p></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:<o:p></o:p></p>

<div>

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

</div>

<div>

<p style='margin-bottom:12.0pt'>&gt; I haven'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'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?).<o:p></o:p></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'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'm not sure why exactly I couldn't get PanQuery.js to work, but it<br>
seems to have something to do with the require.<br>
<span style='color:#888888'><br>
Marc</span><o:p></o:p></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><o:p></o:p></p>

</div>

</div>

</div>

<p>&nbsp;<o:p></o:p></p>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

<p>&nbsp;<o:p></o:p></p>

</div>

</div>

</div>

</div>

</div>

</div>

</blockquote>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</div>

</div>

</body>

</html>