[fusion-users] MapServer/Fusion 2.0/SelectionPanel

Paul Spencer pspencer at dmsolutions.ca
Wed Jun 24 07:16:29 EDT 2009


One of the things that is not in jxlib is animation effects for things  
like opening dialogs, panels, menus, flyouts etc - there really should  
be a way of doing that!  In any case, you can open the panel by  
calling panelSelection.toggleCollapse(false) if the panel is used by  
itself or by calling panelSelection.maximize() if it is part of a  
Jx.PanelSet.

You can use events to determine when to do this,

//assuming your map is in a div with an id of 'Map' ...
//open the panel when a selection has been made
Fusion 
.getMapById('Map').registerForEvent(Fusion.Event.MAP_SELECTION_ON,  
function() {
     panelSelection.toggleCollapse(false);
});
//close the panel when the selection has been cleared?
Fusion 
.getMapById('Map').registerForEvent(Fusion.Event.MAP_SELECTION_OFF,  
function() {
     panelSelection.toggleCollapse(true);
});

Cheers

Paul

On 23-Jun-09, at 4:54 PM, Nolte, Tim wrote:

> So does anyone know how I would go about triggering the SelectionPanel
> top open when I use the Select tool? Currently in my JavaScript I have
> defined:
>
> 			var panelSelection = new Jx.Panel({
> 				label: 'Selection',
> 				content: 'SelectionPanel',
> 				collapse: false,
> 				maximize: true,
> 				closed: true
> 			});
>
> This is so that the Legend is maximized and the SelectionPanel is
> closed. I'd like for the SelectionPanel to fly open to show the query
> results after I use the Select tool. Anyone tried this?
>
> ----
> Timothy J Nolte - tnolte at ilpcs.com
> Network Planning Engineer
>
> iPCS Wireless, Inc.
> 4717 Broadmoor Ave, Suite G
> Kentwood, MI 49512
>
> Office: 616-656-5163
> PCS:    616-706-2438
> Fax:    616-554-6484
> Web: www.ipcswirelessinc.com
>
> -----Original Message-----
> From: Nolte, Tim
> Sent: Tuesday, June 23, 2009 3:49 PM
> To: fusion-users at lists.osgeo.org
> Subject: RE: [fusion-users] MapServer/Fusion 2.0/SelectionPanel
>
> OK, so stupid me I didn't have the TEMPLATE line for the layers I  
> wanted
> selectable. This took care of it for me. Now if I could only figure  
> out
> a way to make a pretty transparent highlight instead of the mapfile
> HIGHLIGHT that changes the color completely of the object(s) selected.
>
> - Tim
>
> ----
> Timothy J Nolte - tnolte at ilpcs.com
> Network Planning Engineer
>
> iPCS Wireless, Inc.
> 4717 Broadmoor Ave, Suite G
> Kentwood, MI 49512
>
> Office: 616-656-5163
> PCS:    616-706-2438
> Fax:    616-554-6484
> Web: www.ipcswirelessinc.com
> -----Original Message-----
> From: Paul Spencer [mailto:pspencer at dmsolutions.ca]
> Sent: Tuesday, June 23, 2009 2:08 PM
> To: Nolte, Tim
> Cc: fusion-users at lists.osgeo.org
> Subject: Re: [fusion-users] MapServer/Fusion 2.0/SelectionPanel
>
> Fusion only seems to need the metadata "selectable" on mapserver
> layers to determine if features can be selected from any given layer.
> You may need to also include a template in your layer so that
> mapserver itself thinks the layer can be queried.
>
> TEMPLATE "ttt.html"
>
> Can you test with a shape file to see if perhaps selection works with
> them?
>
> Paul
>
> On 23-Jun-09, at 12:15 PM, Nolte, Tim wrote:
>
>> I'm trying to figure out how to get selections working in Fusion
>> 2.0. I
>> have:
>>
>> 	METADATA
>> 		"groupLegendLabel" "Cell Sites"
>> 		"groupExpandInLegend" "false"
>> 		"legendLabel" "On-Air"
>> 		"selectable" "true"
>> 		"query_include_items" "all"
>> 	END
>>
>> For my METADATA on my individual layer. But when I try to use the
>> selection tool and select one of these objects I get nothing. I'm
>> running MapServer 5.4 & Fusion 2.0. This layer is an Oracle spatial
>> query resulting in points.
>>
>> - Tim
>>
>> ----
>> Timothy J Nolte - tnolte at ilpcs.com
>> Network Planning Engineer
>>
>> iPCS Wireless, Inc.
>> 4717 Broadmoor Ave, Suite G
>> Kentwood, MI 49512
>>
>> Office: 616-656-5163
>> PCS:    616-706-2438
>> Fax:    616-554-6484
>> Web: www.ipcswirelessinc.com
>> _______________________________________________
>> fusion-users mailing list
>> fusion-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/fusion-users
>
>
> __________________________________________
>
>    Paul Spencer
>    Chief Technology Officer
>    DM Solutions Group Inc
>    http://research.dmsolutions.ca/
>
>
> _______________________________________________
> fusion-users mailing list
> fusion-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fusion-users


__________________________________________

    Paul Spencer
    Chief Technology Officer
    DM Solutions Group Inc
    http://research.dmsolutions.ca/



More information about the fusion-users mailing list