This is the start of this issue. No commits yet.
http://drupal.org/cvs?commit=268184
Did first step of using behaviors responsibly. Also separated out some functions into a openlayers.helper.js
Referring to layers. In the 0.x version, layer handling is hard-coded to 4 specific types. Leaving current structure in place.
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.
Forgot to commit: http://drupal.org/cvs?commit=268192
Comments
Comment #1
zzolo commentedhttp://drupal.org/cvs?commit=268184
Did first step of using behaviors responsibly. Also separated out some functions into a openlayers.helper.js
Comment #2
zzolo commentedReferring to layers. In the 0.x version, layer handling is hard-coded to 4 specific types. Leaving current structure in place.
Comment #3
zzolo commentedSo, 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.
Comment #4
zzolo commentedForgot to commit: http://drupal.org/cvs?commit=268192