CTRLClick Widget

4 messages Options
Embed this post
Permalink
jcabrera

CTRLClick Widget

Reply Threaded More More options
Print post
Permalink
I am trying to modify the default ctrl click behavior.  I registered the CTRLClick widget in my applicationdefinition.xml:

      <Widget>
          <Name>CTRLClick</Name>
          <Type>CTRLClick</Type>
          <Location />
          <Extension>
              <ElementId />
          </Extension>
      </Widget>

I see it being created, but the _display function is not being hit.  What do I need to do to get it working?

Jorge
Mike Adair

Re: CTRLClick Widget

Reply Threaded More More options
Print post
Permalink
The CTRLClick widget is pretty out of date (from the 1.0 branch).  I
think you would have better luck if you updated to a more current
version of Fusion (CTRLClick is implemented in the layer objects using
OpenLayers handlers which is much more robust).

However, looking at the code for Fusion 1.0, it looks like you need to
add some <Layer> elements in the Extension:
<Extension>
  <Layer>Parcels</Layer>
  <Layer>Roads</Layer>
</Extension>

Mike

jcabrera wrote:

> I am trying to modify the default ctrl click behavior.  I registered the CTRLClick widget in my applicationdefinition.xml:
>
>       <Widget>
>           <Name>CTRLClick</Name>
>           <Type>CTRLClick</Type>
>           <Location />
>           <Extension>
>               <ElementId />
>           </Extension>
>       </Widget>
>
> I see it being created, but the _display function is not being hit.  What do I need to do to get it working?
>
> Jorge
>  

--
   Michael Adair
   Senior Software Architect
   DM Solutions Group Inc.

   Office: (613) 565-5056 x26
   [hidden email]
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca


_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
jcabrera

Re: CTRLClick Widget

Reply Threaded More More options
Print post
Permalink
Mike,

I am using fusion 1.1.  Any pointer as to what I need to look for in the openlayers code?

Jorge

Mike Adair wrote:
The CTRLClick widget is pretty out of date (from the 1.0 branch).  I
think you would have better luck if you updated to a more current
version of Fusion (CTRLClick is implemented in the layer objects using
OpenLayers handlers which is much more robust).

However, looking at the code for Fusion 1.0, it looks like you need to
add some <Layer> elements in the Extension:
<Extension>
  <Layer>Parcels</Layer>
  <Layer>Roads</Layer>
</Extension>

Mike
jcabrera

Re: CTRLClick Widget

Reply Threaded More More options
Print post
Permalink
Mike,

Actually, how do I tell what version of fusion we are using?  Fusion.js file has the following ID:

 * $Id: fusion.js 1396 2008-05-08 15:34:30Z madair $


Jorge

jcabrera wrote:
Mike,

I am using fusion 1.1.  Any pointer as to what I need to look for in the openlayers code?

Jorge

Mike Adair wrote:
The CTRLClick widget is pretty out of date (from the 1.0 branch).  I
think you would have better luck if you updated to a more current
version of Fusion (CTRLClick is implemented in the layer objects using
OpenLayers handlers which is much more robust).

However, looking at the code for Fusion 1.0, it looks like you need to
add some <Layer> elements in the Extension:
<Extension>
  <Layer>Parcels</Layer>
  <Layer>Roads</Layer>
</Extension>

Mike