This is the start of this issue. No commits yet.

Comments

zzolo’s picture

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

Did first step of using behaviors responsibly. Also separated out some functions into a openlayers.helper.js

zzolo’s picture

Referring to layers. In the 0.x version, layer handling is hard-coded to 4 specific types. Leaving current structure in place.

zzolo’s picture

Status: Active » Closed (fixed)

So, actually changing/adding the system is pretty easy. Granted it does not look like 0.x all that much, but the functionality is there with Drupal.behaviors. So adding the ol behaviors system shoudl work on the JS side.

Drupal behaviors are actually pretty simple:
* http://api.drupal.org/api/drupal/developer--topics--javascript_startup_g...
* To see it's simpleicity, jsut look at misc/drupal.js

I am gonna call this one done. I think there may be some tweaks for other separate parts, but the architecture is there.

zzolo’s picture