OpenLayers
Modules · Content Construction Kit (CCK) · Filters/editors · Location · Third-party integration · Active
zzolo - September 21, 2007 - 00:17
The OpenLayers Module and its submodules bring the OpenLayers JS library into Drupal. They enable users to combine maps from different map providers with data from Views and CCK input. The OpenLayers JavaScript library is open source, making it flexible and capable across standards as well as proprietary APIs.
Features & Submodules
- OpenLayers
- The OpenLayers core code stores map configurations: presets, styles, layers, and behaviors, and combines them to create maps using the OpenLayers javascript library on any Drupal site.
- Layers
- OpenLayers supports a wide range of map types and new types can easily be added as ctools exportables - new layer types are being added all the time. Currently the module supports OpenStreetMap, Google Maps, Yahoo Maps, Virtual Earth, TMS, WMS, CloudMade, and XYZ map types, and the MapBox module adds support for MapBox maps.
- Behaviors
- Map interactions like popups, zoom controls, editing, and fullscreen can be added via the UI and extended by other modules.
- OpenLayers UI
- This module allows for a user interface to create and store map presets which can be used to customize all sorts of things like CCK Formatters to Views Plugins. Presets can be provided by code or stored in the database and integrated with Features.
- OpenLayers Views
- The Views module is the preferred system of putting an OpenLayers map on a page: two types are provided - OpenLayers Data and OpenLayers Map, so that a single map can contain multiple node types and views.
- OpenLayers CCK
- OpenLayers CCK adds an OpenLayers map and a simple OpenLayers WKT field type for storing complex geodata like points, lines, and polygons.
- OpenLayers Filters
- Provide a simple filter to allow for inline maps in content areas. By using a syntax similar to
[openlayers preset_name], a map can be rendered in content. - 2.x is the main focus of future development, and while stable, is still having some features added to it. Check the roadmap draft to see direction. This version depends on ctools. If upgrading from 1.x, see handbook page.
- 1.x is the first major version of the Drupal OpenLayers module and is mostly stable. See #432642: Development for 6-1.x for general development discussion and roadmap. 1.x is no longer actively developed. We will try to fix bugs as they arise, and always welcome patches.
- 0.x is no longer supported.
- Upgrade from 1.x to 2.x: This is still incomplete, see for status: #710610: Upgrade Path for 1.x to 2.x
- Upgrading from 0.x to 2.x: Because of thorough API improvements, manual upgrading is recommended for those who want to upgrade from 0.x.
- OpenLayers Geocoder - This module extends OpenLayers CCK input widget allowing to mark a location on the map by simply providing its address.
- Geo Taxonomy (2.x) - Attaches geo information (latitude, longitude, bounding boxes, etc.) to taxonomy terms. Provides Views integration.
- WFS (2.x) - Provides integration with GeoServer and optimized interaction for complex maps.
- Spatial Tools (1.x) - Provides shapefile widget for openlayers cck fields. Also provides for creation of layers from database tables (ie. geo data tables).
- MapBox (2.x) - Provides a configurable MapBox layer type and the ability to quickly add attribution for OpenStreetMap data.
- OpenLayers KML (1.x) (github) - Use filefield to upload KML files and have them automatically put on a map.
- Domain Bonus Integration - Provides integration with the Domain Access module and the different keys for different layers
- OpenLayers Plus (2.x) - Adds a number of nice improvements to the module, and used in Managing News.
- This module has taken some great ideas from modules such as GMap, ImageCache, Views, and Mapstraction.
- The developers and patch-providers have worked very hard to make this module what it is.
- Some sponsorship provided by Trellon, Geomemes, EchoDitto, and Development Seed.
- Drupal OpenLayers monster by Saman Bemel Benrud.
Documentation
Main documentation for this module can be found at the Drupal OpenLayers Handbook and within the docs/ directory of the module itself. Contributions are welcome.
The 1.x version contains supplemental documentation with Advanced Help.
