You are here

README.txt in Openlayers 6.2

Same filename and directory in other branches
  1. 6 README.txt
  2. 7.2 README.txt
Current for 6.x-2.0-alpha2

# Description

OpenLayers is a suite of module to help integrate the
OpenLayers Javascript library within Drupal.

# Requirements

OpenLayers Requires

* CTools: http://drupal.org/project/ctools

Sub-modules require

* OpenLayers Views requires Views: http://drupal.org/project/views
* OpenLayers CCK requires CCK: http://drupal.org/project/cck

OpenLayers can use Features to package maps into modules

* Features: http://drupal.org/project/features

# Sub-Modules

You'll most likely want to enable OpenLayers UI and OpenLayers Views modules for typical uses of OpenLayers.

* OpenLayers UI - Creates a user interface to make map
  arrays which can be used in various places
* CCK - Allows integration with CCK so that geo data
  can be inputted via a map
* Views - Allows data to be displayed on a map
  via Views
* Filters - Creates a filter to replace
  [openlayers preset_name] with a map.

# Basic Concepts

## Presets

An OpenLayers map in Drupal is a combination of decisions about which 
layers to show, what styles to apply, the minimum and maximum zoom levels, 
and how the user can interact with the map. A map preset object is where 
the options for these settings are combined and stored. Presets can be 
rendered through OpenLayers views of the type "OpenLayers Map," through 
filters provided by the OpenLayers Filters module, or directly in your 
modules using the api function openlayers_render_map()

## Layers

OpenLayers allows for the display of a variety of raster and vector data on 
maps. These are divided into two categories: basemaps and overlays. 
Basemaps, like those from OpenStreetMap or Google Maps, provide a background
for your data. Overlays can be data from OpenLayers data views, KML layers, 
or other types of data from external sources.

For more information on layer types, see docs/LAYER_TYPES.txt

## Styles

The OpenLayers module currently allows users to define custom styles for 
vector overlays. The primary use-case here will be data from OpenLayers 
data views but this could also include KML files. Styles define things like 
stroke width, background and outline colors, and point size and allow the 
use of icons if desired. They must be associated with layers on a per-
preset basis.

## Behaviors

Behaviors can be enabled on map presets to control how users interact with 
the map. Examples of behaviors include navigation, which, when enabled, 
allows users to zoom and pan, and Layer Switcher, which provides a UI that 
allows users to toggle on and off the layers available on the map.

## OpenLayers Views

OpenLayers views come in two varieties. The first is a display type called 
OpenLayers Data. This is what allows users to control which pieces of 
content show up on the map and in what manner. Each OpenLayers data view 
provides a layer that can be added to maps when configuring a preset. The 
second is a style called OpenLayers Map that can be applied to pages, 
blocks, attachments, and so on and give users an easy way of rendering 
presets.

# Installation

1. Normal Drupal module installation

2. Set OpenLayers Source at: admin/build/openlayers
   It is suggested to download the library and use it locally for performance.

3. A tutorial 


# Documentation

More documentation is available in the docs/ directory of this module:

* CUSTOMIZATION.txt: a cookbook for common customizations users might want 
  to make for performance and tweaking

* API.txt: a technical description of the main map-generating API

* LAYER_TYPES.txt: a technical description of how layer types work and 
  guide for implementation of new layer types

* KML.txt: an explanation of how KML support works in OpenLayers

* JAVASCRIPT.txt: a technical explanation of how the Javascript included 
  in the OpenLayers module (not the code in the actual OpenLayers library) 
  operates

