Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Request to have the Layer Switcher be uncollapsed on load as an option in Behaviors.
Comment | File | Size | Author |
---|---|---|---|
#7 | openlayers-1369074-5-20beta1.patch | 2.36 KB | Elvar |
#5 | openlayers-1369074-5-2.x.patch | 2.36 KB | Elvar |
#5 | openlayers-1369074-5-2.x.patch | 2.28 KB | Elvar |
#2 | openlayers-1369074-2.patch | 2.3 KB | bleedev |
#1 | openlayers-1369074-1.patch | 2.25 KB | bleedev |
Comments
Comment #1
bleedev CreditAttribution: bleedev commentedPatch for this request.
Comment #2
bleedev CreditAttribution: bleedev commentedUpdated to read collapsed instead of hide.
Comment #3
mtoscano CreditAttribution: mtoscano commentedCan this patch also work on 7.x-2.0?
Comment #4
mtoscano CreditAttribution: mtoscano commentedOK, 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.
Comment #5
Elvar CreditAttribution: Elvar commentedHere's the changes from #2 rerolled against 7.x-2.0beta1 as well as 7.x-2.x.
Comment #7
Elvar CreditAttribution: Elvar commentedPatch was testet against branch OpenLayers - 6.x-2.0-alpha10.
The patch against 7.x-2xbeta1
Comment #8
mgiffordPatch 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
Comment #9
zzolo CreditAttribution: zzolo commentedCommitted 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.