Views GeoJSON is a style plugin for Views to output location-specific data in GeoJSON, a JSON-based text format for encoding a variety of geographic data structures.

Features

  • Generates GeoJSON data feeds from content using Views.
  • Accepts data in latitude/longitude, Geofield, or WKT formats.
  • Works with OpenLayers and Leaflet modules.
  • Accepts bounding-box coordinates as an argument to filter the points returned.

Note: Full OpenLayers support, including BBOX strategy, currently requires OpenLayers 7.x-2.x-dev. See OL issues: Provide GeoJSON Layers from Views and Support BBOX strategy in the GeoJSON layer type.

Usage

  1. Create a View with a Page display on content with locative information.
  2. Set Format for the display to GeoJSON Feed.
  3. Add View fields that include lat/lon, Geofield, or WKT data.
  4. Set those fields as GeoJSON data source.

The view output is a text document including data as GeoJSON Features, wrapped in a FeatureCollection.

See README.txt or Views GeoJSON Example Use Case for more.

Requirements

Goals

This module was born from a patch by tmcw to the OpenLayers module: Implement GeoJSON output as a standard. The goal is for Views GeoJSON to become the primary data delivery mechanism for the OpenLayers module -- see Provide GeoJSON Layers from Views (integrating with views_geojson) -- and a strong candidate for any other mapping module/system that accepts GeoJSON data.

Attribution

In addition to tmcw's aforementioned patch, a good deal of this is modeled after the Views Datasource module.

Downloads

Recommended releases

Version Downloads Date Links
7.x-1.0-alpha2 tar.gz (17.03 KB) | zip (20.55 KB) 2012-Jun-07 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (16.78 KB) | zip (20.28 KB) 2013-Jan-29 Notes

Project Information


Maintainers for Views GeoJSON

Issues for Views GeoJSON

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Statistics (2 years)
New issues
Open bugs
Participants