Letractively / morisoliver

Automatically exported from code.google.com/p/morisoliver
0 stars 0 forks source link

Allow dropdowns in the quickzooms to be configurable as to width #56

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I would like the dropdowns to be potentially wider, some data is being cut off 
in the list.  Can this be configurable in the toolSetting.js? 

Listing this as a potential enhancement for a future task order.

Original issue reported on code.google.com by Aleda.Fr...@state.ma.us on 14 Sep 2011 at 7:59

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
This is Enhancement 9 in Task Order 4.

Currently QuickZoom dropdowns pull data from a datalayer to display, such as 
the name of a town or the name of an openspace parcel.  Currently the QuickZoom 
dropdown width is standard and not configurable.  We have seen some instances 
where the values displayed are cut off because the width is not sufficient.  In 
other cases more space than necessary is taken up on the toolbar because the 
values are all shorter than the current width.  We would like the ability to 
configure manually the width of a dropdown.   We would calculate ahead of time 
the maximum width of the values to be presented (we are not asking for OLIVER 
to calculate it on the fly).

Original comment by Aleda.Fr...@state.ma.us on 23 Jan 2012 at 2:18

GoogleCodeExporter commented 8 years ago
This is now supported by setting a numeric width in the quick Zoom config in 
toolConfig.js  If no width is set, it defaults to 200px.

ex: 
    toolSettings.quickZoomTools = {};
    toolSettings.quickZoomTools.status = 'show';
    toolSettings.quickZoomTools.tools = [
        {id: 1,                        
         label: 'Pick a town',
         layer: 'massgis:GISDATA.TOWNS_POLYM',
         valueField: 'TOWN',
         width:125,                             // optional, defaults to 200
         resetOnMove : false,                   // optional, defaults to true
         sortBy : 'TOWN',
         sortOrder : 'A',
         additionalFields : 'TOWN_ID',   
         keyMap: {                   
            "ctrl":true,           
            "alt": true,           
            "key": "t"
            }
        },
...
]

Original comment by maric423@gmail.com on 7 Feb 2012 at 7:46

GoogleCodeExporter commented 8 years ago

Original comment by Aleda.Fr...@state.ma.us on 14 Feb 2012 at 4:12