Download & Extend

2.x: Change JS Architecture to use Drupal Behaviors

Project:OpenLayers
Version:6.x-2.x-dev
Component:Code
Category:task
Priority:normal
Assigned:zzolo
Status:closed (fixed)

Issue Summary

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

Comments

#1

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

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

#2

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

#3

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.

#4

nobody click here