A [tutorial is available on Drupal.org](http://drupal.org/node/627816)
  
# Authors/Credits

* [zzolo](http://drupal.org/user/147331)
* [phayes](http://drupal.org/user/47098)
* [tmcw](http://drupal.org/user/12664)
* [brynbellomy](http://drupal.org/user/537416)
* [bdragon](http://drupal.org/user/53081)
* [OpenLayers monster by Saman Bemel Benrud](http://www.flickr.com/photos/samanpwbb/)
* [strk](http://drupal.org/user/781486)

File

README.txt
View source
  1. Current for 6.x-2.0-alpha2
  2. # Description
  3. OpenLayers is a suite of module to help integrate the
  4. OpenLayers Javascript library within Drupal.
  5. # Requirements
  6. OpenLayers Requires
  7. * CTools: http://drupal.org/project/ctools
  8. Sub-modules require
  9. * OpenLayers Views requires Views: http://drupal.org/project/views
  10. * OpenLayers CCK requires CCK: http://drupal.org/project/cck
  11. OpenLayers can use Features to package maps into modules
  12. * Features: http://drupal.org/project/features
  13. # Sub-Modules
  14. You'll most likely want to enable OpenLayers UI and OpenLayers Views modules for typical uses of OpenLayers.
  15. * OpenLayers UI - Creates a user interface to make map
  16. arrays which can be used in various places
  17. * CCK - Allows integration with CCK so that geo data
  18. can be inputted via a map
  19. * Views - Allows data to be displayed on a map
  20. via Views
  21. * Filters - Creates a filter to replace
  22. [openlayers preset_name] with a map.
  23. # Basic Concepts
  24. ## Presets
  25. An OpenLayers map in Drupal is a combination of decisions about which
  26. layers to show, what styles to apply, the minimum and maximum zoom levels,
  27. and how the user can interact with the map. A map preset object is where
  28. the options for these settings are combined and stored. Presets can be
  29. rendered through OpenLayers views of the type "OpenLayers Map," through
  30. filters provided by the OpenLayers Filters module, or directly in your
  31. modules using the api function openlayers_render_map()
  32. ## Layers
  33. OpenLayers allows for the display of a variety of raster and vector data on
  34. maps. These are divided into two categories: basemaps and overlays.
  35. Basemaps, like those from OpenStreetMap or Google Maps, provide a background
  36. for your data. Overlays can be data from OpenLayers data views, KML layers,
  37. or other types of data from external sources.
  38. For more information on layer types, see docs/LAYER_TYPES.txt
  39. ## Styles
  40. The OpenLayers module currently allows users to define custom styles for
  41. vector overlays. The primary use-case here will be data from OpenLayers
  42. data views but this could also include KML files. Styles define things like
  43. stroke width, background and outline colors, and point size and allow the
  44. use of icons if desired. They must be associated with layers on a per-
  45. preset basis.
  46. ## Behaviors
  47. Behaviors can be enabled on map presets to control how users interact with
  48. the map. Examples of behaviors include navigation, which, when enabled,
  49. allows users to zoom and pan, and Layer Switcher, which provides a UI that
  50. allows users to toggle on and off the layers available on the map.
  51. ## OpenLayers Views
  52. OpenLayers views come in two varieties. The first is a display type called
  53. OpenLayers Data. This is what allows users to control which pieces of
  54. content show up on the map and in what manner. Each OpenLayers data view
  55. provides a layer that can be added to maps when configuring a preset. The
  56. second is a style called OpenLayers Map that can be applied to pages,
  57. blocks, attachments, and so on and give users an easy way of rendering
  58. presets.
  59. # Installation
  60. 1. Normal Drupal module installation
  61. 2. Set OpenLayers Source at: admin/build/openlayers
  62. It is suggested to download the library and use it locally for performance.
  63. 3. A tutorial
  64. # Documentation
  65. More documentation is available in the docs/ directory of this module:
  66. * CUSTOMIZATION.txt: a cookbook for common customizations users might want
  67. to make for performance and tweaking
  68. * API.txt: a technical description of the main map-generating API
  69. * LAYER_TYPES.txt: a technical description of how layer types work and
  70. guide for implementation of new layer types
  71. * KML.txt: an explanation of how KML support works in OpenLayers
  72. * JAVASCRIPT.txt: a technical explanation of how the Javascript included
  73. in the OpenLayers module (not the code in the actual OpenLayers library)
  74. operates
  75. A [tutorial is available on Drupal.org](http://drupal.org/node/627816)
  76. # Authors/Credits
  77. * [zzolo](http://drupal.org/user/147331)
  78. * [phayes](http://drupal.org/user/47098)
  79. * [tmcw](http://drupal.org/user/12664)
  80. * [brynbellomy](http://drupal.org/user/537416)
  81. * [bdragon](http://drupal.org/user/53081)
  82. * [OpenLayers monster by Saman Bemel Benrud](http://www.flickr.com/photos/samanpwbb/)
  83. * [strk](http://drupal.org/user/781486)