Advertising sustains the DA. Ads are hidden for members. Join today

Contributed modules for Drupal 7

Openlayers

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

This guide contains documentation for the Openlayers module for Drupal 7.

Specifically, this documentation guide is relevant to version 7.x-3.x onwards.

Module overview

Openlayers module overview

Sub-modules available

Openlayers sub-modules.

Getting started

OpenLayers module installation

Adding Views GeoJSON Layer to OL3 Map

Create a OL3 Map with a local Views GeoJSON Source

Creating Maps

Creating Maps

Enable OpenStreetMap Tiles

After a fresh install as described on the installation page you can activate OpenStreetMap as follows.

Object Structure

OpenLayers defines a set of Drupal Entities with table storage for the following:

OpenLayers 3.x API

To create OL 3 map with php you can use this code (from the openlayers_filters module):

Openlayers 3 Integration with Drupal Javascript

Openlayers 3 Integration with Drupal Javascript.

Guide maintainers

ken-g's picture