|
|
| 1 2 |
|
Paul Spencer-2
|
In reply to this post
by Nolte, Tim
Unfortunately ... mapserver doesn't do that :( I have been toying
with the idea of turning the selected features into GML or GeoJSON and returning them to the client and creating OpenLayers vector features for them to do the highlighting, that would give you much more control :) Paul On 23-Jun-09, at 3:49 PM, Nolte, Tim wrote: > 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 - [hidden email] > 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:[hidden email]] > Sent: Tuesday, June 23, 2009 2:08 PM > To: Nolte, Tim > Cc: [hidden email] > 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 - [hidden email] >> 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 >> [hidden email] >> 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 > [hidden email] > 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 [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
||||||||||||||||
|
Nolte, Tim
|
In reply to this post
by Paul Spencer-2
Perfect. I was on the right track with trying to register and event
handler. Just had to get it in the right place and call the right action when the event triggered. This is working exactly the way I wanted. Also, I wasn't so much looking for any animation effects. I'm not sure if that is really necessary for Fusion, might be more or less just added bloat. - Tim ---- Timothy J Nolte - [hidden email] 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:[hidden email]] Sent: Wednesday, June 24, 2009 7:16 AM To: Nolte, Tim Cc: [hidden email] Subject: Re: [fusion-users] MapServer/Fusion 2.0/SelectionPanel 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 - [hidden email] > 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: [hidden email] > 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 - [hidden email] > 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:[hidden email]] > Sent: Tuesday, June 23, 2009 2:08 PM > To: Nolte, Tim > Cc: [hidden email] > 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 - [hidden email] >> 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 >> [hidden email] >> 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 > [hidden email] > 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 [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
||||||||||||||||
|
Paul Spencer-2
|
Excellent! Glad to help out.
Paul On 24-Jun-09, at 9:02 AM, Nolte, Tim wrote: > Perfect. I was on the right track with trying to register and event > handler. Just had to get it in the right place and call the right > action > when the event triggered. This is working exactly the way I wanted. > Also, I wasn't so much looking for any animation effects. I'm not sure > if that is really necessary for Fusion, might be more or less just > added > bloat. > > - Tim > > ---- > Timothy J Nolte - [hidden email] > 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:[hidden email]] > Sent: Wednesday, June 24, 2009 7:16 AM > To: Nolte, Tim > Cc: [hidden email] > Subject: Re: [fusion-users] MapServer/Fusion 2.0/SelectionPanel > > 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 - [hidden email] >> 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: [hidden email] >> 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 - [hidden email] >> 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:[hidden email]] >> Sent: Tuesday, June 23, 2009 2:08 PM >> To: Nolte, Tim >> Cc: [hidden email] >> 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 - [hidden email] >>> 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 >>> [hidden email] >>> 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 >> [hidden email] >> 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 > [hidden email] > 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 [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
||||||||||||||||
|
Nolte, Tim
|
So here is my dilemma. I've tried to find the source of it and it seems
like this is a core Fusion code issue. My MapServer mapfile has it's units set in decimal degrees (DD) with an extent set in those units. It would seem that this mapfile setting completely overrides anything I put in my ApplicationDefinition.xml for Units or DisplayUnits. I want the cursor coordinates displayed in DD and I want the measure tool and the view size status to be in miles. Has anyone got a clue how to get this to work. I was able to change my mapfile UNITS set to MILES but this really doesn't fix my map as 1) I don't know what to set for my map EXTENTS and 2) then the cursor is in miles instead of DD. I'm probably not going to let the measuring issue be a complete show stopper but the is a tool that we already have in our Chameleon application that I think people are already using. Thanks. - Tim ---- Timothy J Nolte - [hidden email] 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 [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
|
Berdel, Brian
|
I did not experience your exact situation, but I tested with Mapguide and the measure tool is not working properly for me either.
Beta Version cannot display Feet Correctly, and the SVN version gives me a precision error and does not really work at all in IE7 or 8. In Firefox seems to work but the values for feet are way off. Thanks. Brian -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Nolte, Tim Sent: Wednesday, June 24, 2009 1:27 PM To: [hidden email] Subject: [fusion-users] Fusion 2.0/MapServer & Units So here is my dilemma. I've tried to find the source of it and it seems like this is a core Fusion code issue. My MapServer mapfile has it's units set in decimal degrees (DD) with an extent set in those units. It would seem that this mapfile setting completely overrides anything I put in my ApplicationDefinition.xml for Units or DisplayUnits. I want the cursor coordinates displayed in DD and I want the measure tool and the view size status to be in miles. Has anyone got a clue how to get this to work. I was able to change my mapfile UNITS set to MILES but this really doesn't fix my map as 1) I don't know what to set for my map EXTENTS and 2) then the cursor is in miles instead of DD. I'm probably not going to let the measuring issue be a complete show stopper but the is a tool that we already have in our Chameleon application that I think people are already using. Thanks. - Tim ---- Timothy J Nolte - [hidden email] 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 [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users Important notice to recipients: Copies of documents that may be relied upon by you are limited to the printed copies (also known as 'hard copies') that are signed and sealed by the Engineer and/or Land Surveyor. Files in electronic formats, or other types of information furnished by the Engineer and/or Land Surveyor to you such as text, data or graphics are for your convenience only. Any conclusions or information obtained or derived from such electronic files will be at the user's sole risk. When transferring documents in electronic formats, the Engineer and/or Land Surveyor makes no representation as to long-term compatibility, usability, or readability of the documents resulting from the use of software application packages, operating systems or computer hardware differing from those used by McMahon Associates, Inc. at the beginning of the project. _______________________________________________ fusion-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
||||||||||||||||
|
Paul Deschamps
|
In reply to this post
by Nolte, Tim
Hi Tim,
Do you have the units set in the measure tool widget like so? <Widget> <Name>Measure</Name> <Type>Measure</Type> <Description/> <Extension> <Type>distance</Type> <RulerTooltipContainer>RulerResults</RulerTooltipContainer> <RulerTooltipType>dynamic</RulerTooltipType> <Units>Kilometers</Units> </Extension> <ImageUrl>images/icons/measure.png</ImageUrl> <Tooltip>Click on the map to measure</Tooltip> </Widget> Cheers Paul.
On Wed, Jun 24, 2009 at 1:26 PM, Nolte, Tim <[hidden email]> wrote: So here is my dilemma. I've tried to find the source of it and it seems -- Paul Deschamps Applications Specialist DM Solutions Group Inc. Office: (613) 565-5056 x28 [hidden email] http://www.dmsolutions.ca http://research.dmsolutions.ca _______________________________________________ fusion-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
||||||||||||||||
|
Nolte, Tim
|
Yep, I've tried every combination of Units settings I can think of to
get this to work. However, the thing to keep in mind is that you are using kilometers which I believe is the default unit measure and I need miles. <Widget xsi:type="UiWidgetType"> <Name>toolbarMeasure</Name> <Type>Measure</Type> <StatusText>Measure distances on the map.</StatusText> <Extension xsi:type="CustomContentType"> <Units>miles</Units> <DistancePrecision>5</DistancePrecision> <AreaPrecision>5</AreaPrecision> <MeasureTooltipContainer>MeasureResult</MeasureTooltipContainer> <MeasureTooltipType>dynamic</MeasureTooltipType> </Extension> <ImageUrl>images/icons.png</ImageUrl> <ImageClass>measure</ImageClass> <Tooltip>Measure</Tooltip> <Label/> </Widget> ---- Timothy J Nolte - [hidden email] 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: [hidden email] [mailto:[hidden email]] On Behalf Of Paul Deschamps Sent: Wednesday, June 24, 2009 2:24 PM To: Nolte, Tim Cc: [hidden email] Subject: Re: [fusion-users] Fusion 2.0/MapServer & Units Hi Tim, Do you have the units set in the measure tool widget like so? <Widget> <Name>Measure</Name> <Type>Measure</Type> <Description/> <Extension> <Type>distance</Type> <RulerTooltipContainer>RulerResults</RulerTooltipContainer> <RulerTooltipType>dynamic</RulerTooltipType> <Units>Kilometers</Units> </Extension> <ImageUrl>images/icons/measure.png</ImageUrl> <Tooltip>Click on the map to measure</Tooltip> </Widget> Cheers Paul. On Wed, Jun 24, 2009 at 1:26 PM, Nolte, Tim <[hidden email]> wrote: So here is my dilemma. I've tried to find the source of it and it seems like this is a core Fusion code issue. My MapServer mapfile has it's units set in decimal degrees (DD) with an extent set in those units. It would seem that this mapfile setting completely overrides anything I put in my ApplicationDefinition.xml for Units or DisplayUnits. I want the cursor coordinates displayed in DD and I want the measure tool and the view size status to be in miles. Has anyone got a clue how to get this to work. I was able to change my mapfile UNITS set to MILES but this really doesn't fix my map as 1) I don't know what to set for my map EXTENTS and 2) then the cursor is in miles instead of DD. I'm probably not going to let the measuring issue be a complete show stopper but the is a tool that we already have in our Chameleon application that I think people are already using. Thanks. - Tim ---- Timothy J Nolte - [hidden email] 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 [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users -- Paul Deschamps Applications Specialist DM Solutions Group Inc. Office: (613) 565-5056 x28 [hidden email] http://www.dmsolutions.ca http://research.dmsolutions.ca _______________________________________________ fusion-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |