Trelle / morisoliver

Online Mapping Program
0 stars 0 forks source link

Clear the QuickZoom dropdown picked value after use #121

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is Enhancement 8 in Task Order 4.

Currently when using a QuickZoom dropdown such as “Pick a town”, the value 
picked remains displayed until another pick is made.  However, if the user 
picks a town (therefore zooming to it), but then pans and zooms independently 
of the dropdown, the QuickZoom dropdown value is still declaring an old 
geography.  We would like the QuickZoom values to revert to displaying the 
default value after a choice is made to avoid inconsistency between the 
displayed geographic value and the actual value shown by the map.

Original issue reported on code.google.com by Aleda.Fr...@state.ma.us on 23 Jan 2012 at 2:17

GoogleCodeExporter commented 8 years ago
By default, quick zooms will now reset once the map is panned or zoomed.  This 
can be overridden by setting the resetOnMove option in the quickZoom 
configuration with a value of false.  Leaving the resetOnMove option out is the 
same as setting it to true.

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:48

GoogleCodeExporter commented 8 years ago
The value does clear now, so it's better than it was, but the box is blank - 
any chance it can say "Pick a town" or whatever the initial string was?  Also, 
if I click on it, the previously picked down is highlighted.  Can we get rid of 
that? 

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

GoogleCodeExporter commented 8 years ago

Original comment by Aleda.Fr...@state.ma.us on 31 Oct 2012 at 4:04