OpenLayers Module Architecture
Presets
OpenLayers presets contain
- Map Settings
- Height, width
- Centerpoint
- OpenLayers source file, theme location, ProxyHost
- Enabled Behaviors
- Enabled Layers
- Enabled Styles
OpenLayers Map Views
OpenLayers map views use the Views module merely as a way to put a map on a page. They do not, like other views, query data by themselves. To add Drupal nodes or data to a OpenLayers map view, enable openlayers_views and create a OpenLayers Map Data view, and add it as a layer.
OpenLayers Map Views pull from OpenLayers Presets
Layer Types
Layer types are plugins. A base set of layer types is provided within the OpenLayers module, more are provided within the openlayers_layers module, and other contrib modules like MapBox can provide even more.
Layer Types generate Layers and provide their functionality
Layers
Layers are exportables which contain per-layer configuration.
Styles
Styles are exportables which contain OpenLayers Styles. They are attached to layers by the configuration in Presets.
