Skip to content

An example Drupal module demonstrating a potential use case for geospatial mapping data integrated with DVF

Notifications You must be signed in to change notification settings

jez500/dvf_geojson

Repository files navigation

DVF GeoJSON

This is an example Drupal module demonstrating a potential use case for Data Visualisation Framework (DVF) with geospatial data, specifically GeoJSON. It also provides an example for how a developer might implement a third party frontend library that is not included out-of-the-box with DVF.

This is a proof of concept

This module isn't intended for production use, it is more of a demonstration of how maps could be integrated with DVF with a working example.

How to use

  • Install and enable this module
  • Create a new DVF "Visualisation URL" field on your entity of choice
  • Select "GeoJSON" as a source type
  • Create a new entity and in your DVF GeoJSON field, add a url to some valid GeoJSON
  • Add a center lat/lng that aligns with your GeoJSON data
  • Save and view, you should see a map that looks something like this

Settings example (source)

Settings

Output example (style)

Map

Author

Jeremy Graham from Doghouse Agency

Sponsored by govCMS

About

An example Drupal module demonstrating a potential use case for geospatial mapping data integrated with DVF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published