Posted by bleedev on December 12, 2011 at 11:59pm
6 followers
| Project: | OpenLayers |
| Version: | 7.x-2.0-beta1 |
| Component: | OL Behaviors |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Request to have the Layer Switcher be uncollapsed on load as an option in Behaviors.
Comments
#1
Patch for this request.
#2
Updated to read collapsed instead of hide.
#3
Can this patch also work on 7.x-2.0?
#4
OK, I tested it and the lines of code to add are the same, but the patch should be rewritten because in the 7.x-2.0 version the files to patch are in different location and the .js looks quite different.
#5
Here's the changes from #2 rerolled against 7.x-2.0beta1 as well as 7.x-2.x.
#6
The last submitted patch, openlayers-1369074-5-HEAD.patch, failed testing.
#7
Patch was testet against branch OpenLayers - 6.x-2.0-alpha10.
The patch against 7.x-2xbeta1
#8
Patch applies to the dev version too. Just note this concern about the patch:
/DRUPAL7/sites/all/modules/openlayers/plugins/behaviors$ patch openlayers_behavior_layerswitcher.inc < openlayers-1369074-5-20beta1_0.patch
patching file openlayers_behavior_layerswitcher.inc
patching file openlayers_behavior_layerswitcher.js
patch unexpectedly ends in middle of line
#9
Committed to D7:
http://drupalcode.org/project/openlayers.git/commit/8aa277f
It makes much more sense to have this as "Maximize by Default" so I changed things around a bit.
#10
Automatically closed -- issue fixed for 2 weeks with no activity.