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

tmcw’s picture

I'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

tmcw’s picture

Popup behavior is ported in an initial state.

http://drupal.org/cvs?commit=323792

tmcw’s picture

Another 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.

tmcw’s picture

And an admittedly oversimplified tooltip behavior

http://drupal.org/cvs?commit=323842

tmcw’s picture

Left 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.

phayes’s picture

I agree re: cluster and unclutter. I'll adopt them into a separate module.

skov’s picture

Is Behaviors ready to roll into dev for testing? I would like to test and provide some feedback.

tmcw’s picture

The 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.

skov’s picture

Just 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...

tmcw’s picture

The 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.

skov’s picture

OpenLayers 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)

tmcw’s picture

Good catch. Patched.

tmcw’s picture

Status: Active » Fixed

So the openlayers_behavior port is finished, open tickets for bugs and tweaks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.