I'm running into the problem that openlayers_views is hardcoded to support only two behaviors and won't even invoke the code unless the openlayers_behaviors module is enabled. It looks like it's very possible to have behaviors without the openlayers_behaviors module, and I'd like to run without it, but nothing's getting invoked. I can roll a patch soon about this, although how to handle behaviors with their own options I'm not sure.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tmcw’s picture

A patch which simply runs through all behaviors defined in hooks and adds them... this seems to not interact with the existing code, but I haven't thoroughly tested it.

phayes’s picture

In the long run, we will be providing a hook so that behaviors can define form elements for both views and presets.

I'm a little hesitant to implement tmcw's solutions since some behaviors require other attribute information in order for them to be valid.

zzolo’s picture

Version: 6.x-1.0-alpha3 » 6.x-1.x-dev
Category: bug » feature
Status: Active » Postponed
Issue tags: +openlayers post 1.0 feature

I would say that this is not possible for 1.0. Like phayes said, there are attributes to account for a variable data. This would need to work like CCK field and widget options where a form array could be provided.

This would be nice, and we were thinking along these same lines for the layers. But I think this is out of the scope of 1.0.

I am marking as postponed and post 1.0

phayes’s picture

Title: OpenLayers views doesn't work for all behaviors in the openlayers_behaviors module and no contributed behaviors » 2.x: Form hooks for behaviors
Category: feature » task
Status: Postponed » Active

I'm hoping that maybe ctools can help us with this.

zzolo’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
tmcw’s picture

Status: Active » Closed (fixed)

This is fixed in code to be ported from 0.x to 2.x.