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.
See: #589490: 2.x: Change Behavior Architecture to use CTools Plugins
* I moved over the advanced behaviors (openlayers_behaviors module) from the 0.x branch so those should be working. Though need testing.
* They need to be reviewed as well
* Also, the other ones that 0.x does not address need to be converted.
Comments
Comment #1
tmcw CreditAttribution: tmcw commentedI'm finding a lot of cases where these behaviors need a rewrite as well as porting from 1 to 2. Fullscreen was just committed in a much-simplified form.
http://drupal.org/cvs?commit=323372
http://drupal.org/cvs?commit=323374
Comment #2
tmcw CreditAttribution: tmcw commentedPopup behavior is ported in an initial state.
http://drupal.org/cvs?commit=323792
Comment #3
tmcw CreditAttribution: tmcw commentedAnother port: zoomToLayer
http://drupal.org/cvs?commit=323808
Works decently well, but no per-layer settings yet; I'm going to add that to a bunch of layers when I figure out how it should work.
Comment #4
tmcw CreditAttribution: tmcw commentedAnd an admittedly oversimplified tooltip behavior
http://drupal.org/cvs?commit=323842
Comment #5
tmcw CreditAttribution: tmcw commentedLeft behind currently are cluster and unclutter. Both of these need a little love, and I kind of have the feeling that unclutter should be left behind, replaced with a better implementation of paged popups.
Comment #6
phayes CreditAttribution: phayes commentedI agree re: cluster and unclutter. I'll adopt them into a separate module.
Comment #7
skov CreditAttribution: skov commentedIs Behaviors ready to roll into dev for testing? I would like to test and provide some feedback.
Comment #8
tmcw CreditAttribution: tmcw commentedThe work is in the development release of 2.x, yes - and it's working in the limited way it attempts currently, although there are, of course, features and bugfixes to be added.
Comment #9
skov CreditAttribution: skov commentedJust downloaded 2.x version (Feb 5) and "openlayers_behaviours" directory and files do not exist in "openlayers\modules\"
Looking at CVS, "openlayers_behaviours.module" (and related files) was removed Feb 3.
http://drupalcode.org/viewvc/drupal/contributions/modules/openlayers/mod...
Comment #10
tmcw CreditAttribution: tmcw commentedThe behaviors previously in openlayers_behaviors are now in OpenLayers itself. It was confusing to have them in a separate module when they didn't weigh anything down and you'd want to enable them anyway.
Comment #11
skov CreditAttribution: skov commentedOpenLayers CCK still has dependency on "openlayers_behaviours"
i.e.
OpenLayers CCK 6.x-2.x-dev Provides CCK fields and widgets through an OpenLayers interface.
Depends on: OpenLayers (enabled), Openlayers_behaviors (missing), Content (enabled), Chaos tools (enabled)
Comment #12
tmcw CreditAttribution: tmcw commentedGood catch. Patched.
Comment #13
tmcw CreditAttribution: tmcw commentedSo the openlayers_behavior port is finished, open tickets for bugs and tweaks.